Project

General

Profile

Actions

feature request #7598

open

Grouping of Restrictions implemented

Added by Andreas Kohlbecker over 5 years ago. Updated over 5 years ago.

Status:
New
Priority:
New
Category:
cdmlib
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Severity:
normal

Description

Since solving #7590 it is possible to logically combine Restrictions by AND and OR. To allow for really flexible search filters is is required to support grouping of Restrictions, so that expressions like this are possible:

Restriction-a OR (Restriction-b AND Restriction-c)
  • Create abstract AbstractRestriction as base class for Restriction
  • Create RestrictionGroup as subclass of AbstractRestriction
  • implement handling of RestrictionGroups in eu.etaxonomy.cdm.persistence.dao.hibernate.common.CdmEntityDaoBase.addRestrictions(List<Restriction<?>> restrictions, DetachedCriteria criteria)

Related issues

Related to EDIT - feature request #7590: findByTitleWithRestrictions allows combining Restrictions by ORClosedAndreas Kohlbecker

Actions
Actions

Also available in: Atom PDF