Modifier and Type | Method and Description |
---|---|
void |
addGroupToGroup(String groupName,
String targetGroupName)
Adds a group to a group.
|
void |
addUserToGroup(String userName,
String groupName)
Adds a user to a group.
|
void |
createGroup(String name,
String description)
Creates a new group.
|
void |
createUser(String name,
String password,
String description)
Creates a new user.
|
Set<String> |
getGroupMembers(String groupName,
String pattern,
boolean includeNestedGroups)
Gets the names of the users and groups that are members of the supplied
groupName.
|
String |
getUserDescription(String userName)
Gets the description of the user with the supplied userName.
|
Set<String> |
listUsers(String pattern)
Gets the names of all the users that adhere to the supplied pattern.
|
void |
removeGroup(String name)
Removes an existing group.
|
void |
removeGroupFromGroup(String groupName,
String targetGroupName)
Removes a group from a group.
|
void |
removeUser(String name)
Removes an existing user.
|
void |
removeUserFromGroup(String userName,
String groupName)
Adds a user to a group.
|
void |
updateGroup(String name,
String description)
Updates an existing group.
|
void |
updateUser(String name,
String password,
String description)
Updates an existing user.
|
Set<String> listUsers(String pattern) throws MBeanException
pattern
- The pattern for which this method searches.
MBeanException
- When the users could not be retrieved.NullPointerException
- When the supplied pattern is null.IllegalArgumentException
- When the supplied pattern is empty.void createUser(String name, String password, String description) throws MBeanException
name
- Name of the user.password
- Password of the user.
description
- Short description of this user.MBeanException
- When the user could not be created.NullPointerException
- When either the supplied name or password is
null.IllegalArgumentException
- When either the supplied name or
password is empty.void updateUser(String name, String password, String description) throws MBeanException
name
- Name of the user.password
- Password of the user.
description
- Short description of this user.MBeanException
- When the user could not be updated.NullPointerException
- When either the supplied name or password is
null.IllegalArgumentException
- When either the supplied name or
password is empty.void removeUser(String name) throws MBeanException
name
- Name of the user to remove.MBeanException
- When the user could not be removed.NullPointerException
- When the supplied name is null.IllegalArgumentException
- When the supplied name is empty.String getUserDescription(String userName) throws MBeanException
userName
- The name of the user for which the description should be
retrieved.MBeanException
- When the description could not be retrieved.NullPointerException
- When the supplied userName is null.IllegalArgumentException
- When the supplied userName is empty.void createGroup(String name, String description) throws MBeanException
name
- Name of the group.description
- Short description of this group.MBeanException
- When the group could not be created.NullPointerException
- When the supplied name is null.IllegalArgumentException
- When the supplied name is empty.void updateGroup(String name, String description) throws MBeanException
name
- Name of the group.description
- Short description of this group.MBeanException
- When the group could not be updated.NullPointerException
- When the supplied name is null.IllegalArgumentException
- When the supplied name is empty.void removeGroup(String name) throws MBeanException
name
- Name of the group to remove.MBeanException
- When the group could not be removed.NullPointerException
- When the supplied name is null.IllegalArgumentException
- When the supplied name is empty.void addUserToGroup(String userName, String groupName) throws MBeanException
userName
- Name of the user.groupName
- Name of the group.MBeanException
- When the user could not be added to the group.NullPointerException
- When either the supplied userName or
groupName is null.IllegalArgumentException
- When either the supplied userName of
groupName is empty.void removeUserFromGroup(String userName, String groupName) throws MBeanException
userName
- Name of the user.groupName
- Name of the group.MBeanException
- When the user could not be removed from the group.NullPointerException
- When either the supplied userName or
groupName is null.IllegalArgumentException
- When either the supplied userName or
groupName is empty.void addGroupToGroup(String groupName, String targetGroupName) throws MBeanException
groupName
- Name of the group to add to the targetGroup.targetGroupName
- Name of the group to which the supplied groupName
is added.MBeanException
- When the group could not be added to the group.NullPointerException
- When either the supplied groupName or
targetGroupName is null.NullPointerException
- When either the supplied groupName or
targetGroupName is null.void removeGroupFromGroup(String groupName, String targetGroupName) throws MBeanException
groupName
- Name of the group.targetGroupName
- Name of the group from which the supplied
groupName is removed.MBeanException
- When the group could not be removed from the group.NullPointerException
- When either the supplied groupName or
targetGroupName is null.NullPointerException
- When either the supplied groupName or
targetGroupName is null.Set<String> getGroupMembers(String groupName, String pattern, boolean includeNestedGroups) throws MBeanException
groupName
- The name of an existing group within which this method
searches for memberspattern
- The pattern for which this method searches.
includeNestedGroups
- Determines whether nested groups (true) are
searched or not.MBeanException
- When the group members could not be retrieved.NullPointerException
- When either the supplied groupName or
pattern is null.IllegalArgumentException
- When either the supplied groupName or
pattern is empty.Copyright © 2008–2018. All rights reserved.