Class ElasticsearchAnySearchDAO
java.lang.Object
org.apache.syncope.core.persistence.common.dao.AbstractAnySearchDAO
org.apache.syncope.core.persistence.elasticsearch.dao.ElasticsearchAnySearchDAO
- All Implemented Interfaces:
AnySearchDAO
Search engine implementation for users, groups and any objects, based on Elasticsearch.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final co.elastic.clients.elasticsearch.ElasticsearchClientprotected final intFields inherited from class org.apache.syncope.core.persistence.common.dao.AbstractAnySearchDAO
ALWAYS_FALSE_CLAUSE, anyObjectDAO, anyUtilsFactory, dynRealmDAO, entityFactory, groupDAO, LOG, plainSchemaDAO, realmSearchDAO, RELATIONSHIP_FIELDS, userDAO, validator -
Constructor Summary
ConstructorsConstructorDescriptionElasticsearchAnySearchDAO(RealmSearchDAO realmSearchDAO, DynRealmDAO dynRealmDAO, UserDAO userDAO, GroupDAO groupDAO, AnyObjectDAO anyObjectDAO, PlainSchemaDAO schemaDAO, EntityFactory entityFactory, AnyUtilsFactory anyUtilsFactory, PlainAttrValidationManager validator, co.elastic.clients.elasticsearch.ElasticsearchClient client, int indexMaxResultWindow) -
Method Summary
Modifier and TypeMethodDescriptionprotected Triple<PlainSchema, PlainAttrValue, AnyCond> check(AnyCond cond, AnyTypeKind kind) protected longdoCount(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 co.elastic.clients.elasticsearch._types.query_dsl.QueryfillAttrQuery(PlainSchema schema, PlainAttrValue attrValue, AttrCond cond) protected Triple<Optional<co.elastic.clients.elasticsearch._types.query_dsl.Query>, Set<String>, Set<String>> getAdminRealmsFilter(Realm base, boolean recursive, Set<String> adminRealms, AnyTypeKind kind) protected co.elastic.clients.elasticsearch._types.query_dsl.QuerygetQuery(AnyCond cond, AnyTypeKind kind) protected co.elastic.clients.elasticsearch._types.query_dsl.QuerygetQuery(AnyTypeCond cond) protected co.elastic.clients.elasticsearch._types.query_dsl.Queryprotected co.elastic.clients.elasticsearch._types.query_dsl.QuerygetQuery(AuxClassCond cond) protected co.elastic.clients.elasticsearch._types.query_dsl.QuerygetQuery(DynRealmCond cond) protected co.elastic.clients.elasticsearch._types.query_dsl.QuerygetQuery(MemberCond cond) protected co.elastic.clients.elasticsearch._types.query_dsl.QuerygetQuery(MembershipCond cond) protected co.elastic.clients.elasticsearch._types.query_dsl.QuerygetQuery(RelationshipCond cond) protected co.elastic.clients.elasticsearch._types.query_dsl.QuerygetQuery(RelationshipTypeCond cond) protected co.elastic.clients.elasticsearch._types.query_dsl.QuerygetQuery(ResourceCond cond) protected co.elastic.clients.elasticsearch._types.query_dsl.Queryprotected co.elastic.clients.elasticsearch._types.query_dsl.QuerygetQuery(SearchCond cond, AnyTypeKind kind) protected co.elastic.clients.elasticsearch._types.query_dsl.QuerygetQuery(Realm base, boolean recursive, Set<String> adminRealms, SearchCond cond, AnyTypeKind kind) protected co.elastic.clients.elasticsearch._types.query_dsl.QuerygetQueryForCustomConds(SearchCond cond, AnyTypeKind kind) protected List<co.elastic.clients.elasticsearch._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, count, isPatternMatch, key, search, search, search
-
Field Details
-
ID_PROPS
-
client
protected final co.elastic.clients.elasticsearch.ElasticsearchClient client -
indexMaxResultWindow
protected final int indexMaxResultWindow
-
-
Constructor Details
-
ElasticsearchAnySearchDAO
public ElasticsearchAnySearchDAO(RealmSearchDAO realmSearchDAO, DynRealmDAO dynRealmDAO, UserDAO userDAO, GroupDAO groupDAO, AnyObjectDAO anyObjectDAO, PlainSchemaDAO schemaDAO, EntityFactory entityFactory, AnyUtilsFactory anyUtilsFactory, PlainAttrValidationManager validator, co.elastic.clients.elasticsearch.ElasticsearchClient client, int indexMaxResultWindow)
-
-
Method Details
-
getAdminRealmsFilter
-
getQuery
protected co.elastic.clients.elasticsearch._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:
doCountin classAbstractAnySearchDAO
-
sortBuilders
protected List<co.elastic.clients.elasticsearch._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:
doSearchin classAbstractAnySearchDAO
-
getQuery
protected co.elastic.clients.elasticsearch._types.query_dsl.Query getQuery(SearchCond cond, AnyTypeKind kind) -
getQuery
-
getQuery
protected co.elastic.clients.elasticsearch._types.query_dsl.Query getQuery(RelationshipTypeCond cond) -
getQuery
-
getQuery
-
getQuery
-
getQuery
-
getQuery
-
getQuery
-
getQuery
-
fillAttrQuery
protected co.elastic.clients.elasticsearch._types.query_dsl.Query fillAttrQuery(PlainSchema schema, PlainAttrValue attrValue, AttrCond cond) -
getQuery
-
check
- Overrides:
checkin classAbstractAnySearchDAO
-
getQuery
protected co.elastic.clients.elasticsearch._types.query_dsl.Query getQuery(AnyCond cond, AnyTypeKind kind) -
getQueryForCustomConds
protected co.elastic.clients.elasticsearch._types.query_dsl.Query getQueryForCustomConds(SearchCond cond, AnyTypeKind kind)
-