Class AbstractRealmSearchDAO
java.lang.Object
org.apache.syncope.core.persistence.common.dao.AbstractSearchDAO
org.apache.syncope.core.persistence.common.dao.AbstractRealmSearchDAO
- All Implemented Interfaces:
RealmSearchDAO
- Direct Known Subclasses:
AbstractJPARealmSearchDAO,ElasticsearchRealmSearchDAO,Neo4jRealmSearchDAO,OpenSearchRealmSearchDAO
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.syncope.core.persistence.common.dao.AbstractSearchDAO
AbstractSearchDAO.CheckResult<C extends AttrCond> -
Field Summary
FieldsFields inherited from class org.apache.syncope.core.persistence.common.dao.AbstractSearchDAO
ALWAYS_FALSE_CLAUSE, entityFactory, LITERAL_COMPARATOR, LOG, plainSchemaDAO, validator -
Constructor Summary
ConstructorsConstructorDescriptionAbstractRealmSearchDAO(PlainSchemaDAO plainSchemaDAO, EntityFactory entityFactory, PlainAttrValidationManager validator) -
Method Summary
Modifier and TypeMethodDescriptionlongcount(Set<String> bases, SearchCond cond) protected abstract longdoCount(Set<String> bases, SearchCond cond) doSearch(Set<String> bases, SearchCond cond, org.springframework.data.domain.Pageable pageable) findByDerAttrValue(String expression, String value, boolean ignoreCaseMatch) Find realmss by derived attribute value.search(Set<String> bases, SearchCond cond, org.springframework.data.domain.Pageable pageable) Methods inherited from class org.apache.syncope.core.persistence.common.dao.AbstractSearchDAO
buildDerAttrValueConditions, check, check, key, split, syncopeClientExceptionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.syncope.core.persistence.api.dao.RealmSearchDAO
findAncestors, findAncestors, findByFullPath, findByName, findChildren, findDescendants, getAllMatchingCond
-
Field Details
-
RELATIONSHIP_FIELDS
-
-
Constructor Details
-
AbstractRealmSearchDAO
public AbstractRealmSearchDAO(PlainSchemaDAO plainSchemaDAO, EntityFactory entityFactory, PlainAttrValidationManager validator)
-
-
Method Details
-
findByDerAttrValue
@Transactional(readOnly=true) public List<Realm> findByDerAttrValue(String expression, String value, boolean ignoreCaseMatch) Description copied from interface:RealmSearchDAOFind realmss by derived attribute value. This method could fail if one or more string literals contained into the derived attribute value provided derive from identifier (schema key) replacement. When you are going to specify a derived attribute expression you must be quite sure that string literals used to build the expression cannot be found into the attribute values used to replace attribute schema keys used as identifiers.- Specified by:
findByDerAttrValuein interfaceRealmSearchDAO- Parameters:
expression- JEXL expressionvalue- derived attribute valueignoreCaseMatch- whether comparison for string values should take case into account or not- Returns:
- list of realms
-
doCount
-
count
- Specified by:
countin interfaceRealmSearchDAO
-
doSearch
protected abstract List<Realm> doSearch(Set<String> bases, SearchCond cond, org.springframework.data.domain.Pageable pageable) -
search
public List<Realm> search(Set<String> bases, SearchCond cond, org.springframework.data.domain.Pageable pageable) - Specified by:
searchin interfaceRealmSearchDAO
-