Class AbstractPermissionsDelegate<TARGET>
- java.lang.Object
- 
- com.atlassian.confluence.security.delegate.AbstractPermissionsDelegate<TARGET>
 
- 
- All Implemented Interfaces:
- PermissionDelegate<TARGET>
 - Direct Known Subclasses:
- AttachmentPermissionsDelegate,- BlogPostPermissionsDelegate,- CommentPermissionsDelegate,- DraftPermissionsDelegate,- LabellingPermissionsDelegate,- PagePermissionsDelegate,- PageTemplatePermissionsDelegate,- SpacePermissionsDelegate
 
 public abstract class AbstractPermissionsDelegate<TARGET> extends Object implements PermissionDelegate<TARGET> 
- 
- 
Field SummaryFields Modifier and Type Field Description protected SpacePermissionManagerspacePermissionManager
 - 
Constructor SummaryConstructors Constructor Description AbstractPermissionsDelegate()
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleancanCreateInTarget(com.atlassian.user.User user, Class typeToCreate)booleancanView(com.atlassian.user.User user)protected abstract SpacegetSpaceFrom(Object target)protected booleanhasSpaceLevelPermission(String permission, com.atlassian.user.User user, Object target)voidsetSpacePermissionManager(SpacePermissionManager spacePermissionManager)- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface com.atlassian.confluence.security.PermissionDelegatecanAdminister, canCreate, canEdit, canExport, canMove, canRemove, canRemoveHierarchy, canSetPermissions, canView
 
- 
 
- 
- 
- 
Field Detail- 
spacePermissionManagerprotected SpacePermissionManager spacePermissionManager 
 
- 
 - 
Method Detail- 
setSpacePermissionManagerpublic void setSpacePermissionManager(SpacePermissionManager spacePermissionManager) 
 - 
hasSpaceLevelPermissionprotected boolean hasSpaceLevelPermission(String permission, com.atlassian.user.User user, Object target) 
 - 
canViewpublic boolean canView(com.atlassian.user.User user) - Specified by:
- canViewin interface- PermissionDelegate<TARGET>
- Returns:
- true if the user can view all instances of targets handled by this permission delegate
 
 - 
canCreateInTargetpublic boolean canCreateInTarget(com.atlassian.user.User user, Class typeToCreate)- Specified by:
- canCreateInTargetin interface- PermissionDelegate<TARGET>
- Parameters:
- user- the user performing the create
- typeToCreate- 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.
 
 
- 
 
-