Class ElasticsearchRealmSearchDAO
java.lang.Object
org.apache.syncope.core.persistence.elasticsearch.dao.ElasticsearchRealmSearchDAO
- All Implemented Interfaces:
RealmSearchDAO
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionElasticsearchRealmSearchDAO
(RealmDAO realmDAO, co.elastic.clients.elasticsearch.ElasticsearchClient client, int indexMaxResultWindow) -
Method Summary
Modifier and TypeMethodDescriptionprotected co.elastic.clients.elasticsearch._types.query_dsl.Query
buildDescendantsQuery
(Set<String> bases, String keyword) long
countDescendants
(String base, String keyword) long
countDescendants
(Set<String> bases, String keyword) findByFullPath
(String fullPath) findByName
(String name) findChildren
(Realm realm) findDescendants
(String base, String prefix) findDescendants
(String base, String keyword, org.springframework.data.domain.Pageable pageable) findDescendants
(Set<String> bases, String keyword, org.springframework.data.domain.Pageable pageable) search
(co.elastic.clients.elasticsearch._types.query_dsl.Query query) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.syncope.core.persistence.api.dao.RealmSearchDAO
findAncestors, findAncestors
-
Field Details
-
LOG
-
REALM_SORT_OPTIONS
-
realmDAO
-
client
protected final co.elastic.clients.elasticsearch.ElasticsearchClient client -
indexMaxResultWindow
protected final int indexMaxResultWindow
-
-
Constructor Details
-
ElasticsearchRealmSearchDAO
public ElasticsearchRealmSearchDAO(RealmDAO realmDAO, co.elastic.clients.elasticsearch.ElasticsearchClient client, int indexMaxResultWindow)
-
-
Method Details
-
findByFullPath
- Specified by:
findByFullPath
in interfaceRealmSearchDAO
-
search
-
findByName
- Specified by:
findByName
in interfaceRealmSearchDAO
-
findChildren
- Specified by:
findChildren
in interfaceRealmSearchDAO
-
buildDescendantsQuery
-
countDescendants
- Specified by:
countDescendants
in interfaceRealmSearchDAO
-
countDescendants
- Specified by:
countDescendants
in interfaceRealmSearchDAO
-
findDescendants
public List<Realm> findDescendants(String base, String keyword, org.springframework.data.domain.Pageable pageable) - Specified by:
findDescendants
in interfaceRealmSearchDAO
-
findDescendants
public List<Realm> findDescendants(Set<String> bases, String keyword, org.springframework.data.domain.Pageable pageable) - Specified by:
findDescendants
in interfaceRealmSearchDAO
-
findDescendants
- Specified by:
findDescendants
in interfaceRealmSearchDAO
-