Interface OperationDelegate
- All Known Implementing Classes:
AttachmentOperationDelegate,BlogPostOperationDelegate,CommentOperationDelegate,PageOperationDelegate,SpaceOperationDelegate
@ExperimentalSpi
public interface OperationDelegate
A delegate defining operation checks for a single
TargetType.- Since:
- 5.8
-
Method Summary
Modifier and TypeMethodDescriptionReturn a list ofOperationChecks for all operations supported by this delegate.@Nullable OperationCheckgetOperation(OperationKey operationKey) Get theOperationCheckwhich can answer questions about a particular operation.
-
Method Details
-
getAllOperations
List<OperationCheck> getAllOperations()Return a list ofOperationChecks for all operations supported by this delegate.- Returns:
- all operations
-
getOperation
Get theOperationCheckwhich can answer questions about a particular operation.- Parameters:
operationKey- 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
- Throws:
NullPointerException- if operationKey is null
-