public abstract class AbstractPermissionsDelegate<TARGET> extends Object implements PermissionDelegate<TARGET>
| Modifier and Type | Field and Description |
|---|---|
protected SpacePermissionManager |
spacePermissionManager |
| Constructor and Description |
|---|
AbstractPermissionsDelegate() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canCreateInTarget(com.atlassian.user.User user,
Class typeToCreate) |
boolean |
canView(com.atlassian.user.User user) |
protected abstract Space |
getSpaceFrom(Object target) |
protected boolean |
hasSpaceLevelPermission(String permission,
com.atlassian.user.User user,
Object target) |
void |
setSpacePermissionManager(SpacePermissionManager spacePermissionManager) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanAdminister, canCreate, canEdit, canExport, canMove, canRemove, canRemoveHierarchy, canSetPermissions, canViewprotected SpacePermissionManager spacePermissionManager
public void setSpacePermissionManager(SpacePermissionManager spacePermissionManager)
protected boolean hasSpaceLevelPermission(String permission, com.atlassian.user.User user, Object target)
public boolean canView(com.atlassian.user.User user)
canView in interface PermissionDelegate<TARGET>public boolean canCreateInTarget(com.atlassian.user.User user,
Class typeToCreate)
canCreateInTarget in interface PermissionDelegate<TARGET>user - the user performing the createtypeToCreate - the class of the entity to createCopyright © 2003–2019 Atlassian. All rights reserved.