Class EvaluationNode
java.lang.Object
ch.tocco.nice2.optional.qualification.impl.util.entities.AbstractNode
ch.tocco.nice2.optional.qualification.impl.util.entities.EvaluationNode
- All Implemented Interfaces:
Comparable<AbstractNode>
-
Field Summary
Fields inherited from class ch.tocco.nice2.optional.qualification.impl.util.entities.AbstractNode
context, delegate, qualificationService
-
Constructor Summary
ConstructorDescriptionEvaluationNode
(Entity evaluationNode, QualificationService qualificationService, Context context) -
Method Summary
Modifier and TypeMethodDescriptioncreateInstanceEntity
(@Nullable Entity parentEvaluation, @Nullable org.joda.time.LocalDate date) @Nullable BigDecimal
getChildren
(boolean recursively, boolean includeLookupOnly) Get all child nodes in the qualification structure@Nullable Entity
boolean
isActive()
boolean
boolean
boolean
toString()
Methods inherited from class ch.tocco.nice2.optional.qualification.impl.util.entities.AbstractNode
compareTo, equals, getDelegate, getKey, getLabel, getMaxPoints, getNode, getPk, getPromotionRuleEntities, getPromotionRules, getRounding, getRoundingPercentage, getRoundingPoints, getShort, hashCode
-
Constructor Details
-
EvaluationNode
public EvaluationNode(Entity evaluationNode, QualificationService qualificationService, Context context)
-
-
Method Details
-
getChildren
Description copied from class:AbstractNode
Get all child nodes in the qualification structure- Overrides:
getChildren
in classAbstractNode
- Parameters:
recursively
- should all children in the entire tree be loaded?includeLookupOnly
- should only lookups be included?- Returns:
- Returns always just the direct children of the current node
-
getInputChildren
-
getRootEvaluationNode
- Specified by:
getRootEvaluationNode
in classAbstractNode
-
getWeight
- Specified by:
getWeight
in classAbstractNode
-
getInstances
- Specified by:
getInstances
in classAbstractNode
-
createInstanceEntity
public Entity createInstanceEntity(@Nullable @Nullable Entity parentEvaluation, @Nullable @Nullable org.joda.time.LocalDate date) - Specified by:
createInstanceEntity
in classAbstractNode
-
isInternalOnly
public boolean isInternalOnly()- Specified by:
isInternalOnly
in classAbstractNode
-
isVisibleInReport
public boolean isVisibleInReport()- Specified by:
isVisibleInReport
in classAbstractNode
-
isActive
public boolean isActive()- Overrides:
isActive
in classAbstractNode
- Returns:
- true if this node has not been archived
-
getUniquePk
- Specified by:
getUniquePk
in classAbstractNode
- Returns:
- a unique string, current format is "E-Key" for Evaluation_node, "R-Key" for Input_node
-
getUniqueKey
- Specified by:
getUniqueKey
in classAbstractNode
- Returns:
- a unique key, format is Model-Key
-
isSummarizePoints
- Specified by:
isSummarizePoints
in classAbstractNode
-
isMandatory
public boolean isMandatory()- Specified by:
isMandatory
in classAbstractNode
-
getSorting
- Specified by:
getSorting
in classAbstractNode
-
getParent
- Specified by:
getParent
in classAbstractNode
-
getAllParents
- Specified by:
getAllParents
in classAbstractNode
- Returns:
- all existing parents (Input_nodes can have multiple parents)
-
getScaleMin
-
getScaleMax
-
toString
-
getPointConverterTypeEntity
-
getThresholdValues
-
getAverageMaxPoints
-