public abstract class AbstractPermissionsDelegate extends Object implements PermissionDelegate
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, wait
canAdminister, canCreate, canEdit, canExport, canRemove, canSetPermissions, canView
protected 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
public boolean canCreateInTarget(com.atlassian.user.User user, Class typeToCreate)
canCreateInTarget
in interface PermissionDelegate
user
- the user performing the createtypeToCreate
- the class of the entity to createCopyright © 2003–2015 Atlassian. All rights reserved.