public class DraftPermissionsDelegate extends AbstractPermissionsDelegate<Draft>
Draft
object.
For the new shared drafts use the PermissionDelegate
corresponding to the actual draft class.
ContentEntityObject.DRAFT
spacePermissionManager
Constructor and Description |
---|
DraftPermissionsDelegate() |
Modifier and Type | Method and Description |
---|---|
boolean |
canAdminister(com.atlassian.user.User user,
Draft target) |
boolean |
canCreate(com.atlassian.user.User user,
Object container) |
boolean |
canEdit(com.atlassian.user.User user,
Draft target) |
boolean |
canExport(com.atlassian.user.User user,
Draft target) |
boolean |
canRemove(com.atlassian.user.User user,
Draft target) |
boolean |
canSetPermissions(com.atlassian.user.User user,
Draft target) |
boolean |
canView(com.atlassian.user.User user,
Draft target) |
protected Space |
getSpaceFrom(Object target) |
SpaceManager |
getSpaceManager() |
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, Draft target)
public boolean canEdit(com.atlassian.user.User user, Draft target)
public boolean canSetPermissions(com.atlassian.user.User user, Draft target)
public boolean canRemove(com.atlassian.user.User user, Draft target)
public boolean canExport(com.atlassian.user.User user, Draft target)
public boolean canAdminister(com.atlassian.user.User user, Draft target)
public boolean canCreate(com.atlassian.user.User user, Object container)
protected Space getSpaceFrom(Object target)
getSpaceFrom
in class AbstractPermissionsDelegate<Draft>
target
- an entity object from which we want to extract a space containerSpace
container of the given target if availablepublic void setSpaceManager(SpaceManager spaceManager)
public SpaceManager getSpaceManager()
Copyright © 2003–2019 Atlassian. All rights reserved.