public class CommentPermissionsDelegate extends AbstractPermissionsDelegate<Comment>
spacePermissionManager
Constructor and Description |
---|
CommentPermissionsDelegate() |
Modifier and Type | Method and Description |
---|---|
boolean |
canAdminister(com.atlassian.user.User user,
Comment target) |
boolean |
canCreate(com.atlassian.user.User user,
Object container) |
boolean |
canEdit(com.atlassian.user.User user,
Comment target) |
boolean |
canExport(com.atlassian.user.User user,
Comment target)
We've decided that most objects aside from spaces should not support canExport.
|
boolean |
canRemove(com.atlassian.user.User user,
Comment target) |
boolean |
canSetPermissions(com.atlassian.user.User user,
Comment target) |
boolean |
canView(com.atlassian.user.User user,
Comment target) |
protected Space |
getSpaceFrom(Object target) |
void |
setPermissionManagerTarget(DefaultPermissionManager permissionManager) |
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, Comment target)
public boolean canEdit(com.atlassian.user.User user, Comment target)
public boolean canSetPermissions(com.atlassian.user.User user, Comment target)
public boolean canRemove(com.atlassian.user.User user, Comment target)
public boolean canExport(com.atlassian.user.User user, Comment target)
public boolean canAdminister(com.atlassian.user.User user, Comment target)
public void setPermissionManagerTarget(DefaultPermissionManager permissionManager)
public boolean canCreate(com.atlassian.user.User user, Object container)
protected Space getSpaceFrom(Object target)
getSpaceFrom
in class AbstractPermissionsDelegate<Comment>
target
- an entity object from which we want to extract a space containerSpace
container of the given target if availableCopyright © 2003–2020 Atlassian. All rights reserved.