com.atlassian.jira.security.groups.GroupManager |
Known Indirect Subclasses |
This object can be used to manage groups in JIRA.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a user as a member of a group.
| |||||||||||
Create a group with the given name.
| |||||||||||
Get all groups.
| |||||||||||
Returns all the users that are direct members of the group.
| |||||||||||
Returns the Group for this groupName, else null if no such Group exists.
| |||||||||||
Returns the Group for this groupName, if no such Group exists then a proxy unknown immutable Group object is
returned.
| |||||||||||
Returns the names of all the groups that the given user belongs to.
| |||||||||||
Returns the names of all the groups that the given user belongs to.
| |||||||||||
Returns the names of all the groups that the given user belongs to.
| |||||||||||
Returns the Group for this groupName, else null if no such Group exists.
| |||||||||||
Returns all the groups that the given user belongs to.
| |||||||||||
Returns all the groups that the given user belongs to.
| |||||||||||
Returns the names of all the users in a group.
| |||||||||||
Returns the names of all the users in a group.
| |||||||||||
Returns all the users in a group.
| |||||||||||
Returns all the users in a group.
| |||||||||||
Returns
true if the given group name exists. | |||||||||||
Returns
true if the user is a member of the group. | |||||||||||
Returns
true if the user is a member of the group. |
Adds a user as a member of a group.
user | The user that will become a member of the group. |
---|---|
group | The group that will gain a new member. |
UserNotFoundException | if the user could not be found |
---|---|
GroupNotFoundException | if the group could not be found |
OperationNotPermittedException | if the directory has been configured to not allow the operation to be performed |
OperationFailedException | If the underlying directory implementation failed to execute the operation. |
Create a group with the given name.
groupName | The group name. |
---|
InvalidGroupException | if the group already exists in ANY associated directory or the group template does not have the required properties populated. |
---|---|
OperationNotPermittedException | if the directory has been configured to not allow the operation to be performed |
Returns all the users that are direct members of the group. This will NOT include nested group members.
group | The group |
---|
NullPointerException | if the group is null |
---|
Returns the Group for this groupName, else null if no such Group exists.
groupName | The group name. |
---|
Returns the Group for this groupName, if no such Group exists then a proxy unknown immutable Group object is returned.
groupName | The group name. |
---|
Returns the names of all the groups that the given user belongs to.
userName | The user |
---|
Returns the names of all the groups that the given user belongs to.
user | The user |
---|
Returns the names of all the groups that the given user belongs to.
user | The user |
---|
Returns the Group for this groupName, else null if no such Group exists.
Legacy synonym forgetGroup(String)
.groupName | The group name. |
---|
Returns all the groups that the given user belongs to.
userName | The user |
---|
Returns all the groups that the given user belongs to.
userName | The user |
---|
Returns the names of all the users in a group. This will include nested group members.
group | The group |
---|
NullPointerException | if the group is null |
---|
Returns the names of all the users in a group. This will include nested group members.
groupName | The group |
---|
NullPointerException | if the group is null |
---|
Returns all the users in a group. This will include nested group members.
group | The group |
---|
NullPointerException | if the group is null |
---|
Returns all the users in a group.
groupName | The group |
---|
Returns true
if the given group name exists.
groupName | The group name. |
---|
true
if the given group name exists.Returns true
if the user is a member of the group.
Note that if the username or groupname is null, then it will return false.
username | user to inspect. |
---|---|
groupname | group to inspect. |
true
if and only if the user is a direct or indirect (nested) member of the group.Returns true
if the user is a member of the group.
Note that if the User or Group object is null, then it will return false. This was done to retain consistency with the old OSUser behaviour of User.inGroup() and Group.containsUser()
user | user to inspect. |
---|---|
group | group to inspect. |
true
if and only if the user is a direct or indirect (nested) member of the group.