Class OpenSearchRealmSearchDAO
java.lang.Object
org.apache.syncope.core.persistence.common.dao.AbstractSearchDAO
org.apache.syncope.core.persistence.common.dao.AbstractRealmSearchDAO
org.apache.syncope.core.persistence.opensearch.dao.OpenSearchRealmSearchDAO
- All Implemented Interfaces:
RealmSearchDAO
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.syncope.core.persistence.common.dao.AbstractSearchDAO
AbstractSearchDAO.CheckResult<C extends AttrCond> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.opensearch.client.opensearch.OpenSearchClientprotected static final List<org.opensearch.client.opensearch._types.SortOptions> protected final intprotected final RealmDAOprotected final RealmUtilsFields inherited from class org.apache.syncope.core.persistence.common.dao.AbstractRealmSearchDAO
RELATIONSHIP_FIELDSFields inherited from class org.apache.syncope.core.persistence.common.dao.AbstractSearchDAO
ALWAYS_FALSE_CLAUSE, entityFactory, LITERAL_COMPARATOR, LOG, plainSchemaDAO, validator -
Constructor Summary
ConstructorsConstructorDescriptionOpenSearchRealmSearchDAO(RealmDAO realmDAO, PlainSchemaDAO plainSchemaDAO, EntityFactory entityFactory, PlainAttrValidationManager validator, org.opensearch.client.opensearch.OpenSearchClient client, int indexMaxResultWindow) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.opensearch.client.opensearch._types.query_dsl.QuerybuildDescendantsQuery(Set<String> bases, SearchCond searchCond) protected AbstractSearchDAO.CheckResult<AnyCond> protected longdoCount(Set<String> bases, SearchCond searchCond) doSearch(Set<String> bases, SearchCond searchCond, org.springframework.data.domain.Pageable pageable) protected org.opensearch.client.opensearch._types.query_dsl.QueryfillAttrQuery(PlainSchema schema, PlainAttrValue attrValue, AttrCond cond) findByFullPath(String fullPath) findByName(String name) findChildren(Realm realm) findDescendants(String base, String prefix) protected org.opensearch.client.opensearch._types.query_dsl.Queryprotected org.opensearch.client.opensearch._types.query_dsl.Queryprotected org.opensearch.client.opensearch._types.query_dsl.QuerygetQuery(AuxClassCond cond) protected org.opensearch.client.opensearch._types.query_dsl.QuerygetQuery(ResourceCond cond) protected org.opensearch.client.opensearch._types.query_dsl.QuerygetQuery(SearchCond cond) protected org.opensearch.client.opensearch._types.query_dsl.Querysearch(org.opensearch.client.opensearch._types.query_dsl.Query query) protected List<org.opensearch.client.opensearch._types.SortOptions> sortBuilders(Stream<org.springframework.data.domain.Sort.Order> orderBy) Methods inherited from class org.apache.syncope.core.persistence.common.dao.AbstractRealmSearchDAO
count, findByDerAttrValue, searchMethods inherited from class org.apache.syncope.core.persistence.common.dao.AbstractSearchDAO
buildDerAttrValueConditions, check, key, split, syncopeClientExceptionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.syncope.core.persistence.api.dao.RealmSearchDAO
count, findAncestors, findAncestors, findByDerAttrValue, getAllMatchingCond, search
-
Field Details
-
ID_PROPS
-
FULLPATH_SORT_OPTIONS
protected static final List<org.opensearch.client.opensearch._types.SortOptions> FULLPATH_SORT_OPTIONS -
realmDAO
-
realmUtils
-
client
protected final org.opensearch.client.opensearch.OpenSearchClient client -
indexMaxResultWindow
protected final int indexMaxResultWindow
-
-
Constructor Details
-
OpenSearchRealmSearchDAO
public OpenSearchRealmSearchDAO(RealmDAO realmDAO, PlainSchemaDAO plainSchemaDAO, EntityFactory entityFactory, PlainAttrValidationManager validator, org.opensearch.client.opensearch.OpenSearchClient client, int indexMaxResultWindow)
-
-
Method Details
-
findByFullPath
- Specified by:
findByFullPathin interfaceRealmSearchDAO
-
search
-
findByName
- Specified by:
findByNamein interfaceRealmSearchDAO
-
findChildren
- Specified by:
findChildrenin interfaceRealmSearchDAO
-
buildDescendantsQuery
protected org.opensearch.client.opensearch._types.query_dsl.Query buildDescendantsQuery(Set<String> bases, SearchCond searchCond) -
getQuery
-
check
protected AbstractSearchDAO.CheckResult<AnyCond> check(AnyCond cond, Field field, Set<String> relationshipsFields) - Overrides:
checkin classAbstractSearchDAO
-
fillAttrQuery
protected org.opensearch.client.opensearch._types.query_dsl.Query fillAttrQuery(PlainSchema schema, PlainAttrValue attrValue, AttrCond cond) -
getQuery
-
getQuery
-
getQuery
-
getQuery
-
getQueryForCustomConds
protected org.opensearch.client.opensearch._types.query_dsl.Query getQueryForCustomConds(SearchCond cond) -
doCount
- Specified by:
doCountin classAbstractRealmSearchDAO
-
sortBuilders
-
doSearch
protected List<Realm> doSearch(Set<String> bases, SearchCond searchCond, org.springframework.data.domain.Pageable pageable) - Specified by:
doSearchin classAbstractRealmSearchDAO
-
findDescendants
- Specified by:
findDescendantsin interfaceRealmSearchDAO
-