Class EvaluationNodeThresholdValueProvider
java.lang.Object
ch.tocco.nice2.optional.qualification.impl.action.thresholdedit.providers.EvaluationNodeThresholdValueProvider
- All Implemented Interfaces:
ThresholdValueProvider
-
Constructor Summary
ConstructorDescriptionEvaluationNodeThresholdValueProvider
(Entity evaluationNode, Context context, QualificationBeanFactory qualificationBeanFactory) -
Method Summary
Modifier and TypeMethodDescription@Nullable String
@Nullable BigDecimal
@Nullable BigDecimal
@Nullable BigDecimal
boolean
isValid()
-
Constructor Details
-
EvaluationNodeThresholdValueProvider
public EvaluationNodeThresholdValueProvider(Entity evaluationNode, Context context, QualificationBeanFactory qualificationBeanFactory)
-
-
Method Details
-
isValid
public boolean isValid()- Specified by:
isValid
in interfaceThresholdValueProvider
- Returns:
- true if the action may run on the given entity, false otherwise
-
getEvents
- Specified by:
getEvents
in interfaceThresholdValueProvider
- Returns:
- a string containing the events the entity is related to
-
getScaleMin
- Specified by:
getScaleMin
in interfaceThresholdValueProvider
- Returns:
- the lower end of the grade scale
-
getScaleMax
- Specified by:
getScaleMax
in interfaceThresholdValueProvider
- Returns:
- the higher end of the grade scale
-
getRounding
- Specified by:
getRounding
in interfaceThresholdValueProvider
- Returns:
- the rounding of the grades
-
getThresholdValues
- Specified by:
getThresholdValues
in interfaceThresholdValueProvider
- Returns:
- list of all related
Threshold_value
entities, wrapped inThresholdValue
-
getEntitySpecificTemplates
- Specified by:
getEntitySpecificTemplates
in interfaceThresholdValueProvider
- Returns:
- list of all templates that apply specifically to this entity
-