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
ConstructorsConstructorDescriptionEvaluation(Entity delegate, QualificationService qualificationService, Context context) -
Method Summary
Modifier and TypeMethodDescriptionvoidgetAllChildren(boolean recursive) @Nullable EvaluationDatagetData(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.DateTimegetQualificationStructure(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.booleanbooleanvoidsetGradeAvg(@Nullable BigDecimal avg) voidsetGradeMax(@Nullable BigDecimal max) voidsetGradeMin(@Nullable BigDecimal min) toString()voidMethods inherited from class ch.tocco.nice2.optional.qualification.impl.util.entities.AbstractInstance
getAllChildren, 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:
getNodein classAbstractInstance
-
getOrCreateData
Get data for a given User. The entity is created if it doesn't exist yet.- Specified by:
getOrCreateDatain classAbstractInstance
-
getDataCached
-
getData
- Specified by:
getDatain classAbstractInstance
-
getPublishedFrom
@Nullable public @Nullable org.joda.time.DateTime getPublishedFrom()- Specified by:
getPublishedFromin classAbstractInstance
-
getPublishedTo
@Nullable public @Nullable org.joda.time.DateTime getPublishedTo()- Specified by:
getPublishedToin classAbstractInstance
-
isVisible
public boolean isVisible()- Specified by:
isVisiblein classAbstractInstance
-
getData
-
getData
-
getParentEvaluation
- Specified by:
getParentEvaluationin classAbstractInstance
-
getNode
- Specified by:
getNodein classAbstractInstance
-
getAllChildren
- Overrides:
getAllChildrenin classAbstractInstance
-
getScaleMin
- Specified by:
getScaleMinin classAbstractInstance
-
getScaleMax
- Specified by:
getScaleMaxin classAbstractInstance
-
getUniqueKey
Description copied from interface:Instanceget 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:
getGradesin classAbstractInstance
-
isMandatory
public boolean isMandatory()- Specified by:
isMandatoryin 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)
-