Package io.camunda.search.clients.auth
Class DocumentAuthorizationQueryStrategy
java.lang.Object
io.camunda.search.clients.auth.DocumentAuthorizationQueryStrategy
- All Implemented Interfaces:
AuthorizationQueryStrategy
public class DocumentAuthorizationQueryStrategy
extends Object
implements AuthorizationQueryStrategy
Document based datastore (ES/OS) strategy implementation of
AuthorizationQueryStrategy.
It applies authorization to a search query by fetching the authorized resources for the
authenticated user and creating a new search query with the authorization applied.-
Field Summary
Fields inherited from interface io.camunda.search.clients.auth.AuthorizationQueryStrategy
NONE -
Constructor Summary
ConstructorsConstructorDescriptionDocumentAuthorizationQueryStrategy(AuthorizationSearchClient authorizationSearchClient) -
Method Summary
Modifier and TypeMethodDescriptionapplyAuthorizationToQuery(SearchQueryRequest searchQueryRequest, SecurityContext securityContext, Class<? extends SearchQueryBase> queryClass) Apply authorization to a search query.
-
Constructor Details
-
DocumentAuthorizationQueryStrategy
-
-
Method Details
-
applyAuthorizationToQuery
public SearchQueryRequest applyAuthorizationToQuery(SearchQueryRequest searchQueryRequest, SecurityContext securityContext, Class<? extends SearchQueryBase> queryClass) Description copied from interface:AuthorizationQueryStrategyApply authorization to a search query.- Specified by:
applyAuthorizationToQueryin interfaceAuthorizationQueryStrategy- Parameters:
searchQueryRequest-securityContext-queryClass-- Returns:
- the search query request with authorization applied
-