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

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

public class DefaultRoleSecurityHandler
extends java.lang.Object
implements RoleSecurityHandler

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

Constructor Summary
DefaultRoleSecurityHandler(SecurityAccess commonQueries)
           Constructor providing access to the common queries.
 
Method Summary
 RolePrincipal getRolePrincipal(java.lang.String roleFullPathName)
           Gets the role principal for the role full path name {principal}.{subprincipal}.
 java.util.List getRolePrincipals(java.lang.String filter)
           Gets the an iterator of role principals for a given filter.
 void removeRolePrincipal(RolePrincipal rolePrincipal)
           Removes the role principal.
 void setRolePrincipal(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
 

Constructor Detail

DefaultRoleSecurityHandler

public DefaultRoleSecurityHandler(SecurityAccess commonQueries)

Constructor providing access to the common queries.

Method Detail

getRolePrincipal

public RolePrincipal getRolePrincipal(java.lang.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(RolePrincipal rolePrincipal)
                      throws 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:
SecurityException - Throws a SecurityException.
See Also:
RoleSecurityHandler.setRolePrincipal(org.apache.jetspeed.security.RolePrincipal)

removeRolePrincipal

public void removeRolePrincipal(RolePrincipal rolePrincipal)
                         throws SecurityException
Description copied from interface: RoleSecurityHandler

Removes the role principal.

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

getRolePrincipals

public java.util.List getRolePrincipals(java.lang.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-2010 Apache Software Foundation. All Rights Reserved.