java.lang.Object | |
↳ | com.atlassian.jira.security.groups.MockGroupManager |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
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. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.jira.security.groups.GroupManager
|
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. |
Create a group with the given name.
groupName | The group name. |
---|
Returns all the users that are direct members of the group. This will NOT include nested group members.
group | The group |
---|
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.
user | 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 |
---|
Returns the names of all the users in a group. This will include nested group members.
groupName | The group |
---|
Returns all the users in a group. This will include nested group members.
group | The group |
---|
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.