Class AbstractNode
java.lang.Object
ch.tocco.nice2.optional.qualification.impl.util.entities.AbstractNode
- All Implemented Interfaces:
Comparable<AbstractNode>
- Direct Known Subclasses:
EvaluationNode,InputNode
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Contextprotected Entityprotected final QualificationService -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractNode(Entity delegate, QualificationService qualificationService, Context context) -
Method Summary
Modifier and TypeMethodDescriptionintabstract EntitycreateInstanceEntity(@Nullable Entity parentEvaluation, @Nullable org.joda.time.LocalDate date) booleanabstract Collection<EvaluationNode> getChildren(boolean recursively, boolean includeLookupOnly) Get all child nodes in the qualification structureabstract Collection<AbstractInstance> getKey()getLabel()@Nullable BigDecimalstatic AbstractNodegetNode(Entity node, QualificationService qualificationService, Context context) abstract @Nullable EvaluationNodegetPk()abstract EvaluationNode@Nullable BigDecimalgetShort()abstract @Nullable Integerabstract Stringabstract StringDeprecated.abstract BigDecimalinthashCode()booleanisActive()abstract booleanabstract booleanabstract Booleanabstract boolean
-
Field Details
-
qualificationService
-
context
-
delegate
-
-
Constructor Details
-
AbstractNode
-
-
Method Details
-
getSorting
-
getParent
-
getAllParents
- Returns:
- all existing parents (Input_nodes can have multiple parents)
-
isMandatory
public abstract boolean isMandatory() -
getPromotionRules
-
getPromotionRuleEntities
-
hashCode
public int hashCode() -
equals
-
compareTo
- Specified by:
compareToin interfaceComparable<AbstractNode>
-
getKey
-
getDelegate
-
getChildren
Get all child nodes in the qualification structure- 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
-
getNode
public static AbstractNode getNode(Entity node, QualificationService qualificationService, Context context) -
getRootEvaluationNode
-
getRounding
-
getRoundingPoints
-
getRoundingPercentage
-
getWeight
-
getInstances
-
createInstanceEntity
-
isInternalOnly
public abstract boolean isInternalOnly() -
isVisibleInReport
public abstract boolean isVisibleInReport() -
isActive
public boolean isActive()- Returns:
- true if this node has not been archived
-
getShort
-
getLabel
-
getPk
-
getUniquePk
Deprecated.usegetUniqueKey()which has same format asInstance.getUniqueKey()- Returns:
- a unique string, current format is "E-Key" for Evaluation_node, "R-Key" for Input_node
-
getUniqueKey
- Returns:
- a unique key, format is Model-Key
-
getMaxPoints
-
isSummarizePoints
-
getUniqueKey()which has same format asInstance.getUniqueKey()