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.ElasticsearchClient
client
protected static List<co.elastic.clients.elasticsearch._types.SortOptions>
ES_SORT_OPTIONS_REALM
protected int
indexMaxResultWindow
-
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 Instance Methods Concrete Methods Modifier and Type Method Description protected co.elastic.clients.elasticsearch._types.query_dsl.Query
buildDescendantQuery(String base, String keyword)
int
countDescendants(String base, String keyword)
Realm
findByFullPath(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)
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
buildDescendantQuery, buildDescendantQuery, 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:
findByFullPath
in interfaceRealmDAO
- Overrides:
findByFullPath
in classJPARealmDAO
-
search
protected List<String> search(co.elastic.clients.elasticsearch._types.query_dsl.Query query)
-
findByName
public List<Realm> findByName(String name)
- Specified by:
findByName
in interfaceRealmDAO
- Overrides:
findByName
in classJPARealmDAO
-
findChildren
public List<Realm> findChildren(Realm realm)
- Specified by:
findChildren
in interfaceRealmDAO
- Overrides:
findChildren
in classJPARealmDAO
-
buildDescendantQuery
protected co.elastic.clients.elasticsearch._types.query_dsl.Query buildDescendantQuery(String base, String keyword)
-
countDescendants
public int countDescendants(String base, String keyword)
- Specified by:
countDescendants
in interfaceRealmDAO
- Overrides:
countDescendants
in classJPARealmDAO
-
findDescendants
public List<Realm> findDescendants(String base, String keyword, int page, int itemsPerPage)
- Specified by:
findDescendants
in interfaceRealmDAO
- Overrides:
findDescendants
in classJPARealmDAO
-
findDescendants
public List<String> findDescendants(String base, String prefix)
- Specified by:
findDescendants
in interfaceRealmDAO
- Overrides:
findDescendants
in classJPARealmDAO
-
-