Method Summary |
|
public boolean | add(Role role) Adds a Role to this RoleSet.
Parameters: role - A Role. |
public boolean | add(Collection roles) Adds the Roles in a Collection to this RoleSet.
Parameters: roles - A Collection of Roles. |
public boolean | add(RoleSet roleSet) Adds the Roles in another RoleSet to this RoleSet.
Parameters: roleSet - A RoleSet. |
public boolean | contains(Role role) Checks whether this RoleSet contains a Role.
Parameters: role - A Role. |
public Role | getRole(String roleName) Returns a Role with the given name, if it is contained in
this RoleSet.
Parameters: roleName - Name of Role. |
public Role | getRoleById(int roleId) Returns a Role with the given id, if it is contained in this
RoleSet.
Parameters: roleId - id of the Role. |
public Role | getRoleByName(String roleName) Returns a Role with the given name, if it is contained in
this RoleSet.
Parameters: roleName - Name of Role. |
public Role[] | getRolesArray() Returns an Array of Roles in this RoleSet. |
public boolean | remove(Role role) Removes a Role from this RoleSet.
Parameters: role - A Role. |
public String | toString() |