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
Modifier and TypeFieldDescriptionprotected final Context
protected Entity
protected final QualificationService
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractNode
(Entity delegate, QualificationService qualificationService, Context context) -
Method Summary
Modifier and TypeMethodDescriptionint
abstract Entity
createInstanceEntity
(@Nullable Entity parentEvaluation, @Nullable org.joda.time.LocalDate date) boolean
abstract Collection
<EvaluationNode> getChildren
(boolean recursively, boolean includeLookupOnly) Get all child nodes in the qualification structureabstract Collection
<AbstractInstance> getKey()
getLabel()
@Nullable BigDecimal
static AbstractNode
getNode
(Entity node, QualificationService qualificationService, Context context) abstract @Nullable EvaluationNode
getPk()
abstract EvaluationNode
@Nullable BigDecimal
getShort()
abstract @Nullable Integer
abstract String
abstract String
Deprecated.abstract BigDecimal
int
hashCode()
boolean
isActive()
abstract boolean
abstract boolean
abstract Boolean
abstract 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:
compareTo
in 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()