public abstract class AbstractAnySearchDAO extends AbstractDAO<Any<?>> implements AnySearchDAO
Modifier and Type | Field and Description |
---|---|
protected AnyObjectDAO |
anyObjectDAO |
protected AnyUtilsFactory |
anyUtilsFactory |
protected DynRealmDAO |
dynRealmDAO |
protected EntityFactory |
entityFactory |
protected GroupDAO |
groupDAO |
protected RealmDAO |
realmDAO |
protected static String[] |
RELATIONSHIP_FIELDS |
protected PlainSchemaDAO |
schemaDAO |
protected UserDAO |
userDAO |
protected PlainAttrValidationManager |
validator |
LOG
Constructor and Description |
---|
AbstractAnySearchDAO() |
Modifier and Type | Method and Description |
---|---|
protected SearchCond |
buildEffectiveCond(SearchCond cond,
Set<String> dynRealmKeys,
Set<String> groupOwners,
AnyTypeKind kind) |
protected <T extends Any<?>> |
buildResult(List<Object> raw,
AnyTypeKind kind) |
protected Triple<PlainSchema,PlainAttrValue,AnyCond> |
check(AnyCond cond,
AnyTypeKind kind) |
protected Realm |
check(AssignableCond cond) |
protected Pair<PlainSchema,PlainAttrValue> |
check(AttrCond cond,
AnyTypeKind kind) |
protected String |
check(MemberCond cond) |
protected List<String> |
check(MembershipCond cond) |
protected String |
check(RelationshipCond cond) |
int |
count(Set<String> adminRealms,
SearchCond cond,
AnyTypeKind kind) |
protected abstract int |
doCount(Set<String> adminRealms,
SearchCond cond,
AnyTypeKind kind) |
protected abstract <T extends Any<?>> |
doSearch(Set<String> adminRealms,
SearchCond searchCondition,
int page,
int itemsPerPage,
List<OrderByClause> orderBy,
AnyTypeKind kind) |
<T extends Any<?>> |
search(SearchCond cond,
AnyTypeKind kind) |
<T extends Any<?>> |
search(SearchCond cond,
List<OrderByClause> orderBy,
AnyTypeKind kind) |
<T extends Any<?>> |
search(Set<String> adminRealms,
SearchCond cond,
int page,
int itemsPerPage,
List<OrderByClause> orderBy,
AnyTypeKind kind) |
clear, detach, entityManager, entityManagerFactory, refresh
protected static final String[] RELATIONSHIP_FIELDS
@Autowired protected RealmDAO realmDAO
@Autowired protected DynRealmDAO dynRealmDAO
@Autowired protected AnyObjectDAO anyObjectDAO
@Autowired protected UserDAO userDAO
@Autowired protected GroupDAO groupDAO
@Autowired protected PlainSchemaDAO schemaDAO
@Autowired protected EntityFactory entityFactory
@Autowired protected AnyUtilsFactory anyUtilsFactory
@Autowired protected PlainAttrValidationManager validator
protected SearchCond buildEffectiveCond(SearchCond cond, Set<String> dynRealmKeys, Set<String> groupOwners, AnyTypeKind kind)
protected abstract int doCount(Set<String> adminRealms, SearchCond cond, AnyTypeKind kind)
public int count(Set<String> adminRealms, SearchCond cond, AnyTypeKind kind)
count
in interface AnySearchDAO
adminRealms
- realms for which the caller owns the proper entitlement(s)cond
- the search conditionkind
- any objectpublic <T extends Any<?>> List<T> search(SearchCond cond, AnyTypeKind kind)
search
in interface AnySearchDAO
T
- anycond
- the search conditionkind
- any objectpublic <T extends Any<?>> List<T> search(SearchCond cond, List<OrderByClause> orderBy, AnyTypeKind kind)
search
in interface AnySearchDAO
T
- anycond
- the search conditionorderBy
- list of ordering clauseskind
- any objectprotected abstract <T extends Any<?>> List<T> doSearch(Set<String> adminRealms, SearchCond searchCondition, int page, int itemsPerPage, List<OrderByClause> orderBy, AnyTypeKind kind)
protected Pair<PlainSchema,PlainAttrValue> check(AttrCond cond, AnyTypeKind kind)
protected Triple<PlainSchema,PlainAttrValue,AnyCond> check(AnyCond cond, AnyTypeKind kind)
protected List<String> check(MembershipCond cond)
protected String check(RelationshipCond cond)
protected Realm check(AssignableCond cond)
protected String check(MemberCond cond)
protected <T extends Any<?>> List<T> buildResult(List<Object> raw, AnyTypeKind kind)
public <T extends Any<?>> List<T> search(Set<String> adminRealms, SearchCond cond, int page, int itemsPerPage, List<OrderByClause> orderBy, AnyTypeKind kind)
search
in interface AnySearchDAO
T
- anyadminRealms
- realms for which the caller owns the proper entitlement(s)cond
- the search conditionpage
- position of the first result, start from 1itemsPerPage
- number of results per pageorderBy
- list of ordering clauseskind
- any objectCopyright © 2010–2023 The Apache Software Foundation. All rights reserved.