Class AbstractInstance
java.lang.Object
ch.tocco.nice2.optional.qualification.impl.util.entities.AbstractInstance
- All Implemented Interfaces:
Instance
- Direct Known Subclasses:
Evaluation,Input
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Contextprotected final Entityprotected final QualificationService -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractInstance(Entity delegate, QualificationService qualificationService, Context context) -
Method Summary
Modifier and TypeMethodDescriptiongetAllChildren(boolean recursive) Keys are the 'short' field (seeInstance.getShort()) of an Instance, values are all child instances of this instanceabstract @Nullable AbstractData@Nullable org.joda.time.LocalDategetDate()@Nullable BigDecimal@Nullable BigDecimal@Nullable BigDecimalabstract List<BigDecimal> getLabel()abstract AbstractNodegetNode()abstract AbstractNodegetNode(EvaluationNode parent) abstract @Nullable AbstractDatagetOrCreateData(Entity participant) abstract @Nullable EvaluationgetParticipantRegistrations(Condition condition) Get all the registrations for this instance.Get all the participants (User entities) for this instance.getParticipants(EntityList registrations) Same behaviour asgetParticipants().abstract @Nullable org.joda.time.DateTimeabstract @Nullable org.joda.time.DateTimeabstract BigDecimalabstract BigDecimalgetShort()abstract booleanbooleanabstract booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ch.tocco.nice2.optional.qualification.api.util.entities.Instance
getRatingData, getUniqueKey
-
Field Details
-
delegate
-
qualificationService
-
context
-
-
Constructor Details
-
AbstractInstance
protected AbstractInstance(Entity delegate, QualificationService qualificationService, Context context)
-
-
Method Details
-
getNode
-
getGrades
- Throws:
InterruptedException
-
isMandatory
public abstract boolean isMandatory() -
getOrCreateData
-
getData
-
getPublishedFrom
@Nullable public abstract @Nullable org.joda.time.DateTime getPublishedFrom() -
getPublishedTo
@Nullable public abstract @Nullable org.joda.time.DateTime getPublishedTo() -
isVisible
public abstract boolean isVisible() -
getColumnHeader
-
getTooltip
-
getRounding
-
getGradeMin
-
getGradeMax
-
getGradeAvg
-
getShort
-
getLabel
-
getDate
@Nullable public @Nullable org.joda.time.LocalDate getDate() -
getEvents
-
getRootEvents
-
getParticipants
Get all the participants (User entities) for this instance.- Returns:
- EntityList containing all registered users
- Throws:
PersistException- /
-
getParticipantRegistrations
-
getParticipantRegistrations
Get all the registrations for this instance.- Returns:
- EntityList containing all registrations
-
getParticipants
Same behaviour asgetParticipants(). To improve performance the registrations can be passed as a parameter if already acquired by callinggetParticipantRegistrations().- Returns:
- EntityList containing all registered users
-
getParentEvaluation
-
getNode
-
getChildrenMap
Description copied from interface:InstanceKeys are the 'short' field (seeInstance.getShort()) of an Instance, values are all child instances of this instance- Specified by:
getChildrenMapin interfaceInstance- Returns:
- a map of all children of this node, including thid node itself
-
getAllChildren
-
getAllChildren
-
getDelegate
-
getQualificationService
-
isPublished
public boolean isPublished() -
getScaleMin
-
getScaleMax
-