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 TypeMethodDescriptionbooleanRecursively evaluate theDisableConditionsof the given model item, against the given values.booleanevaluateDisableConditions(ModelItem definition, String dataPath, Optional<String> oldDataPath, Map<String, Object> values, T object, Map<String, Object> contextualParameters) Recursively evaluate theDisableConditionsof the given model item, against the given values.booleanevaluateDisableConditions(ModelItem definition, String dataPath, T object) Recursively evaluate theDisableConditionsof 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 theDisableConditionsof 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:
trueif the disable conditions aretrue,falseotherwise- 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 theDisableConditionsof 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:
trueif the disable conditions aretrue,falseotherwise- 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 theDisableConditionsof 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:
trueif the disable conditions aretrue,falseotherwise- 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
-