Interface DisableConditionsEvaluator<T>
- Type Parameters:
T
- Type of object holding the data to evaluate
- All Known Implementing Classes:
AbstractDisableConditionsEvaluator
,ConfigDisableConditionsEvaluator
,DataHolderDisableConditionsEvaluator
,SkinDisableConditionsEvaluator
,UsersAndGroupsDataDisableConditionsEvaluator
public interface DisableConditionsEvaluator<T>
Evaluator for
DisableConditions
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Recursively evaluate theDisableConditions
of the given model item, against the given values.boolean
evaluateDisableConditions
(ModelItem definition, String dataPath, Optional<String> oldDataPath, Map<String, Object> values, T object, Map<String, Object> contextualParameters) Recursively evaluate theDisableConditions
of the given model item, against the given values.boolean
evaluateDisableConditions
(ModelItem definition, String dataPath, T object) Recursively evaluate theDisableConditions
of the given model item, against the values stored in the given object
-
Method Details
-
evaluateDisableConditions
boolean evaluateDisableConditions(ModelItem definition, String dataPath, Map<String, Object> values) throws UndefinedItemPathException, BadItemTypeExceptionRecursively evaluate theDisableConditions
of the given model item, against the given values.- Parameters:
definition
- the definition of the evaluated datadataPath
- the path of the evaluated data. Needed to get the value to compare as condition ids are relative to this onevalues
- values to check conditions on- Returns:
true
if the disable conditions aretrue
,false
otherwise- Throws:
UndefinedItemPathException
- If no item is found corresponding to one of the conditionsBadItemTypeException
- If the item referenced by one of the conditions is not an element
-
evaluateDisableConditions
boolean evaluateDisableConditions(ModelItem definition, String dataPath, T object) throws UndefinedItemPathException, BadItemTypeException Recursively evaluate theDisableConditions
of the given model item, against the values stored in the given object- Parameters:
definition
- the definition of the evaluated datadataPath
- the path of the evaluated data. Needed to get the value to compare as condition ids are relative to this oneobject
- the object holding the data to evaluate and the condition value- Returns:
true
if the disable conditions aretrue
,false
otherwise- Throws:
UndefinedItemPathException
- If no item is found corresponding to one of the conditionsBadItemTypeException
- If the item referenced by one of the conditions is not an element
-
evaluateDisableConditions
boolean evaluateDisableConditions(ModelItem definition, String dataPath, Optional<String> oldDataPath, Map<String, Object> values, T object, Map<String, throws UndefinedItemPathException, BadItemTypeExceptionObject> contextualParameters) Recursively evaluate theDisableConditions
of the given model item, against the given values. If the value of the condition is not present in the givenMap
, search in the stored values in the given object- Parameters:
definition
- the definition of the evaluated datadataPath
- the path of the evaluated data. Needed to get the value to compare as condition ids are relative to this oneoldDataPath
- the old path of the evaluated data. Needed to get stored value if the data has been movedvalues
- values to check conditions onobject
- the object holding the data to evaluate and the condition valuecontextualParameters
- the contextual parameters- Returns:
true
if the disable conditions aretrue
,false
otherwise- Throws:
UndefinedItemPathException
- If no item is found corresponding to one of the conditionsBadItemTypeException
- If the item referenced by one of the conditions is not an element
-