Class ElasticsearchRealmDAO
- java.lang.Object
-
- org.apache.syncope.core.persistence.jpa.dao.AbstractDAO<Realm>
-
- org.apache.syncope.core.persistence.jpa.dao.JPARealmDAO
-
- org.apache.syncope.core.persistence.jpa.dao.ElasticsearchRealmDAO
-
public class ElasticsearchRealmDAO extends JPARealmDAO
-
-
Field Summary
Fields Modifier and Type Field Description protected co.elastic.clients.elasticsearch.ElasticsearchClientclientprotected static List<co.elastic.clients.elasticsearch._types.SortOptions>ES_SORT_OPTIONS_REALMprotected intindexMaxResultWindow-
Fields inherited from class org.apache.syncope.core.persistence.jpa.dao.JPARealmDAO
publisher, roleDAO
-
Fields inherited from class org.apache.syncope.core.persistence.jpa.dao.AbstractDAO
LOG
-
Fields inherited from interface org.apache.syncope.core.persistence.api.dao.RealmDAO
NAME_PATTERN, PATH_PATTERN
-
-
Constructor Summary
Constructors Constructor Description ElasticsearchRealmDAO(RoleDAO roleDAO, ApplicationEventPublisher publisher, co.elastic.clients.elasticsearch.ElasticsearchClient client, int indexMaxResultWindow)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static co.elastic.clients.elasticsearch._types.query_dsl.QuerybuildDescendantsQuery(Set<String> bases, String keyword)intcountDescendants(String base, String keyword)intcountDescendants(Set<String> bases, String keyword)RealmfindByFullPath(String fullPath)List<Realm>findByName(String name)List<Realm>findChildren(Realm realm)List<String>findDescendants(String base, String prefix)List<Realm>findDescendants(String base, String keyword, int page, int itemsPerPage)List<Realm>findDescendants(Set<String> bases, String keyword, int page, int itemsPerPage)protected List<String>search(co.elastic.clients.elasticsearch._types.query_dsl.Query query)-
Methods inherited from class org.apache.syncope.core.persistence.jpa.dao.JPARealmDAO
buildDescendantsQuery, buildFullPath, count, delete, find, findAllKeys, findAncestors, findAncestors, findByLogicActions, findByPolicy, findByResource, findSamePolicyChildren, getRoot, save, setParameter
-
Methods inherited from class org.apache.syncope.core.persistence.jpa.dao.AbstractDAO
detach, entityManager, entityManagerFactory, isOracle, refresh
-
-
-
-
Field Detail
-
ES_SORT_OPTIONS_REALM
protected static final List<co.elastic.clients.elasticsearch._types.SortOptions> ES_SORT_OPTIONS_REALM
-
client
protected final co.elastic.clients.elasticsearch.ElasticsearchClient client
-
indexMaxResultWindow
protected final int indexMaxResultWindow
-
-
Constructor Detail
-
ElasticsearchRealmDAO
public ElasticsearchRealmDAO(RoleDAO roleDAO, ApplicationEventPublisher publisher, co.elastic.clients.elasticsearch.ElasticsearchClient client, int indexMaxResultWindow)
-
-
Method Detail
-
findByFullPath
@Transactional(readOnly=true) public Realm findByFullPath(String fullPath)
- Specified by:
findByFullPathin interfaceRealmDAO- Overrides:
findByFullPathin classJPARealmDAO
-
search
protected List<String> search(co.elastic.clients.elasticsearch._types.query_dsl.Query query)
-
findByName
public List<Realm> findByName(String name)
- Specified by:
findByNamein interfaceRealmDAO- Overrides:
findByNamein classJPARealmDAO
-
findChildren
public List<Realm> findChildren(Realm realm)
- Specified by:
findChildrenin interfaceRealmDAO- Overrides:
findChildrenin classJPARealmDAO
-
buildDescendantsQuery
protected static co.elastic.clients.elasticsearch._types.query_dsl.Query buildDescendantsQuery(Set<String> bases, String keyword)
-
countDescendants
public int countDescendants(String base, String keyword)
- Specified by:
countDescendantsin interfaceRealmDAO- Overrides:
countDescendantsin classJPARealmDAO
-
countDescendants
public int countDescendants(Set<String> bases, String keyword)
- Specified by:
countDescendantsin interfaceRealmDAO- Overrides:
countDescendantsin classJPARealmDAO
-
findDescendants
public List<Realm> findDescendants(String base, String keyword, int page, int itemsPerPage)
- Specified by:
findDescendantsin interfaceRealmDAO- Overrides:
findDescendantsin classJPARealmDAO
-
findDescendants
public List<Realm> findDescendants(Set<String> bases, String keyword, int page, int itemsPerPage)
- Specified by:
findDescendantsin interfaceRealmDAO- Overrides:
findDescendantsin classJPARealmDAO
-
findDescendants
public List<String> findDescendants(String base, String prefix)
- Specified by:
findDescendantsin interfaceRealmDAO- Overrides:
findDescendantsin classJPARealmDAO
-
-