Class CommentPermissionsDelegate
java.lang.Object
com.atlassian.confluence.security.delegate.AbstractPermissionsDelegate<Comment>
com.atlassian.confluence.security.delegate.CommentPermissionsDelegate
- All Implemented Interfaces:
- PermissionDelegate<Comment>
- 
Field SummaryFields inherited from class com.atlassian.confluence.security.delegate.AbstractPermissionsDelegatespacePermissionManager
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleancanAdminister(ConfluenceUser user, Comment target) booleancanCreate(ConfluenceUser user, Object container) booleancanEdit(ConfluenceUser user, Comment target) booleancanExport(ConfluenceUser user, Comment target) We've decided that most objects aside from spaces should not support canExport.booleancanRemove(ConfluenceUser user, Comment target) booleancanSetPermissions(ConfluenceUser user, Comment target) booleancanView(ConfluenceUser user, Comment target) protected SpacegetSpaceFrom(Object target) voidsetPermissionManager(PermissionManager permissionManager) Methods inherited from class com.atlassian.confluence.security.delegate.AbstractPermissionsDelegatecanCreateInTarget, canView, hasSpaceLevelPermission, setSpacePermissionManagerMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.confluence.security.PermissionDelegatecanMove, canRemoveHierarchy
- 
Constructor Details- 
CommentPermissionsDelegatepublic CommentPermissionsDelegate()
 
- 
- 
Method Details- 
canView- Returns:
- true if user can view the specified target.
 
- 
canEdit
- 
canSetPermissions
- 
canRemove
- 
canExportWe'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
- 
setPermissionManager- Since:
- 7.16
 
- 
canCreate- Returns:
- true if the specified user can create new instances of the target type in the specified container.
 
- 
getSpaceFrom- Specified by:
- getSpaceFromin class- AbstractPermissionsDelegate<Comment>
- Parameters:
- target- an entity object from which we want to extract a space container
- Returns:
- Spacecontainer of the given target if available
 
 
-