java.lang.Object | |
↳ | com.atlassian.jira.security.SubvertedPermissionManager |
The purpose of this class is to provide a temporary access-all-areas pass and is a (partial) implementation of PermissionManager (subverting the stored permissions). Operations that attempt to specify a change to stored permissions like adding or removing permissions and the getAllGroups() method throw an UnsupportedOperationException.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Not implemented.
| |||||||||||
Returns a project permission matching the specified key.
| |||||||||||
Retrieve a list of project objects this user has the permission for
| |||||||||||
Retrieve a list of project objects this user has the permission for
| |||||||||||
Returns the list of projects associated with the specified category, that this user has the permissions for.
| |||||||||||
Returns the list of projects associated with the specified category, that this user has the permissions for.
| |||||||||||
Checks to see if this user has the given permission to the specified issue after the given workflow transition takes effect.
| |||||||||||
Checks to see if this user has permission to see the specified issue.
| |||||||||||
Checks to see if this user has the specified permission.
| |||||||||||
Checks whether the specified user has a specified permission within the context of a specified project.
| |||||||||||
Checks to see if this user has the given permission to the specified issue if the issue was in the given status.
| |||||||||||
Checks to see if this user has permission to see the specified issue.
| |||||||||||
Checks whether the specified user has a specified permission within the context of a specified project.
| |||||||||||
Checks whether the specified user has a specified permission within the context of a specified project.
| |||||||||||
Always return true.
| |||||||||||
Checks whether a user has a particular permission in the given project.
| |||||||||||
Can this user see at least one project with this permission
| |||||||||||
Can this user see at least one project with this permission
| |||||||||||
Not implemented.
| |||||||||||
Not implemented.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.jira.security.PermissionManager
|
Not implemented.
permType | permission id |
---|---|
project | project from which to retrieve groups |
Returns a project permission matching the specified key.
permissionKey | A project permission key. |
---|
none()
if there is no permission with this key.Retrieve a list of project objects this user has the permission for
permissionKey | must NOT be a global permission |
---|---|
user | user |
Project
objectsRetrieve a list of project objects this user has the permission for
permissionId | must NOT be a global permission |
---|---|
user | user |
Project
objectsReturns the list of projects associated with the specified category, that this user has the permissions for.
permissionKey | permission key |
---|---|
user | user |
projectCategory | the ProjectCategory - null means find projects with no category. |
Returns the list of projects associated with the specified category, that this user has the permissions for.
permissionId | permission id |
---|---|
user | user |
projectCategory | the ProjectCategory |
Checks to see if this user has the given permission to the specified issue after the given workflow transition takes effect.
permissionKey | The project permission key. |
---|---|
issue | The Issue (cannot be null) |
user | User object, possibly null if JIRA is accessed anonymously |
actionDescriptor | Represents the current workflow transition |
Checks to see if this user has permission to see the specified issue.
Note that if the issue's generic value is null, it is assumed that the issue is currently being created, and so the permission check call is deferred to the issue's project object, with the issueCreation flag set to true. See JRA-14788 for more info.
permissionsId | Not a global permission |
---|---|
issue | The Issue (cannot be null) |
user | User object, possibly null if JIRA is accessed anonymously |
Checks to see if this user has the specified permission. It will check only global permissions as there are no other permissions to check.
permissionsId | permission id |
---|---|
user | user, can be null - anonymous user |
Checks whether the specified user has a specified permission within the context of a specified project.
permissionKey | A non-global permission, i.e. a permission that is granted via a project context |
---|---|
project | The project that is the context of the permission check. |
user | The person to perform the permission check for |
issueCreation | Whether this permission is being checked during issue creation |
Checks to see if this user has the given permission to the specified issue if the issue was in the given status.
This method is useful during a workflow transition to check what the permissions will be in the new status, or (after the status is updated in the Issue object) to check what the permission would have been in the old status.
permissionKey | The project permission key. |
---|---|
issue | The Issue (cannot be null) |
user | User object, possibly null if JIRA is accessed anonymously |
status | Represents the state we are checking permissions against |
Checks to see if this user has permission to see the specified issue.
Note that if the issue's generic value is null, it is assumed that the issue is currently being created, and so the permission check call is deferred to the issue's project object, with the issueCreation flag set to true. See JRA-14788 for more info.
permissionKey | Not a global permission key |
---|---|
issue | The Issue (cannot be null) |
user | User object, possibly null if JIRA is accessed anonymously |
Checks whether the specified user has a specified permission within the context of a specified project.
permissionsId | A non-global permission, i.e. a permission that is granted via a project context |
---|---|
project | The project that is the context of the permission check. |
user | The person to perform the permission check for |
Checks whether the specified user has a specified permission within the context of a specified project.
permissionKey | A non-global permission, i.e. a permission that is granted via a project context |
---|---|
project | The project that is the context of the permission check. |
user | The person to perform the permission check for |
Always return true.
permissionsId | ignored |
---|---|
project | ignored |
user | ignored |
issueCreation | ignored |
Checks whether a user has a particular permission in the given project.
This method returns a tri-state enum in order to convey information about permissions that are granted on a per-issue basis.
ISSUE_SPECIFIC
, it may be that there are no issues for which the
user has the permission granted.
permissionKey | A project permission |
---|---|
project | The project that is the context of the permission check. |
user | The person to perform the permission check for (null means anonymous) |
ALL_ISSUES
, NO_ISSUES
, or ISSUE_SPECIFIC
Can this user see at least one project with this permission
permissionId | must NOT be a global permission |
---|---|
user | user being checked |
Can this user see at least one project with this permission
permissionKey | must NOT be a global permission |
---|---|
user | user being checked |
Not implemented.
group | The name of the group that needs to be removed, must NOT be null and must be a real group |
---|
Not implemented.
user | the user whose permissions are to be removed |
---|
RemoveException |
---|