Class CommentPermissionsDelegate
- java.lang.Object
-
- com.atlassian.confluence.security.delegate.AbstractPermissionsDelegate<Comment>
-
- com.atlassian.confluence.security.delegate.CommentPermissionsDelegate
-
- All Implemented Interfaces:
PermissionDelegate<Comment>
public class CommentPermissionsDelegate extends AbstractPermissionsDelegate<Comment>
-
-
Field Summary
-
Fields inherited from class com.atlassian.confluence.security.delegate.AbstractPermissionsDelegate
spacePermissionManager
-
-
Constructor Summary
Constructors Constructor Description CommentPermissionsDelegate()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
canAdminister(ConfluenceUser user, Comment target)
boolean
canCreate(ConfluenceUser user, Object container)
boolean
canEdit(ConfluenceUser user, Comment target)
boolean
canExport(ConfluenceUser user, Comment target)
We've decided that most objects aside from spaces should not support canExport.boolean
canRemove(ConfluenceUser user, Comment target)
boolean
canSetPermissions(ConfluenceUser user, Comment target)
boolean
canView(ConfluenceUser user, Comment target)
protected Space
getSpaceFrom(Object target)
void
setPermissionManager(PermissionManager permissionManager)
void
setPermissionManagerTarget(DefaultPermissionManager permissionManager)
Deprecated.since 7.16 usesetPermissionManager(PermissionManager)
-
Methods inherited from class com.atlassian.confluence.security.delegate.AbstractPermissionsDelegate
canCreateInTarget, canView, hasSpaceLevelPermission, 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
canAdminister, canCreate, canCreateInTarget, canEdit, canExport, canMove, canMove, canRemove, canRemoveHierarchy, canRemoveHierarchy, canSetPermissions, canView, canView
-
-
-
-
Method Detail
-
canView
public boolean canView(ConfluenceUser user, Comment target)
- Returns:
- true if user can view the specified target.
-
canEdit
public boolean canEdit(ConfluenceUser user, Comment target)
-
canSetPermissions
public boolean canSetPermissions(ConfluenceUser user, Comment target)
-
canRemove
public boolean canRemove(ConfluenceUser user, Comment target)
-
canExport
public boolean canExport(ConfluenceUser user, Comment target)
We've decided that most objects aside from spaces should not support canExport. We've changed some of them to delegate to view, but we're leaving this one delegating to its container for compatibility. The new operations delegate api will not support export for comments.
-
canAdminister
public boolean canAdminister(ConfluenceUser user, Comment target)
-
setPermissionManagerTarget
@Deprecated public void setPermissionManagerTarget(DefaultPermissionManager permissionManager)
Deprecated.since 7.16 usesetPermissionManager(PermissionManager)
-
setPermissionManager
public void setPermissionManager(PermissionManager permissionManager)
- Since:
- 7.16
-
canCreate
public boolean canCreate(ConfluenceUser user, Object container)
- Returns:
- true if the specified user can create new instances of the target type in the specified container.
-
getSpaceFrom
protected Space getSpaceFrom(Object target)
- Specified by:
getSpaceFrom
in classAbstractPermissionsDelegate<Comment>
- Parameters:
target
- an entity object from which we want to extract a space container- Returns:
Space
container of the given target if available
-
-