| com.atlassian.confluence.security.PermissionManager |
Known Indirect Subclasses
|
Generalised interface for checking whether a particular action in Confluence is allowed, without any knowledge of the specific implementation of permissions as they relate to spaces, pages and so on.
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| PermissionManager.Criterion | A criterion for whether an entity should be permitted or not | ||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| TARGET_APPLICATION | A target that encompasses most administrative functions minus the ones covered by TARGET_SYSTEM. | ||||||||||
| TARGET_PEOPLE_DIRECTORY | A target the represents the People Directory function of Confluence. | ||||||||||
| TARGET_SYSTEM | A target that encompasses functions that have system impact and can compromise system security. | ||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Filter an iterator based on which entities in the list have a particular permission.
| |||||||||||
Filter a list based on which entities in the list have a particular permission.
| |||||||||||
Filter an iterator based on which entities in the list have a particular permission.
| |||||||||||
Determine whether a user has permission to create an entity of a particular type within a given container.
| |||||||||||
Determine whether a user has a particular permission against a given target.
| |||||||||||
Returns true if the user has the specified permission on the target object.
| |||||||||||
Determine if the user is a Confluence administrator.
| |||||||||||
A target that encompasses most administrative functions minus the ones covered by TARGET_SYSTEM.
A target the represents the People Directory function of Confluence.
A target that encompasses functions that have system impact and can compromise system security.
Filter an iterator based on which entities in the list have a particular permission.
| user | the user seeking permission, or null if the anonymous user is being checked against |
|---|---|
| permission | the permission to check against the objects |
| objects | the objects to check |
| maxResults | the maximum number of permitted entities to retrieve from the iterator (un-permitted entities are not counted) |
Filter a list based on which entities in the list have a particular permission.
| user | the user seeking permission, or null if the anonymous user is being checked against |
|---|---|
| permission | the permission to check against the objects |
| objects | the objects to check |
Filter an iterator based on which entities in the list have a particular permission. You may also supply additional criteria through which to filter the iterator.
| user | the user seeking permission, or null if the anonymous user is being checked against |
|---|---|
| permission | the permission to check against the objects |
| objects | the objects to check |
| maxResults | the maximum number of permitted entities to retrieve from the iterator (un-permitted entities are not counted) |
| otherCriteria | a collection of PermissionManager.Criterion objects through which the permitted entities must also be filtered |
Determine whether a user has permission to create an entity of a particular type within a given container.
The container is the natural container of the object being created. For example, a comment is contained in a page, which is contained within a space. A space is contained within TARGET_APPLICATION.
| user | the user seeking permission, or null if the anonymous user is being checked against |
|---|---|
| container | the target that the object is being created within. If this object is null, the method will return false |
| typeToCreate | the type of object being created (see above) |
| IllegalStateException | if the permission being checked against does not apply to the target |
|---|
Determine whether a user has a particular permission against a given target.
| user | the user seeking permission, or null if the anonymous user is being checked against |
|---|---|
| permission | the permission to check |
| target | the object that the permission is being checked against. If this object is null, the method will return false |
| IllegalStateException | if the permission being checked against does not apply to the target |
|---|
Returns true if the user has the specified permission on the target object. This method does not allow
exemptions for super-users like hasPermission(User, Permission, Object) does.
hasPermission(User, Permission, Object).
Determine if the user is a Confluence administrator. Calling this method is identical to calling
hasPermission(user, Permission.ADMINISTER, PermissionManager.TARGET_APPLICATION).
| user | the user to check permissions against |
|---|