Interface OperationDelegate
-
- All Known Implementing Classes:
AttachmentOperationDelegate,BlogPostOperationDelegate,CommentOperationDelegate,PageOperationDelegate,SpaceOperationDelegate
@ExperimentalSpi public interface OperationDelegateA delegate defining operation checks for a singleTargetType.- Since:
- 5.8
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<OperationCheck>getAllOperations()Return a list ofOperationChecks for all operations supported by this delegate.@Nullable OperationCheckgetOperation(OperationKey operationKey)Get theOperationCheckwhich can answer questions about a particular operation.
-
-
-
Method Detail
-
getAllOperations
List<OperationCheck> getAllOperations()
Return a list ofOperationChecks for all operations supported by this delegate.- Returns:
- all operations
-
getOperation
@Nullable OperationCheck getOperation(OperationKey operationKey)
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
-
-