java.lang.Object | |
↳ | com.atlassian.confluence.security.DefaultPermissionManager |
Default implementation of PermissionManager. Delegates all the decision-making to a collection of delegates that handle the per-target-type permission checking.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.atlassian.confluence.security.PermissionManager
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
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.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.confluence.security.PermissionManager
|
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 |
entities | 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 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) |
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 |
Returns true if the user has the specified permission on the target object. 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 |
---|