| java.lang.Object com.rift.coad.lib.security.Role
Role | public class Role implements PrincipalContainer(Code) | | The role object that contains the list principals. If a user or object has
a principal that matches, than access will be granted to run as that role.
author: Brett Chaldecott |
Role | public Role(String name, Set principals)(Code) | | Creates a new instance of a role using the supplied principal list
Parameters: name - The name of the role. Parameters: principals - The list of principals assigned to this role. |
canAccessRole | public boolean canAccessRole(Set queryPrincipals)(Code) | | This method will return true if one of the principals match
TRUE if one of the principals in sets match. Parameters: queryPrincipals - The set of principals that will be used to querythis role. |
getName | public String getName()(Code) | | The getter method for the name of this role.
The string containing the name of this role. |
getPrincipals | public Set getPrincipals()(Code) | | This method returns the list of principals.
The list of principals. |
|
|