Class QualificationEntityModel
java.lang.Object
ch.tocco.nice2.optional.qualification.impl.freemarker.qualificationstructure.QualificationEntityModel
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 Summary
ConstructorDescriptionQualificationEntityModel
(Node node, Entity user) QualificationEntityModel
(Node node, Entity user, @Nullable Map<String, QualificationEntityModel> shortIdMap) -
Method Summary
Modifier and TypeMethodDescription@Nullable QualificationEntityModel
@Nullable QualificationEntityModel
findChildrenByPartialIdMatch
(String idPart) getData()
get the first available data@Nullable Entity
getGrade()
@Nullable Entity
getLabel()
getLevel()
protected Node
getNode()
@Nullable Entity
getShort()
getText()
getUser()
boolean
boolean
-
Constructor Details
-
QualificationEntityModel
-
QualificationEntityModel
public QualificationEntityModel(Node node, Entity user, @Nullable @Nullable Map<String, QualificationEntityModel> shortIdMap)
-
-
Method Details
-
getUser
-
getDelegate
-
getNodeDataDelegate
-
getInstanceDelegate
-
getNodeDelegate
-
getEvaluationNode
-
getDataSource
- Returns:
- the entity where the values returned in
getData()
and the like are from
-
getLabel
-
getShort
-
getLevel
-
getWeight
-
getGrade
-
getPoints
-
getPointsAverage
-
getPointsCorrection
-
getPercentage
-
isDispensed
-
getText
-
getData
get the first available datathe data in order that it is checked: - text - grade - point - point average
- Returns:
- data to display
-
getChildren
-
findChild
-
findChildRecursively
-
findChildrenByPartialIdMatch
-
isVisible
public boolean isVisible() -
isMandatory
public boolean isMandatory() -
getNode
-