public class AttachmentPermissionsDelegate extends AbstractPermissionsDelegate<Attachment>
spacePermissionManager
Constructor and Description |
---|
AttachmentPermissionsDelegate() |
Modifier and Type | Method and Description |
---|---|
boolean |
canAdminister(com.atlassian.user.User user,
Attachment target) |
boolean |
canCreate(com.atlassian.user.User user,
Object container) |
boolean |
canEdit(com.atlassian.user.User user,
Attachment target) |
boolean |
canExport(com.atlassian.user.User user,
Attachment target) |
boolean |
canRemove(com.atlassian.user.User user,
Attachment target) |
boolean |
canSetPermissions(com.atlassian.user.User user,
Attachment target) |
boolean |
canView(com.atlassian.user.User user,
Attachment target) |
protected Space |
getSpaceFrom(Object target) |
SpaceManager |
getSpaceManager() |
void |
setAttachmentManager(AttachmentManager attachmentManager) |
void |
setContentPermissionManager(ContentPermissionManager contentPermissionManager) |
void |
setContentTypeManager(ContentTypeManager contentTypeManager) |
void |
setPermissionManagerTarget(DefaultPermissionManager permissionManager) |
void |
setSpaceManager(SpaceManager spaceManager) |
canCreateInTarget, canView, hasSpaceLevelPermission, setSpacePermissionManager
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canMove, canRemoveHierarchy
public boolean canView(com.atlassian.user.User user, Attachment target)
public boolean canEdit(com.atlassian.user.User user, Attachment target)
public boolean canSetPermissions(com.atlassian.user.User user, Attachment target)
public boolean canRemove(com.atlassian.user.User user, Attachment target)
public boolean canExport(com.atlassian.user.User user, Attachment target)
public boolean canAdminister(com.atlassian.user.User user, Attachment target)
public boolean canCreate(com.atlassian.user.User user, Object container)
public void setSpaceManager(SpaceManager spaceManager)
public void setPermissionManagerTarget(DefaultPermissionManager permissionManager)
public void setContentPermissionManager(ContentPermissionManager contentPermissionManager)
protected Space getSpaceFrom(Object target)
getSpaceFrom
in class AbstractPermissionsDelegate<Attachment>
target
- an entity object from which we want to extract a space containerSpace
container of the given target if availablepublic SpaceManager getSpaceManager()
public void setContentTypeManager(ContentTypeManager contentTypeManager)
public void setAttachmentManager(AttachmentManager attachmentManager)
Copyright © 2003–2020 Atlassian. All rights reserved.