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

public abstract class AbstractRealmSearchDAO extends AbstractSearchDAO implements RealmSearchDAO
  • Field Details

    • RELATIONSHIP_FIELDS

      protected static final Set<String> RELATIONSHIP_FIELDS
  • Constructor Details

  • Method Details

    • findByDerAttrValue

      @Transactional(readOnly=true) public List<Realm> findByDerAttrValue(String expression, String value, boolean ignoreCaseMatch)
      Description copied from interface: RealmSearchDAO
      Find 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:
      findByDerAttrValue in interface RealmSearchDAO
      Parameters:
      expression - JEXL expression
      value - derived attribute value
      ignoreCaseMatch - whether comparison for string values should take case into account or not
      Returns:
      list of realms
    • doCount

      protected abstract long doCount(Set<String> bases, SearchCond cond)
    • count

      public long count(Set<String> bases, SearchCond cond)
      Specified by:
      count in interface RealmSearchDAO
    • 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:
      search in interface RealmSearchDAO