java.lang.Object
ch.tocco.nice2.optional.qualification.impl.freemarker.qualificationstructure.QualificationEntityModel

public class QualificationEntityModel extends Object
used in QualificationStructureMethod and DisplayQualificationStructureDirective to send values used in qualification reports to the freemarker engine

access works with simple dot annotation (e.g. qualificationStructure.label)

  • Constructor Details

  • Method Details

    • getUser

      public Entity getUser()
    • getDelegate

      public Entity getDelegate()
    • getNodeDataDelegate

      @Nullable public @Nullable Entity getNodeDataDelegate()
    • getInstanceDelegate

      @Nullable public @Nullable Entity getInstanceDelegate()
    • getNodeDelegate

      public Entity getNodeDelegate()
    • getEvaluationNode

      public Entity getEvaluationNode()
    • getDataSource

      @Nullable public @Nullable Entity getDataSource()
      Returns:
      the entity where the values returned in getData() and the like are from
    • getLabel

      public String getLabel()
    • getShort

      public String getShort()
    • getLevel

      public Integer getLevel()
    • getWeight

      public BigDecimal getWeight()
    • getGrade

      public Object getGrade()
    • getPoints

      public Object getPoints()
    • getPointsAverage

      public Object getPointsAverage()
    • getPointsCorrection

      public Object getPointsCorrection()
    • getPercentage

      public Object getPercentage()
    • isDispensed

      public Boolean isDispensed()
    • getText

      public Object getText()
    • getData

      public Object getData()
      get the first available data

      the data in order that it is checked: - text - grade - point - point average

      Returns:
      data to display
    • getChildren

      public List<QualificationEntityModel> getChildren()
    • findChild

      @Nullable public @Nullable QualificationEntityModel findChild(String id)
    • findChildRecursively

      @Nullable public @Nullable QualificationEntityModel findChildRecursively(String id)
    • findChildrenByPartialIdMatch

      public List<QualificationEntityModel> findChildrenByPartialIdMatch(String idPart)
    • isVisible

      public boolean isVisible()
    • isMandatory

      public boolean isMandatory()
    • getNode

      @VisibleForTesting protected Node getNode()