Project

General

Profile

feature request #7598

Grouping of Restrictions implemented

Added by Andreas Kohlbecker 8 months ago. Updated 8 months ago.

Status:
New
Priority:
New
Category:
cdmlib
Target version:
Start date:
07/30/2018
Due date:
% Done:

0%

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 OR Closed 07/26/2018

History

#1 Updated by Andreas Kohlbecker 8 months ago

  • Related to feature request #7590: findByTitleWithRestrictions allows combining Restrictions by OR added

#2 Updated by Andreas Müller 8 months ago

  • Subject changed from Grouping od Restrictions implemented to Grouping of Restrictions implemented

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 40 MB)