public class ElasticsearchAnySearchDAO extends AbstractAnySearchDAO
Modifier and Type | Field and Description |
---|---|
protected org.elasticsearch.client.RestHighLevelClient |
client |
protected static char[] |
ELASTICSEARCH_REGEX_CHARS |
protected ElasticsearchUtils |
elasticsearchUtils |
anyObjectDAO, anyUtilsFactory, dynRealmDAO, entityFactory, groupDAO, realmDAO, RELATIONSHIP_FIELDS, schemaDAO, userDAO, validator
LOG
Constructor and Description |
---|
ElasticsearchAnySearchDAO() |
Modifier and Type | Method and Description |
---|---|
protected int |
doCount(Set<String> adminRealms,
SearchCond cond,
AnyTypeKind kind) |
protected <T extends Any<?>> |
doSearch(Set<String> adminRealms,
SearchCond cond,
int page,
int itemsPerPage,
List<OrderByClause> orderBy,
AnyTypeKind kind) |
protected static String |
escapeForLikeRegex(char c) |
protected org.elasticsearch.index.query.QueryBuilder |
fillAttrQuery(PlainSchema schema,
PlainAttrValue attrValue,
AttrCond cond) |
protected Triple<Optional<org.elasticsearch.index.query.QueryBuilder>,Set<String>,Set<String>> |
getAdminRealmsFilter(AnyTypeKind kind,
Set<String> adminRealms) |
protected org.elasticsearch.index.query.QueryBuilder |
getQueryBuilder(AnyCond cond,
AnyTypeKind kind) |
protected org.elasticsearch.index.query.QueryBuilder |
getQueryBuilder(AnyTypeCond cond) |
protected org.elasticsearch.index.query.QueryBuilder |
getQueryBuilder(AssignableCond cond) |
protected org.elasticsearch.index.query.QueryBuilder |
getQueryBuilder(AttrCond cond,
AnyTypeKind kind) |
protected org.elasticsearch.index.query.QueryBuilder |
getQueryBuilder(DynRealmCond cond) |
protected org.elasticsearch.index.query.QueryBuilder |
getQueryBuilder(MemberCond cond) |
protected org.elasticsearch.index.query.QueryBuilder |
getQueryBuilder(MembershipCond cond) |
protected org.elasticsearch.index.query.QueryBuilder |
getQueryBuilder(PrivilegeCond cond) |
protected org.elasticsearch.index.query.QueryBuilder |
getQueryBuilder(RelationshipCond cond) |
protected org.elasticsearch.index.query.QueryBuilder |
getQueryBuilder(RelationshipTypeCond cond) |
protected org.elasticsearch.index.query.QueryBuilder |
getQueryBuilder(ResourceCond cond) |
protected org.elasticsearch.index.query.QueryBuilder |
getQueryBuilder(RoleCond cond) |
protected org.elasticsearch.index.query.QueryBuilder |
getQueryBuilder(SearchCond cond,
AnyTypeKind kind) |
protected org.elasticsearch.index.query.QueryBuilder |
getQueryBuilder(Set<String> adminRealms,
SearchCond cond,
AnyTypeKind kind) |
protected org.elasticsearch.index.query.QueryBuilder |
getQueryBuilderForCustomConds(SearchCond cond,
AnyTypeKind kind) |
protected List<org.elasticsearch.search.sort.SortBuilder<?>> |
sortBuilders(AnyTypeKind kind,
List<OrderByClause> orderBy) |
buildEffectiveCond, buildResult, check, check, check, check, check, check, count, search, search, search
clear, detach, entityManager, entityManagerFactory, refresh
protected static final char[] ELASTICSEARCH_REGEX_CHARS
@Autowired protected org.elasticsearch.client.RestHighLevelClient client
@Autowired protected ElasticsearchUtils elasticsearchUtils
protected static String escapeForLikeRegex(char c)
protected Triple<Optional<org.elasticsearch.index.query.QueryBuilder>,Set<String>,Set<String>> getAdminRealmsFilter(AnyTypeKind kind, Set<String> adminRealms)
protected org.elasticsearch.index.query.QueryBuilder getQueryBuilder(Set<String> adminRealms, SearchCond cond, AnyTypeKind kind)
protected int doCount(Set<String> adminRealms, SearchCond cond, AnyTypeKind kind)
doCount
in class AbstractAnySearchDAO
protected List<org.elasticsearch.search.sort.SortBuilder<?>> sortBuilders(AnyTypeKind kind, List<OrderByClause> orderBy)
protected <T extends Any<?>> List<T> doSearch(Set<String> adminRealms, SearchCond cond, int page, int itemsPerPage, List<OrderByClause> orderBy, AnyTypeKind kind)
doSearch
in class AbstractAnySearchDAO
protected org.elasticsearch.index.query.QueryBuilder getQueryBuilder(SearchCond cond, AnyTypeKind kind)
protected org.elasticsearch.index.query.QueryBuilder getQueryBuilder(AnyTypeCond cond)
protected org.elasticsearch.index.query.QueryBuilder getQueryBuilder(RelationshipTypeCond cond)
protected org.elasticsearch.index.query.QueryBuilder getQueryBuilder(RelationshipCond cond)
protected org.elasticsearch.index.query.QueryBuilder getQueryBuilder(MembershipCond cond)
protected org.elasticsearch.index.query.QueryBuilder getQueryBuilder(AssignableCond cond)
protected org.elasticsearch.index.query.QueryBuilder getQueryBuilder(RoleCond cond)
protected org.elasticsearch.index.query.QueryBuilder getQueryBuilder(PrivilegeCond cond)
protected org.elasticsearch.index.query.QueryBuilder getQueryBuilder(DynRealmCond cond)
protected org.elasticsearch.index.query.QueryBuilder getQueryBuilder(MemberCond cond)
protected org.elasticsearch.index.query.QueryBuilder getQueryBuilder(ResourceCond cond)
protected org.elasticsearch.index.query.QueryBuilder fillAttrQuery(PlainSchema schema, PlainAttrValue attrValue, AttrCond cond)
protected org.elasticsearch.index.query.QueryBuilder getQueryBuilder(AttrCond cond, AnyTypeKind kind)
protected org.elasticsearch.index.query.QueryBuilder getQueryBuilder(AnyCond cond, AnyTypeKind kind)
protected org.elasticsearch.index.query.QueryBuilder getQueryBuilderForCustomConds(SearchCond cond, AnyTypeKind kind)
Copyright © 2010–2023 The Apache Software Foundation. All rights reserved.