Method Summary |
|
void | addGroup(String groupFullPathName)
Add a new group.
Group principal names are expressed as {principal}.{subprincipal} where
"." is the separator expressing the hierarchical nature of a group.
Group principal path names are stored leveraging the
Preferences api. |
void | addUserToGroup(String username, String groupFullPathName)
Add a user to a group. |
Group | getGroup(String groupFullPathName)
Get a group
Group for a given group full path name.
Parameters: groupFullPathName - The group name full path (e.g.theGroupName.theGroupChildName). |
Iterator | getGroups(String filter) Get all groups available from all group handlers
Parameters: filter - The filter used to retrieve matching groups. |
Collection | getGroupsForUser(String username)
A collection of
Group for all the groups associated to a specific
user.
Parameters: username - The user name. |
Collection | getGroupsInRole(String roleFullPathName)
A collection of
Group for all the groups in a specific role.
Parameters: roleFullPathName - The role full path (e.g.theRoleName.theRoleChildName).. |
boolean | groupExists(String groupFullPathName)
Whether or not a group exists. |
boolean | isUserInGroup(String username, String groupFullPathName)
Whether or not a user is in a group.
Parameters: username - The user name. Parameters: groupFullPathName - The group name full path (e.g.theGroupName.theGroupChildName). |
void | removeGroup(String groupFullPathName)
Remove a group.
Group principal names are expressed as {principal}.{subprincipal} where
"." is the separator expressing the hierarchical nature of a group.
Group principal path names are stored leveraging the
Preferences api. |
void | removeUserFromGroup(String username, String groupFullPathName)
Remove a user from a group. |
void | setGroupEnabled(String groupFullPathName, boolean enabled) Enable or disable a group. |