com.atlassian.confluence.security.delegate
Class AbstractPermissionsDelegate
java.lang.Object
com.atlassian.confluence.security.delegate.AbstractPermissionsDelegate
- All Implemented Interfaces:
- PermissionDelegate
- Direct Known Subclasses:
- ApplicationPermissionsDelegate, AttachmentPermissionsDelegate, BlogPostPermissionsDelegate, CommentPermissionsDelegate, DraftPermissionsDelegate, GlobalDescriptionPermissionsDelegate, LabellingPermissionsDelegate, MailPermissionsDelegate, MailPermissionsDelegate, PagePermissionsDelegate, PageTemplatePermissionsDelegate, PeopleDirectoryPermissionsDelegate, SpacePermissionsDelegate, StatusPermissionDelegate
public abstract class AbstractPermissionsDelegate
- extends java.lang.Object
- implements PermissionDelegate
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
spacePermissionManager
protected SpacePermissionManager spacePermissionManager
AbstractPermissionsDelegate
public AbstractPermissionsDelegate()
setSpacePermissionManager
public void setSpacePermissionManager(SpacePermissionManager spacePermissionManager)
hasSpaceLevelPermission
protected boolean hasSpaceLevelPermission(java.lang.String permission,
com.atlassian.user.User user,
java.lang.Object target)
canView
public boolean canView(com.atlassian.user.User user)
- Specified by:
canView
in interface PermissionDelegate
- Returns:
- true if the user can view all instances of targets handled by this permission delegate
canCreateInTarget
public boolean canCreateInTarget(com.atlassian.user.User user,
java.lang.Class typeToCreate)
- Specified by:
canCreateInTarget
in interface PermissionDelegate
- Parameters:
user
- the user performing the createtypeToCreate
- the class of the entity to create
- Returns:
- true if the specified user can create new instances of the specified typeToCreate within instances of target handled by this PermissionDelegate.
getSpaceFrom
protected abstract Space getSpaceFrom(java.lang.Object target)
Copyright © 2003-2013 Atlassian. All Rights Reserved.