org.apache.jetspeed.security.spi.impl
Class DefaultRoleSecurityHandler

java.lang.Object
  extended byorg.apache.jetspeed.security.spi.impl.DefaultRoleSecurityHandler
All Implemented Interfaces:
RoleSecurityHandler

public class DefaultRoleSecurityHandler
extends Object
implements RoleSecurityHandler

Author:
David Le Strat , David Sean Taylor
See Also:
RoleSecurityHandler

Field Summary
private  SecurityAccess commonQueries
          Common queries.
 
Constructor Summary
DefaultRoleSecurityHandler(SecurityAccess commonQueries)
           Constructor providing access to the common queries.
 
Method Summary
 Principal getRolePrincipal(String roleFullPathName)
           Gets the role principal for the role full path name {principal}.{subprincipal}.
 List getRolePrincipals(String filter)
           Gets the an iterator of role principals for a given filter.
 void removeRolePrincipal(org.apache.jetspeed.security.RolePrincipal rolePrincipal)
           Removes the role principal.
 void setRolePrincipal(org.apache.jetspeed.security.RolePrincipal rolePrincipal)
           Sets the role principal in the backing store.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

commonQueries

private SecurityAccess commonQueries
Common queries.

Constructor Detail

DefaultRoleSecurityHandler

public DefaultRoleSecurityHandler(SecurityAccess commonQueries)

Constructor providing access to the common queries.

Method Detail

getRolePrincipal

public Principal getRolePrincipal(String roleFullPathName)
Description copied from interface: RoleSecurityHandler

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

Specified by:
getRolePrincipal in interface RoleSecurityHandler
Parameters:
roleFullPathName - The role full path name.
Returns:
The Principal

See Also:
RoleSecurityHandler.getRolePrincipal(java.lang.String)

setRolePrincipal

public void setRolePrincipal(org.apache.jetspeed.security.RolePrincipal rolePrincipal)
                      throws org.apache.jetspeed.security.SecurityException
Description copied from interface: RoleSecurityHandler

Sets the role principal in the backing store.

Specified by:
setRolePrincipal in interface RoleSecurityHandler
Parameters:
rolePrincipal - The RolePrincipal.
Throws:
org.apache.jetspeed.security.SecurityException - Throws a SecurityException.
See Also:
RoleSecurityHandler.setRolePrincipal(org.apache.jetspeed.security.RolePrincipal)

removeRolePrincipal

public void removeRolePrincipal(org.apache.jetspeed.security.RolePrincipal rolePrincipal)
                         throws org.apache.jetspeed.security.SecurityException
Description copied from interface: RoleSecurityHandler

Removes the role principal.

Specified by:
removeRolePrincipal in interface RoleSecurityHandler
Parameters:
rolePrincipal - The RolePrincipal.
Throws:
org.apache.jetspeed.security.SecurityException - Throws a SecurityException.
See Also:
RoleSecurityHandler.removeRolePrincipal(org.apache.jetspeed.security.RolePrincipal)

getRolePrincipals

public List getRolePrincipals(String filter)
Description copied from interface: RoleSecurityHandler

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

Specified by:
getRolePrincipals in interface RoleSecurityHandler
Parameters:
filter - The filter.
Returns:
The list of Principal
See Also:
RoleSecurityHandler.getRolePrincipals(java.lang.String)


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