Method Summary |
|
void | addRole(String roleFullPathName) Add a new role.
Role principal names are expressed as {principal}.{subprincipal} where
"." is the separator expressing the hierarchical nature of a role.
Role principal path names are stored leveraging the
Preferences api. |
void | addRoleToGroup(String roleFullPathName, String groupFullPathName) Add a role to a group.
Parameters: roleFullPathName - The role name full path(e.g. |
void | addRoleToUser(String username, String roleFullPathName) Add a role to a user.
Parameters: username - The user name. Parameters: roleFullPathName - The role name full path(e.g. |
Role | getRole(String roleFullPathName) Get a role
Role for a given role full path name.
Parameters: roleFullPathName - The role name full path(e.g. |
Iterator | getRoles(String filter) Get all roles available from all role handlers
Parameters: filter - The filter used to retrieve matching roles. |
Collection | getRolesForUser(String username) A collection of
Role for all the roles
associated to a specific user.
Parameters: username - The user name. |
Collection | getRolesInGroup(String groupFullPathName) A collection of
Role for all the roles
associated to a specific group.
Parameters: groupFullPathName - The group full path(e.g. |
boolean | isGroupInRole(String groupFullPathName, String roleFullPathName) Whether or not a role is in a group.
Parameters: groupFullPathName - The group name full path(e.g. |
boolean | isUserInRole(String username, String roleFullPathName) Whether or not a user is in a role.
Parameters: username - The user name. Parameters: roleFullPathName - The role name full path(e.g. |
void | removeRole(String roleFullPathName) Remove a given role and all the children of that role.
Role principal names are expressed as {principal}.{subprincipal} where
"." is the separator expressing the hierarchical nature of a role.
Role principal path names are stored leveraging the
Preferences api. |
void | removeRoleFromGroup(String roleFullPathName, String groupFullPathName) Remove a role from a group.
Parameters: roleFullPathName - The role name full path (e.g. |
void | removeRoleFromUser(String username, String roleFullPathName) Remove a user from a role.
Parameters: username - The user name. Parameters: roleFullPathName - The role name full path relative to the/role node (e.g. |
boolean | roleExists(String roleFullPathName) Whether or not a role exists.
Parameters: roleFullPathName - The role name full path(e.g. |
void | setRoleEnabled(String roleFullPathName, boolean enabled) Enable or disable a role.
Parameters: roleFullPathName - The role name full path (e.g. |