org.apache.jetspeed.security.spi
Interface GroupSecurityHandler


public interface GroupSecurityHandler

This interface encapsulates the persistence of security groups.

This provides a central placeholder for changing the persistence of groups security information.

A security implementation wanting to store group security implementation in LDAP for instance would need to provide an LDAP implementation of this interface.

Author:
David Le Strat

Method Summary
 GroupPrincipal getGroupPrincipal(String groupFullPathName)
           Gets the group principal for the group full path name {principal}.{subprincipal}.
 List getGroupPrincipals(String filter)
           Gets the an iterator of group principals for a given filter.
 void removeGroupPrincipal(GroupPrincipal groupPrincipal)
           Removes the group principal.
 void setGroupPrincipal(GroupPrincipal groupPrincipal)
           Sets the group principal in the backing store.
 

Method Detail

getGroupPrincipal

GroupPrincipal getGroupPrincipal(String groupFullPathName)

Gets the group principal for the group full path name {principal}.{subprincipal}.

Parameters:
groupFullPathName - The group full path name.
Returns:
The Principal


setGroupPrincipal

void setGroupPrincipal(GroupPrincipal groupPrincipal)
                       throws SecurityException

Sets the group principal in the backing store.

Parameters:
groupPrincipal - The GroupPrincipal.
Throws:
SecurityException - Throws a SecurityException.

removeGroupPrincipal

void removeGroupPrincipal(GroupPrincipal groupPrincipal)
                          throws SecurityException

Removes the group principal.

Parameters:
groupPrincipal - The GroupPrincipal.
Throws:
SecurityException - Throws a SecurityException.

getGroupPrincipals

List getGroupPrincipals(String filter)

Gets the an iterator of group principals for a given filter.

Parameters:
filter - The filter.
Returns:
The list of Principal


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.