public interface PermissionDelegate<TARGET>
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,
TARGET 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,
TARGET target) |
boolean |
canExport(com.atlassian.user.User user,
TARGET target) |
default boolean |
canMove(com.atlassian.user.User user,
TARGET source,
Object target,
String movePoint) |
boolean |
canRemove(com.atlassian.user.User user,
TARGET target) |
default boolean |
canRemoveHierarchy(com.atlassian.user.User user,
TARGET target) |
boolean |
canSetPermissions(com.atlassian.user.User user,
TARGET target) |
boolean |
canView(com.atlassian.user.User user) |
boolean |
canView(com.atlassian.user.User user,
TARGET target) |
boolean canView(com.atlassian.user.User user, TARGET target)
boolean canView(com.atlassian.user.User user)
boolean canEdit(com.atlassian.user.User user, TARGET target)
boolean canSetPermissions(com.atlassian.user.User user, TARGET target)
boolean canRemove(com.atlassian.user.User user, TARGET target)
default boolean canMove(com.atlassian.user.User user, TARGET source, Object target, String movePoint)
default boolean canRemoveHierarchy(com.atlassian.user.User user, TARGET target)
boolean canExport(com.atlassian.user.User user, TARGET target)
boolean canAdminister(com.atlassian.user.User user, TARGET 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–2018 Atlassian. All rights reserved.