Class Evaluation
java.lang.Object
ch.tocco.nice2.optional.qualification.impl.util.entities.AbstractInstance
ch.tocco.nice2.optional.qualification.impl.util.entities.Evaluation
- All Implemented Interfaces:
Instance
-
Field Summary
Fields inherited from class ch.tocco.nice2.optional.qualification.impl.util.entities.AbstractInstance
context, delegate, qualificationService
-
Constructor Summary
ConstructorDescriptionEvaluation
(Entity delegate, QualificationService qualificationService, Context context) -
Method Summary
Modifier and TypeMethodDescriptionvoid
@Nullable EvaluationData
getData
(PrimaryKey participantKey) getData
(List<PrimaryKey> participantKeys) getDataCached
(Entity participant) getNode()
getNode
(EvaluationNode parent) getOrCreateData
(Entity participant) Get data for a given User.@Nullable Evaluation
@Nullable org.joda.time.DateTime
@Nullable org.joda.time.DateTime
getQualificationStructure
(int startLevel, int levels, boolean ignoreFlag) getQualificationStructure
(int startLevel, int levels, boolean ignoreFlag, Set<String> uniquePksToIgnore, Set<String> uniquePksToIgnoreRecursively) getRatingData
(Entity user) get a string that uniquely identifies this instance.boolean
boolean
void
setGradeAvg
(@Nullable BigDecimal avg) void
setGradeMax
(@Nullable BigDecimal max) void
setGradeMin
(@Nullable BigDecimal min) toString()
void
Methods inherited from class ch.tocco.nice2.optional.qualification.impl.util.entities.AbstractInstance
getChildrenMap, getColumnHeader, getDate, getDelegate, getEvents, getGradeAvg, getGradeMax, getGradeMin, getLabel, getParticipantRegistrations, getParticipantRegistrations, getParticipants, getParticipants, getQualificationService, getRootEvents, getRounding, getShort, getTooltip, isPublished
-
Constructor Details
-
Evaluation
-
-
Method Details
-
getNode
- Specified by:
getNode
in classAbstractInstance
-
getOrCreateData
Get data for a given User. The entity is created if it doesn't exist yet.- Specified by:
getOrCreateData
in classAbstractInstance
-
getDataCached
-
getData
- Specified by:
getData
in classAbstractInstance
-
getPublishedFrom
@Nullable public @Nullable org.joda.time.DateTime getPublishedFrom()- Specified by:
getPublishedFrom
in classAbstractInstance
-
getPublishedTo
@Nullable public @Nullable org.joda.time.DateTime getPublishedTo()- Specified by:
getPublishedTo
in classAbstractInstance
-
isVisible
public boolean isVisible()- Specified by:
isVisible
in classAbstractInstance
-
getData
-
getData
-
getParentEvaluation
- Specified by:
getParentEvaluation
in classAbstractInstance
-
getNode
- Specified by:
getNode
in classAbstractInstance
-
getAllChildren
- Overrides:
getAllChildren
in classAbstractInstance
-
getUniqueKey
Description copied from interface:Instance
get a string that uniquely identifies this instance. currently, format is Model-Key.- Returns:
- the unique key
-
toString
-
getChildren
-
getInputChildren
-
updateStatistics
public void updateStatistics() -
setGradeMin
-
setGradeMax
-
setGradeAvg
-
getGrades
- Specified by:
getGrades
in classAbstractInstance
-
isMandatory
public boolean isMandatory()- Specified by:
isMandatory
in classAbstractInstance
-
getQualificationStructure
public ArrayList<EvaluationActionService.ColumnModel> getQualificationStructure(int startLevel, int levels, boolean ignoreFlag) -
getQualificationStructure
-
cleanupEvaluationData
public void cleanupEvaluationData() -
getRatingData
- Parameters:
user
- a User entity- Returns:
- an optional rating object (type depending on the type of the underlying node)
-