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, DummyPermissionDelegate, GlobalDescriptionPermissionsDelegate, LabellingPermissionsDelegate, MailPermissionsDelegate, MailPermissionsDelegate, PagePermissionsDelegate, PageTemplatePermissionsDelegate, PeopleDirectoryPermissionsDelegate, SpacePermissionsDelegate, StatusPermissionDelegate
public abstract class AbstractPermissionsDelegate
- extends 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(String permission,
com.atlassian.user.User user,
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,
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(Object target)
Copyright © 2003–2015 Atlassian. All rights reserved.