Class OpenSearchAnySearchDAO
java.lang.Object
org.apache.syncope.core.persistence.common.dao.AbstractAnySearchDAO
org.apache.syncope.core.persistence.opensearch.dao.OpenSearchAnySearchDAO
- All Implemented Interfaces:
AnySearchDAO
Search engine implementation for users, groups and any objects, based on OpenSearch.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final org.opensearch.client.opensearch.OpenSearchClient
protected final int
Fields inherited from class org.apache.syncope.core.persistence.common.dao.AbstractAnySearchDAO
anyObjectDAO, anyUtilsFactory, dynRealmDAO, entityFactory, groupDAO, LOG, plainSchemaDAO, realmSearchDAO, RELATIONSHIP_FIELDS, userDAO, validator
-
Constructor Summary
ConstructorDescriptionOpenSearchAnySearchDAO
(RealmSearchDAO realmSearchDAO, DynRealmDAO dynRealmDAO, UserDAO userDAO, GroupDAO groupDAO, AnyObjectDAO anyObjectDAO, PlainSchemaDAO schemaDAO, EntityFactory entityFactory, AnyUtilsFactory anyUtilsFactory, PlainAttrValidationManager validator, org.opensearch.client.opensearch.OpenSearchClient client, int indexMaxResultWindow) -
Method Summary
Modifier and TypeMethodDescriptionprotected long
doCount
(Realm base, boolean recursive, Set<String> adminRealms, SearchCond cond, AnyTypeKind kind) doSearch
(Realm base, boolean recursive, Set<String> adminRealms, SearchCond cond, org.springframework.data.domain.Pageable pageable, AnyTypeKind kind) protected org.opensearch.client.opensearch._types.query_dsl.Query
fillAttrQuery
(PlainSchema schema, PlainAttrValue attrValue, AttrCond cond) protected Triple
<Optional<org.opensearch.client.opensearch._types.query_dsl.Query>, Set<String>, Set<String>> getAdminRealmsFilter
(Realm base, boolean recursive, Set<String> adminRealms, AnyTypeKind kind) protected org.opensearch.client.opensearch._types.query_dsl.Query
getQuery
(AnyCond cond, AnyTypeKind kind) protected org.opensearch.client.opensearch._types.query_dsl.Query
getQuery
(AnyTypeCond cond) protected org.opensearch.client.opensearch._types.query_dsl.Query
getQuery
(AttrCond cond, AnyTypeKind kind) protected org.opensearch.client.opensearch._types.query_dsl.Query
getQuery
(AuxClassCond cond) protected org.opensearch.client.opensearch._types.query_dsl.Query
getQuery
(DynRealmCond cond) protected org.opensearch.client.opensearch._types.query_dsl.Query
getQuery
(MemberCond cond) protected org.opensearch.client.opensearch._types.query_dsl.Query
getQuery
(MembershipCond cond) protected org.opensearch.client.opensearch._types.query_dsl.Query
getQuery
(PrivilegeCond cond) protected org.opensearch.client.opensearch._types.query_dsl.Query
getQuery
(RelationshipCond cond) protected org.opensearch.client.opensearch._types.query_dsl.Query
getQuery
(RelationshipTypeCond cond) protected org.opensearch.client.opensearch._types.query_dsl.Query
getQuery
(ResourceCond cond) protected org.opensearch.client.opensearch._types.query_dsl.Query
protected org.opensearch.client.opensearch._types.query_dsl.Query
getQuery
(SearchCond cond, AnyTypeKind kind) protected org.opensearch.client.opensearch._types.query_dsl.Query
getQuery
(Realm base, boolean recursive, Set<String> adminRealms, SearchCond cond, AnyTypeKind kind) protected org.opensearch.client.opensearch._types.query_dsl.Query
getQueryForCustomConds
(SearchCond cond, AnyTypeKind kind) protected List
<org.opensearch.client.opensearch._types.SortOptions> sortBuilders
(AnyTypeKind kind, Stream<org.springframework.data.domain.Sort.Order> orderBy) Methods inherited from class org.apache.syncope.core.persistence.common.dao.AbstractAnySearchDAO
buildEffectiveCond, buildResult, check, check, check, check, check, count, isPatternMatch, key, search, search, search
-
Field Details
-
client
protected final org.opensearch.client.opensearch.OpenSearchClient client -
indexMaxResultWindow
protected final int indexMaxResultWindow
-
-
Constructor Details
-
OpenSearchAnySearchDAO
public OpenSearchAnySearchDAO(RealmSearchDAO realmSearchDAO, DynRealmDAO dynRealmDAO, UserDAO userDAO, GroupDAO groupDAO, AnyObjectDAO anyObjectDAO, PlainSchemaDAO schemaDAO, EntityFactory entityFactory, AnyUtilsFactory anyUtilsFactory, PlainAttrValidationManager validator, org.opensearch.client.opensearch.OpenSearchClient client, int indexMaxResultWindow)
-
-
Method Details
-
getAdminRealmsFilter
-
getQuery
protected org.opensearch.client.opensearch._types.query_dsl.Query getQuery(Realm base, boolean recursive, Set<String> adminRealms, SearchCond cond, AnyTypeKind kind) -
doCount
protected long doCount(Realm base, boolean recursive, Set<String> adminRealms, SearchCond cond, AnyTypeKind kind) - Specified by:
doCount
in classAbstractAnySearchDAO
-
sortBuilders
protected List<org.opensearch.client.opensearch._types.SortOptions> sortBuilders(AnyTypeKind kind, Stream<org.springframework.data.domain.Sort.Order> orderBy) -
doSearch
protected <T extends Any<?>> List<T> doSearch(Realm base, boolean recursive, Set<String> adminRealms, SearchCond cond, org.springframework.data.domain.Pageable pageable, AnyTypeKind kind) - Specified by:
doSearch
in classAbstractAnySearchDAO
-
getQuery
protected org.opensearch.client.opensearch._types.query_dsl.Query getQuery(SearchCond cond, AnyTypeKind kind) -
getQuery
-
getQuery
protected org.opensearch.client.opensearch._types.query_dsl.Query getQuery(RelationshipTypeCond cond) -
getQuery
-
getQuery
-
getQuery
-
getQuery
-
getQuery
-
getQuery
-
getQuery
-
getQuery
-
fillAttrQuery
protected org.opensearch.client.opensearch._types.query_dsl.Query fillAttrQuery(PlainSchema schema, PlainAttrValue attrValue, AttrCond cond) -
getQuery
protected org.opensearch.client.opensearch._types.query_dsl.Query getQuery(AttrCond cond, AnyTypeKind kind) -
getQuery
protected org.opensearch.client.opensearch._types.query_dsl.Query getQuery(AnyCond cond, AnyTypeKind kind) -
getQueryForCustomConds
protected org.opensearch.client.opensearch._types.query_dsl.Query getQueryForCustomConds(SearchCond cond, AnyTypeKind kind)
-