Module org.elasticsearch.security
Interface OperatorOnlyRegistry
- All Known Implementing Classes:
DefaultOperatorOnlyRegistry
public interface OperatorOnlyRegistry
-
Method Summary
Modifier and TypeMethodDescriptioncheck(String action, TransportRequest request) Check whether the given action and request qualify as operator-only.voidcheckRest(RestHandler restHandler, RestRequest restRequest) This method is only called if the user is not an operator.
-
Method Details
-
check
Check whether the given action and request qualify as operator-only. The method returns null if the action+request is NOT operator-only. Other it returns a violation object that contains the message for details. -
checkRest
This method is only called if the user is not an operator. Implementations should fail the request if theRestRequestis not allowed to proceed by throwing anElasticsearchException. If the request should be handled by the associatedRestHandler, then this implementations should do nothing.- Throws:
ElasticsearchException
-