Interface OperationFilter<O extends Operation>
- Type Parameters:
O
- the operation type
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Strategy class that can be used to filter
operations
.- Since:
- 3.4.0
- Author:
- Andy Wilkinson
-
Method Summary
Modifier and TypeMethodDescriptionstatic <O extends Operation>
OperationFilter<O> byAccess
(EndpointAccessResolver accessResolver) Return anOperationFilter
that filters based on the allowedaccess
as determined by anaccess resolver
.boolean
match
(O operation, EndpointId endpointId, Access defaultAccess) Returntrue
if the filter matches.
-
Method Details
-
match
Returntrue
if the filter matches.- Parameters:
operation
- the operation to checkendpointId
- the ID of the endpoint to which the operation belongsdefaultAccess
- the default permitted level of access to the endpoint- Returns:
true
if the filter matches
-
byAccess
Return anOperationFilter
that filters based on the allowedaccess
as determined by anaccess resolver
.- Type Parameters:
O
- the operation type- Parameters:
accessResolver
- the access resolver- Returns:
- a new
OperationFilter
-