java.lang.Object | |
↳ | com.atlassian.jira.security.DefaultGlobalPermissionManager |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a global permission
| |||||||||||
Grants a user group a global permission.
| |||||||||||
Returns a global permission matching the specified key.
| |||||||||||
Returns the global permission details for the given permission key.
| |||||||||||
Retrieve all the group names with this permission.
| |||||||||||
Retrieve all the group names with this permission.
| |||||||||||
Retrieve all the group names with this permission.
| |||||||||||
Retrieve all the groups with this permission.
| |||||||||||
Retrieve all the groups with the given permission.
| |||||||||||
Retrieve all the groups with this permission.
| |||||||||||
Retrieve a list of user groups which have been granted a specified permission.
| |||||||||||
Retrieve a list of user groups which have been granted a specified permission.
| |||||||||||
Retrieve a list of user groups which have been granted the specified permission.
| |||||||||||
Left in here temporarily in case it is being used by SD 2.0
| |||||||||||
Check if a global anonymous permission exists
| |||||||||||
Check if a global permission for one of the users groups exists.
| |||||||||||
Check if the given user has the given Global Permission.
| |||||||||||
Left in here temporarily in case it is being used by SD 2.0
| |||||||||||
Determine whether configuration exists for the specified
Group . | |||||||||||
Checks if jira should be responsible for managing a permission.
| |||||||||||
Revokes a global permission for a user group
| |||||||||||
Revokes a global permission for a user group
| |||||||||||
Revoke all global permissions for a user group.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
Adds a global permission
permissionId | must be a global permission type |
---|---|
group | can be null if it is anyone permission |
Grants a user group a global permission.
globalPermissionType | global permission, must not be null. |
---|---|
group | the name of the group. Null means "anyone" group. The JIRA use, admin and sysadmin permission cannot be granted to "anyone". |
Returns a global permission matching the specified key.
permissionKey | the key of the permission declared by global permission module. |
---|
Returns the global permission details for the given permission key.
permissionKey | the global permission key |
---|
Retrieve all the group names with this permission. Only group names directly associated with the permission will be returned.
permissionId | must be a global permission |
---|
Retrieve all the group names with this permission. Only group names directly associated with the permission will be returned.
globalPermissionType | global permission, must not be null. |
---|
Retrieve all the group names with this permission. Only group names directly associated with the permission will be returned.
permissionKey | global permission, must not be null. |
---|
Retrieve all the groups with this permission. Only groups directly associated with the permission will be returned.
globalPermissionType | global permission, must not be null. |
---|
Group
's, will never be null.Retrieve all the groups with the given permission.
Only groups directly associated with the permission will be returned.
permissionKey | global permission, must not be null. |
---|
Group
's, will never be null.Retrieve all the groups with this permission. Only groups directly associated with the permission will be returned.
permissionId | must be a global permission |
---|
Group
's, will never be null.Retrieve a list of user groups which have been granted a specified permission.
The returned JiraPermission
contains a reference to the user group.
getScheme()
is always NULL, because Global permission are not configured using schemes.
getType()
will always return "group", because global permissions can only be granted to groups.
globalPermissionType | global permission, must not be null. |
---|
getPermType()
, must never return null.Retrieve a list of user groups which have been granted a specified permission.
The returned JiraPermission
contains a reference to the user group.
getScheme()
is always NULL, because Global permission are not configured using schemes.
getType()
will always return "group", because global permissions can only be granted to groups.
permissionType | The key of pluggable global permission. Must be a global permission. |
---|
getPermType()
, must never return null.Retrieve a list of user groups which have been granted the specified permission.
The returned GlobalPermissionEntry
contains a reference to the user group.
globalPermissionKey | global permission, must not be null. |
---|
GlobalPermissionEntry
, never null.Left in here temporarily in case it is being used by SD 2.0
Check if a global anonymous permission exists
permissionId | must be global permission |
---|
Check if a global permission for one of the users groups exists.
If the permission type is ADMINISTER
and the lookup is false then the same
query will be executed for the SYSTEM_ADMIN
permission type, since
it is implied that having a SYSTEM_ADMIN
permission grants
ADMINISTER
rights.
Note: Use hasPermission(int)
method is you do not have the user object, i.e. user is anonymous.
If you are using this method directly, consider using
hasPermission(int, ApplicationUser)
instead as it handles logged in and anonymous users as well.
permissionId | must be a global permission |
---|---|
user | must not be null |
Check if the given user has the given Global Permission.
If the permission type is ADMINISTER
and the lookup is false then the same
query will be executed for the SYSTEM_ADMIN
permission type, since
it is implied that having a SYSTEM_ADMIN
permission grants
ADMINISTER
rights.
globalPermissionKey | global permission, must not be null. |
---|---|
user | The user - can be null indicating "anonymous" |
Left in here temporarily in case it is being used by SD 2.0
Determine whether configuration exists for the specified Group
.
group | that may or may not exist. |
---|
Checks if jira should be responsible for managing a permission. I.e. in on demand mode USE permission might be managed by User Manager, therefore admin should not be able to add it via jira.
permissionKey | global permission |
---|
Revokes a global permission for a user group
globalPermissionType | global permission, must not be null. |
---|---|
group | the group name. NULL means the anyone group. |
Revokes a global permission for a user group
permissionId | the global permission. |
---|---|
group | the group name. NULL means the anyone group. |
Revoke all global permissions for a user group.
group | cannot NOT be null and the group must exist. |
---|