Class AttachmentPermissionsDelegate
java.lang.Object
com.atlassian.confluence.security.delegate.AbstractPermissionsDelegate<Attachment>
com.atlassian.confluence.security.delegate.AttachmentPermissionsDelegate
- All Implemented Interfaces:
PermissionDelegate<Attachment>
-
Field Summary
Fields inherited from class com.atlassian.confluence.security.delegate.AbstractPermissionsDelegate
spacePermissionManager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanAdminister(ConfluenceUser user, Attachment target) booleancanCreate(ConfluenceUser user, Object container) booleancanEdit(ConfluenceUser user, Attachment target) booleancanExport(ConfluenceUser user, Attachment target) booleancanRemove(ConfluenceUser user, Attachment target) booleancanSetPermissions(ConfluenceUser user, Attachment target) booleancanView(ConfluenceUser user, Attachment target) protected SpacegetSpaceFrom(Object target) voidsetAttachmentManager(AttachmentManager attachmentManager) voidsetContentPermissionManager(ContentPermissionManager contentPermissionManager) voidsetContentTypeManager(ContentTypeManager contentTypeManager) voidsetPermissionManager(PermissionManager permissionManager) voidsetPermissionManagerTarget(DefaultPermissionManager permissionManager) Deprecated.voidsetSpaceManager(SpaceManager spaceManager) Methods inherited from class com.atlassian.confluence.security.delegate.AbstractPermissionsDelegate
canCreateInTarget, canView, hasSpaceLevelPermission, hasSpaceLevelPermission, setSpacePermissionManagerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.confluence.security.PermissionDelegate
canAdminister, canCreate, canCreateInTarget, canEdit, canExport, canMove, canMove, canRemove, canRemoveHierarchy, canRemoveHierarchy, canSetPermissions, canView, canView
-
Constructor Details
-
AttachmentPermissionsDelegate
public AttachmentPermissionsDelegate()
-
-
Method Details
-
canView
- Returns:
- true if user can view the specified target.
-
canEdit
-
canSetPermissions
-
canRemove
-
canExport
-
canAdminister
-
canCreate
- Returns:
- true if the specified user can create new instances of the target type in the specified container.
-
setSpaceManager
-
setPermissionManagerTarget
Deprecated.since 7.16 usesetPermissionManager(PermissionManager) -
setPermissionManager
- Since:
- 7.16
-
setContentPermissionManager
-
getSpaceFrom
- Specified by:
getSpaceFromin classAbstractPermissionsDelegate<Attachment>- Parameters:
target- an entity object from which we want to extract a space container- Returns:
Spacecontainer of the given target if available
-
getSpaceManager
-
setContentTypeManager
-
setAttachmentManager
-
setPermissionManager(PermissionManager)