public interface PermissionDelegate
These delegates on check content access according to the permissions set.
If you need to verify other restrictions that are context dependant like ContentEntityObject.SHARE_ID
make sure you put them in the corresponding places.
Modifier and Type | Method and Description |
---|---|
boolean |
canAdminister(com.atlassian.user.User user,
Object target) |
boolean |
canCreate(com.atlassian.user.User user,
Object container) |
boolean |
canCreateInTarget(com.atlassian.user.User user,
Class typeToCreate) |
boolean |
canEdit(com.atlassian.user.User user,
Object target) |
boolean |
canExport(com.atlassian.user.User user,
Object target) |
default boolean |
canMove(com.atlassian.user.User user,
Object source,
Object target,
String movePoint) |
boolean |
canRemove(com.atlassian.user.User user,
Object target) |
default boolean |
canRemoveHierarchy(com.atlassian.user.User user,
Object target) |
boolean |
canSetPermissions(com.atlassian.user.User user,
Object target) |
boolean |
canView(com.atlassian.user.User user) |
boolean |
canView(com.atlassian.user.User user,
Object target) |
boolean canView(com.atlassian.user.User user, Object target)
boolean canView(com.atlassian.user.User user)
boolean canEdit(com.atlassian.user.User user, Object target)
boolean canSetPermissions(com.atlassian.user.User user, Object target)
boolean canRemove(com.atlassian.user.User user, Object target)
default boolean canMove(com.atlassian.user.User user, Object source, Object target, String movePoint)
default boolean canRemoveHierarchy(com.atlassian.user.User user, Object target)
boolean canExport(com.atlassian.user.User user, Object target)
boolean canAdminister(com.atlassian.user.User user, Object target)
boolean canCreate(com.atlassian.user.User user, Object container)
boolean canCreateInTarget(com.atlassian.user.User user, Class typeToCreate)
user
- the user performing the createtypeToCreate
- the class of the entity to createCopyright © 2003–2017 Atlassian. All rights reserved.