Class AbstractAnySearchDAO
java.lang.Object
org.apache.syncope.core.persistence.common.dao.AbstractAnySearchDAO
- All Implemented Interfaces:
AnySearchDAO
- Direct Known Subclasses:
ElasticsearchAnySearchDAO
,MariaDBJPAAnySearchDAO
,MySQLJPAAnySearchDAO
,Neo4jAnySearchDAO
,OpenSearchAnySearchDAO
,OracleJPAAnySearchDAO
,PGJPAAnySearchDAO
-
Field Summary
Modifier and TypeFieldDescriptionprotected final AnyObjectDAO
protected final AnyUtilsFactory
protected final DynRealmDAO
protected final EntityFactory
protected final GroupDAO
protected static final Logger
protected final PlainSchemaDAO
protected final RealmSearchDAO
protected static final String[]
protected final UserDAO
protected final PlainAttrValidationManager
-
Constructor Summary
ConstructorDescriptionAbstractAnySearchDAO
(RealmSearchDAO realmSearchDAO, DynRealmDAO dynRealmDAO, UserDAO userDAO, GroupDAO groupDAO, AnyObjectDAO anyObjectDAO, PlainSchemaDAO plainSchemaDAO, EntityFactory entityFactory, AnyUtilsFactory anyUtilsFactory, PlainAttrValidationManager validator) -
Method Summary
Modifier and TypeMethodDescriptionprotected static SearchCond
buildEffectiveCond
(SearchCond cond, Set<String> dynRealmKeys, Set<String> groupOwners, AnyTypeKind kind) buildResult
(List<Object> raw, AnyTypeKind kind) protected Triple
<PlainSchema, PlainAttrValue, AnyCond> check
(AnyCond cond, AnyTypeKind kind) protected Pair
<PlainSchema, PlainAttrValue> check
(AttrCond cond, AnyTypeKind kind) check
(MemberCond cond) check
(MembershipCond cond) check
(RelationshipCond cond) long
count
(Realm base, boolean recursive, Set<String> adminRealms, SearchCond cond, AnyTypeKind kind) protected abstract long
doCount
(Realm base, boolean recursive, Set<String> adminRealms, SearchCond cond, AnyTypeKind kind) doSearch
(Realm base, boolean recursive, Set<String> adminRealms, SearchCond searchCondition, org.springframework.data.domain.Pageable pageable, AnyTypeKind kind) protected boolean
isPatternMatch
(String clause) protected static String
key
(AttrSchemaType schemaType) search
(SearchCond cond, List<org.springframework.data.domain.Sort.Order> orderBy, AnyTypeKind kind) search
(SearchCond cond, AnyTypeKind kind) search
(Realm base, boolean recursive, Set<String> adminRealms, SearchCond cond, org.springframework.data.domain.Pageable pageable, AnyTypeKind kind)
-
Field Details
-
LOG
-
RELATIONSHIP_FIELDS
-
realmSearchDAO
-
dynRealmDAO
-
userDAO
-
groupDAO
-
anyObjectDAO
-
plainSchemaDAO
-
entityFactory
-
anyUtilsFactory
-
validator
-
-
Constructor Details
-
AbstractAnySearchDAO
public AbstractAnySearchDAO(RealmSearchDAO realmSearchDAO, DynRealmDAO dynRealmDAO, UserDAO userDAO, GroupDAO groupDAO, AnyObjectDAO anyObjectDAO, PlainSchemaDAO plainSchemaDAO, EntityFactory entityFactory, AnyUtilsFactory anyUtilsFactory, PlainAttrValidationManager validator)
-
-
Method Details
-
buildEffectiveCond
protected static SearchCond buildEffectiveCond(SearchCond cond, Set<String> dynRealmKeys, Set<String> groupOwners, AnyTypeKind kind) -
key
-
doCount
protected abstract long doCount(Realm base, boolean recursive, Set<String> adminRealms, SearchCond cond, AnyTypeKind kind) -
count
public long count(Realm base, boolean recursive, Set<String> adminRealms, SearchCond cond, AnyTypeKind kind) - Specified by:
count
in interfaceAnySearchDAO
- Parameters:
base
- Realm to start searching fromrecursive
- whether search should recursively include results from child RealmsadminRealms
- realms for which the caller owns the proper entitlement(s)cond
- the search conditionkind
- any object- Returns:
- size of search result
-
search
- Specified by:
search
in interfaceAnySearchDAO
- Type Parameters:
T
- any- Parameters:
cond
- the search conditionkind
- any object- Returns:
- the list of any objects matching the given search condition
-
search
public <T extends Any<?>> List<T> search(SearchCond cond, List<org.springframework.data.domain.Sort.Order> orderBy, AnyTypeKind kind) - Specified by:
search
in interfaceAnySearchDAO
- Type Parameters:
T
- any- Parameters:
cond
- the search conditionorderBy
- list of ordering clauseskind
- any object- Returns:
- the list of any objects matching the given search condition
-
doSearch
protected abstract <T extends Any<?>> List<T> doSearch(Realm base, boolean recursive, Set<String> adminRealms, SearchCond searchCondition, org.springframework.data.domain.Pageable pageable, AnyTypeKind kind) -
check
-
check
-
isPatternMatch
-
check
-
check
-
check
-
buildResult
-
search
public <T extends Any<?>> List<T> search(Realm base, boolean recursive, Set<String> adminRealms, SearchCond cond, org.springframework.data.domain.Pageable pageable, AnyTypeKind kind) - Specified by:
search
in interfaceAnySearchDAO
- Type Parameters:
T
- any- Parameters:
base
- Realm to start searching fromrecursive
- whether search should recursively include results from child RealmsadminRealms
- realms for which the caller owns the proper entitlement(s)cond
- the search conditionpageable
- paging informationkind
- any object- Returns:
- the list of any objects matching the given search condition (in the given page)
-