Class ConstrictionManagerImpl
java.lang.Object
ch.tocco.nice2.persist.entity.impl.constriction.ConstrictionManagerImpl
- All Implemented Interfaces:
ConstrictionManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionextendQueryWithConstriction(QueryBuilder queryBuilder, String constrictionName) Extend an existing QueryBuilder with a condition from a constrictionextendQueryWithConstriction(QueryBuilder queryBuilder, String constrictionName, Map<String, String> params) Extend an existing QueryBuilder with a condition from a constriction@Nullable ConstrictiongetConstriction(String name) @Nullable ConstrictiongetConstriction(String name, Map<String, String> params) voidsetConstriction(String name, Constriction constriction) Set a constriction.voidsetConstrictions(List<ConstrictionContribution> constrictions)
-
Constructor Details
-
ConstrictionManagerImpl
public ConstrictionManagerImpl(org.slf4j.Logger log)
-
-
Method Details
-
getConstriction
- Specified by:
getConstrictionin interfaceConstrictionManager
-
getConstriction
- Specified by:
getConstrictionin interfaceConstrictionManager
-
extendQueryWithConstriction
Description copied from interface:ConstrictionManagerExtend an existing QueryBuilder with a condition from a constriction- Specified by:
extendQueryWithConstrictionin interfaceConstrictionManager- Parameters:
constrictionName- constriction id- Returns:
- the QueryBuilder
-
extendQueryWithConstriction
public QueryBuilder extendQueryWithConstriction(QueryBuilder queryBuilder, String constrictionName, Map<String, String> params) Description copied from interface:ConstrictionManagerExtend an existing QueryBuilder with a condition from a constriction- Specified by:
extendQueryWithConstrictionin interfaceConstrictionManager- Parameters:
constrictionName- constriction idparams- params for constriction- Returns:
- the QueryBuilder
-
setConstriction
Description copied from interface:ConstrictionManagerSet a constriction. If there already exists a constriction with the given name, it will be replaced.- Specified by:
setConstrictionin interfaceConstrictionManager- Parameters:
name- The name of the constriction.constriction- The constriction (query where clause)
-
setConstrictions
-