java.lang.Object
ch.tocco.nice2.optional.qualification.impl.util.entities.AbstractNode
All Implemented Interfaces:
Comparable<AbstractNode>
Direct Known Subclasses:
EvaluationNode, InputNode

public abstract class AbstractNode extends Object implements Comparable<AbstractNode>
  • Field Details Link icon

  • Constructor Details Link icon

  • Method Details Link icon

    • getSorting Link icon

      @Nullable public abstract @Nullable Integer getSorting()
    • getParent Link icon

      @Nullable public abstract @Nullable EvaluationNode getParent()
    • getAllParents Link icon

      public abstract Collection<EvaluationNode> getAllParents()
      Returns:
      all existing parents (Input_nodes can have multiple parents)
    • isMandatory Link icon

      public abstract boolean isMandatory()
    • getPromotionRules Link icon

      public Collection<PromotionRule> getPromotionRules()
    • getPromotionRuleEntities Link icon

      public Set<Entity> getPromotionRuleEntities()
    • hashCode Link icon

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals Link icon

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • compareTo Link icon

      public int compareTo(AbstractNode o)
      Specified by:
      compareTo in interface Comparable<AbstractNode>
    • getKey Link icon

      public PrimaryKey getKey()
    • getDelegate Link icon

      public Entity getDelegate()
    • getChildren Link icon

      public Collection<AbstractNode> getChildren(boolean recursively, boolean includeLookupOnly)
      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 Link icon

      public static AbstractNode getNode(Entity node, QualificationService qualificationService, Context context)
    • getRootEvaluationNode Link icon

      public abstract EvaluationNode getRootEvaluationNode()
    • getRounding Link icon

      public BigDecimal getRounding()
    • getRoundingPoints Link icon

      public BigDecimal getRoundingPoints()
    • getRoundingPercentage Link icon

      @Nullable public @Nullable BigDecimal getRoundingPercentage()
    • getWeight Link icon

      public abstract BigDecimal getWeight()
    • getInstances Link icon

      public abstract Collection<AbstractInstance> getInstances()
    • createInstanceEntity Link icon

      public abstract Entity createInstanceEntity(@Nullable @Nullable Entity parentEvaluation, @Nullable @Nullable org.joda.time.LocalDate date)
    • isInternalOnly Link icon

      public abstract boolean isInternalOnly()
    • isVisibleInReport Link icon

      public abstract boolean isVisibleInReport()
    • isActive Link icon

      public boolean isActive()
      Returns:
      true if this node has not been archived
    • getShort Link icon

      public String getShort()
    • getLabel Link icon

      public String getLabel()
    • getPk Link icon

      public String getPk()
    • getUniquePk Link icon

      @Deprecated public abstract String getUniquePk()
      Deprecated.
      use getUniqueKey() which has same format as Instance.getUniqueKey()
      Returns:
      a unique string, current format is "E-Key" for Evaluation_node, "R-Key" for Input_node
    • getUniqueKey Link icon

      public abstract String getUniqueKey()
      Returns:
      a unique key, format is Model-Key
    • getMaxPoints Link icon

      @Nullable public @Nullable BigDecimal getMaxPoints()
    • isSummarizePoints Link icon

      public abstract Boolean isSummarizePoints()