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