Class AttachmentPermissionsDelegate
- java.lang.Object
-
- com.atlassian.confluence.security.delegate.AbstractPermissionsDelegate<Attachment>
-
- com.atlassian.confluence.security.delegate.AttachmentPermissionsDelegate
-
- All Implemented Interfaces:
PermissionDelegate<Attachment>
public class AttachmentPermissionsDelegate extends AbstractPermissionsDelegate<Attachment>
-
-
Field Summary
-
Fields inherited from class com.atlassian.confluence.security.delegate.AbstractPermissionsDelegate
spacePermissionManager
-
-
Constructor Summary
Constructors Constructor Description AttachmentPermissionsDelegate()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancanAdminister(com.atlassian.user.User user, Attachment target)booleancanCreate(com.atlassian.user.User user, Object container)booleancanEdit(com.atlassian.user.User user, Attachment target)booleancanExport(com.atlassian.user.User user, Attachment target)booleancanRemove(com.atlassian.user.User user, Attachment target)booleancanSetPermissions(com.atlassian.user.User user, Attachment target)booleancanView(com.atlassian.user.User user, Attachment target)protected SpacegetSpaceFrom(Object target)SpaceManagergetSpaceManager()voidsetAttachmentManager(AttachmentManager attachmentManager)voidsetContentPermissionManager(ContentPermissionManager contentPermissionManager)voidsetContentTypeManager(ContentTypeManager contentTypeManager)voidsetPermissionManager(PermissionManager permissionManager)voidsetPermissionManagerTarget(DefaultPermissionManager permissionManager)Deprecated.since 7.16 usesetPermissionManager(PermissionManager)voidsetSpaceManager(SpaceManager spaceManager)-
Methods inherited from class com.atlassian.confluence.security.delegate.AbstractPermissionsDelegate
canCreateInTarget, canView, hasSpaceLevelPermission, setSpacePermissionManager
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.confluence.security.PermissionDelegate
canMove, canRemoveHierarchy
-
-
-
-
Method Detail
-
canView
public boolean canView(com.atlassian.user.User user, Attachment target)- Returns:
- true if user can view the specified target.
-
canEdit
public boolean canEdit(com.atlassian.user.User user, Attachment target)
-
canSetPermissions
public boolean canSetPermissions(com.atlassian.user.User user, Attachment target)
-
canRemove
public boolean canRemove(com.atlassian.user.User user, Attachment target)
-
canExport
public boolean canExport(com.atlassian.user.User user, Attachment target)
-
canAdminister
public boolean canAdminister(com.atlassian.user.User user, Attachment target)
-
canCreate
public boolean canCreate(com.atlassian.user.User user, Object container)- Returns:
- true if the specified user can create new instances of the target type in the specified container.
-
setSpaceManager
public void setSpaceManager(SpaceManager spaceManager)
-
setPermissionManagerTarget
@Deprecated public void setPermissionManagerTarget(DefaultPermissionManager permissionManager)
Deprecated.since 7.16 usesetPermissionManager(PermissionManager)
-
setPermissionManager
public void setPermissionManager(PermissionManager permissionManager)
- Since:
- 7.16
-
setContentPermissionManager
public void setContentPermissionManager(ContentPermissionManager contentPermissionManager)
-
getSpaceFrom
protected Space getSpaceFrom(Object target)
- 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
public SpaceManager getSpaceManager()
-
setContentTypeManager
public void setContentTypeManager(ContentTypeManager contentTypeManager)
-
setAttachmentManager
public void setAttachmentManager(AttachmentManager attachmentManager)
-
-