Class CommentOperationDelegate
- java.lang.Object
-
- com.atlassian.confluence.api.impl.service.permissions.delegates.CommentOperationDelegate
-
- All Implemented Interfaces:
OperationDelegate
@ParametersAreNonnullByDefault public class CommentOperationDelegate extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected TargetResolver
targetResolver
-
Constructor Summary
Constructors Constructor Description CommentOperationDelegate(CommentPermissionsDelegate permissionDelegate, ConfluenceUserResolver confluenceUserResolver, TargetResolver targetResolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<OperationCheck>
getAllOperations()
Return a list ofOperationCheck
s for all operations supported by this delegate.protected String
getDebugString(OperationKey operationKey, String message, Target target, com.atlassian.user.User user, org.slf4j.Logger log)
OperationCheck
getOperation(OperationKey opKey)
Get theOperationCheck
which can answer questions about a particular operation.protected List<OperationCheck>
makeOperations()
Defines the list of operations for this delegate; called once at construction.
-
-
-
Field Detail
-
targetResolver
protected final TargetResolver targetResolver
-
-
Constructor Detail
-
CommentOperationDelegate
public CommentOperationDelegate(CommentPermissionsDelegate permissionDelegate, ConfluenceUserResolver confluenceUserResolver, TargetResolver targetResolver)
-
-
Method Detail
-
makeOperations
protected List<OperationCheck> makeOperations()
Defines the list of operations for this delegate; called once at construction.- Returns:
- immutable list
-
getDebugString
protected String getDebugString(OperationKey operationKey, String message, Target target, com.atlassian.user.User user, org.slf4j.Logger log)
-
getAllOperations
public final List<OperationCheck> getAllOperations()
Description copied from interface:OperationDelegate
Return a list ofOperationCheck
s for all operations supported by this delegate.- Specified by:
getAllOperations
in interfaceOperationDelegate
- Returns:
- all operations
-
getOperation
public final OperationCheck getOperation(OperationKey opKey)
Description copied from interface:OperationDelegate
Get theOperationCheck
which can answer questions about a particular operation.- Specified by:
getOperation
in interfaceOperationDelegate
- Parameters:
opKey
- the operation for which to retrieve the checker object.- Returns:
- an OperationCheck able to check permissions for this operationKey, or null if this delegate doesn't know how to check permissions for the specified operation
-
-