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.
| |||||||||||
Returns a collection of user names for the users that are direct members of every one of the supplied groups.
| |||||||||||
Get all groups.
| |||||||||||
Returns all the connect add-on users.
| |||||||||||
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 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 a list of all active user names that are direct members in at least one of the supplied groups.
| |||||||||||
Returns the names of all the users in a group.
| |||||||||||
Returns the names of all the users in a group.
| |||||||||||
Returns the names of all the users in a collection of groups.
| |||||||||||
Returns all the users in a group.
| |||||||||||
Returns a page with users in a group.
| |||||||||||
Returns all the users in a group.
| |||||||||||
Returns all the users in a group.
| |||||||||||
Returns a count of all active users in a group.
| |||||||||||
Returns a count of all active users in a group.
| |||||||||||
Returns
true if the given group exists. | |||||||||||
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. | |||||||||||
Returns
true if the user is a member of the named 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 a collection of user names for the users that are direct members of every one of the supplied groups.
userNames | A collection of user names |
---|---|
groupNames | A collection of groups |
Returns all the connect add-on users. This will return an empty Set
in JIRA Server as connect plugins are only
supported in JIRA Cloud. This result does not filter out inactive users.
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 Group for this groupName, else null if no such Group exists.
Legacy synonym for getGroup(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.
user | The user |
---|
Returns a list of all active user names that are direct members in at least one of the supplied groups.
groupNames | A collection of group names to find direct members of |
---|---|
limit | A maximum number of names to return |
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 the names of all the users in a collection of groups. This will include nested group members.
groups | The collection of groups |
---|
Returns all the users in a group.
groupName | The group |
---|
Returns a page with users in a group. Users are sorted by name in ascending order.
groupName | name of the group for which users are returned |
---|---|
active | if set to true inactive users will be returned as well |
pageRequest | parameters of the page to return |
Returns all the users in a group. This will include nested group members.
group | The group |
---|
Returns all the users in a group. Allows for additional filtering by the active flag of a user.
groupName | The group |
---|---|
includeInactive | if set to true inactive users will be returned as well |
Returns a count of all active users in a group. This will include nested group members.
group | The group |
---|
Returns a count of all active users in a group. This will include nested group members.
groupName | The group name |
---|
Returns true
if the given group exists.
group | The group. |
---|
true
if the given group exists.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 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.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.
Performance note: If you have a full user object, then calling one of the other
isUserInGroup()
methods directly is more efficient.
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 named group.
If you already have the user object, then this method is faster than the alternative of passing in the username because it saves on an unnecessary user lookup to find the correct User Directory.
user | user to inspect. |
---|---|
groupName | group to inspect. |
true
if and only if the user is a direct or indirect (nested) member of the group.