Class AttachmentOperationDelegate
- java.lang.Object
-
- com.atlassian.confluence.api.impl.service.permissions.delegates.AttachmentOperationDelegate
-
- All Implemented Interfaces:
OperationDelegate
@ParametersAreNonnullByDefault public class AttachmentOperationDelegate extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected TargetResolvertargetResolver
-
Constructor Summary
Constructors Constructor Description AttachmentOperationDelegate(AttachmentPermissionsDelegate permissionDelegate, ConfluenceUserResolver confluenceUserResolver, TargetResolver targetResolver, SpacePermissionManager spacePermissionManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<OperationCheck>getAllOperations()Return a list ofOperationChecks for all operations supported by this delegate.protected StringgetDebugString(OperationKey operationKey, String message, Target target, com.atlassian.user.User user, org.slf4j.Logger log)OperationCheckgetOperation(OperationKey opKey)Get theOperationCheckwhich 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
-
AttachmentOperationDelegate
public AttachmentOperationDelegate(AttachmentPermissionsDelegate permissionDelegate, ConfluenceUserResolver confluenceUserResolver, TargetResolver targetResolver, SpacePermissionManager spacePermissionManager)
-
-
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:OperationDelegateReturn a list ofOperationChecks for all operations supported by this delegate.- Specified by:
getAllOperationsin interfaceOperationDelegate- Returns:
- all operations
-
getOperation
public final OperationCheck getOperation(OperationKey opKey)
Description copied from interface:OperationDelegateGet theOperationCheckwhich can answer questions about a particular operation.- Specified by:
getOperationin 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
-
-