java.lang.Object | |
↳ | com.atlassian.jira.util.GlobalPermissionGroupAssociationUtil |
This is a utility class to find out information about ADMINISTER
and
SYSTEM_ADMIN
global permission information. You can use this class to find out
if you are removing all the groups that grant a provided user the permission. You can also use
this to find out the groups that the provided user is a member of and which is associated with
the global permission.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
GROUP_TO_GROUPNAME | Transforms a Group to its name as a String. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns All the groupNames that have global "Administration" permission that this user is a member of.
| |||||||||||
Determines which groups will be visible to the current user.
| |||||||||||
Determines which groups will be visible to the current user.
| |||||||||||
Get all groups which have neither
SYSTEM_ADMIN or ADMINISTER | |||||||||||
Returns All the groupNames that have global "System Administration" permission that this user is a member of.
| |||||||||||
Return true if the user is trying to remove all the groups that grant them the administration permission.
| |||||||||||
Return true if the user is trying to remove all the groups that grant them the system administration permission.
| |||||||||||
Determines, based on the users permissions, if the group can be deleted.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Transforms a Group to its name as a String.
Returns All the groupNames that have global "Administration" permission that this user is a member of.
user | performing this operation. |
---|
String
group names that the global Admin permission is associated
with and which the user is in.
Determines which groups will be visible to the current user. If the user is a SYSTEM_ADMIN
then they can see all the groups, otherwise they will not be able to see the group names associated with
the SYSTEM_ADMIN
permission.
currentUser | performing the operation |
---|---|
groupNames | the full set of possible group names the user might see |
SYSTEM_ADMIN
rights, otherwise a collection that does not contain the SYS_ADMIN group names.
Determines which groups will be visible to the current user. If the user is a SYSTEM_ADMIN
then they can see all the groups, otherwise they will not be able to see the groups associated with
the SYSTEM_ADMIN
permission.
currentUser | performing the operation |
---|---|
groups | the full set of possible groups the user might see |
groups
list if they user has SYSTEM_ADMIN
rights, otherwise a collection that does not contain the SYS_ADMIN groups.
Get all groups which have neither SYSTEM_ADMIN
or ADMINISTER
groups | the full set of possible groups the user might see |
---|
groups
list if they user has SYSTEM_ADMIN
rights, otherwise a collection that does not contain the SYS_ADMIN groups.
Returns All the groupNames that have global "System Administration" permission that this user is a member of.
user | the user performing this operation. |
---|
String
group names that the global System Admin permission is associated
with and which the user is in.
Return true if the user is trying to remove all the groups that grant them the administration permission.
groupsToLeave | a Collection of String , group names, that the user is trying to
unassociate/remove. |
---|---|
user | performing this operation. |
Return true if the user is trying to remove all the groups that grant them the system administration permission.
groupsToLeave | a Collection of String , group names, that the user is trying to
unassociate/remove. |
---|---|
user | performing this operation. |
Determines, based on the users permissions, if the group can be deleted.
user | performing this operation. |
---|---|
groupName | the group to delete |
SYSTEM_ADMIN
permission or if
the group is not associated with the SYSTEM_ADMIN
permission.