java.lang.Object | ||
↳ | com.atlassian.jira.security.DefaultPermissionManager | |
↳ | com.atlassian.jira.mock.MockPermissionManager |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
permissions |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a PermissionManager implementation where, by default, all permissions are given or denied based on the
given value.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Checks to see if this has permission to see the specified entity
Check Permissions scheme(s) if the entity is project Check Permissions scheme(s) and issue level security scheme(s) if the entity is an 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 whether the specified user has a specified permission within the context of a specified project.
| |||||||||||
Does the same as
hasPermission(int, org.ofbiz.core.entity.GenericValue, User) except
the entity is a project GenericValue. | |||||||||||
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.
| |||||||||||
Checks to see if this user has the specified permission
It will check only global permissions as there are no other permissions to check | |||||||||||
Checks to see if this user has permission to see the specified issue.
| |||||||||||
Checks to see if this user has permission to see the specified issue.
| |||||||||||
Can this user see at least one project with this permission
| |||||||||||
Can this user see at least one project with this permission
| |||||||||||
Remove all permissions that have used this group
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.atlassian.jira.security.DefaultPermissionManager
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.jira.security.PermissionManager
|
Creates a PermissionManager implementation where, by default, all permissions are given or denied based on the given value.
defaultPermission | if true, everything is permitted, if false, everything is denied. |
---|
Checks to see if this has permission to see the specified entity
Check Permissions scheme(s) if the entity is project
Check Permissions scheme(s) and issue level security scheme(s) if the entity is an issue
permissionId | Not a global permission |
---|---|
projectOrIssue | not null must be Project or Issue |
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.
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.
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 |
Does the same as hasPermission(int, org.ofbiz.core.entity.GenericValue, User)
except
the entity is a project GenericValue.
permissionsId | Not a global permission |
---|---|
project | Not null. |
user | User object, possibly null if JIRA is accessed anonymously |
issueCreation | Whether this permission is being checked during issue creation |
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. |
u | The person to perform the permission check for |
issueCreation | Whether this permission is being checked during issue creation |
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 |
issueCreation | Whether this permission is being checked during issue creation |
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 |
---|---|
u | user |
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 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 |
Can this user see at least one project with this permission
permissionId | must NOT be a global permission |
---|---|
user | user |
Can this user see at least one project with this permission
permissionId | must NOT be a global permission |
---|---|
user | user being checked |
Remove all permissions that have used this group
group | The name of the group that needs to be removed, must NOT be null and must be a real group |
---|
RemoveException |
---|