java.lang.Object
ch.tocco.nice2.optional.qualification.impl.util.entities.AbstractData
ch.tocco.nice2.optional.qualification.impl.util.entities.InputData
All Implemented Interfaces:
Data, InputData

public class InputData extends AbstractData implements InputData
  • Constructor Details

  • Method Details

    • getActiveRatings

      public List<Rating> getActiveRatings()
      Get all active Ratings grouped under this Input_data entity.
      Specified by:
      getActiveRatings in class AbstractData
      Returns:
      the Ratings to be displayed according to num_ratings on the Input
    • getAndCreateActiveRatings

      public Collection<Rating> getAndCreateActiveRatings()
      same as getAndCreateActiveRatings(Collection) but uses the active exams from the input as default
      See Also:
    • getAndCreateActiveRatings

      public Collection<Rating> getAndCreateActiveRatings(Collection<Exam> exams)
      Get and if needed create all active Ratings grouped under this Input_data entity. Ratings with an ID larger than the amount of ratings defined as num_ratings on the related Input are not visible and therefore not included in the returned Collection.
      Parameters:
      exams - the Exams to which newly created Ratings can be linked
      Returns:
      the Ratings to be displayed according to num_ratings on the Input
    • isEmpty

      public boolean isEmpty()
    • getInput

      public Input getInput()
    • getLastName

      public String getLastName()
    • getUserNr

      public long getUserNr()
    • getFirstName

      public String getFirstName()
    • getPreGrade

      public BigDecimal getPreGrade()
    • getGrade

      public BigDecimal getGrade()
    • getValue

      public BigDecimal getValue()
    • getPointsAverage

      public BigDecimal getPointsAverage()
    • getPointsCorrection

      public BigDecimal getPointsCorrection()
    • getDefinateGrade

      public BigDecimal getDefinateGrade()
      Description copied from class: AbstractData
      Get the definate grade of this Data. This is the grade that is passed on the a parent node in the evaluation.
      Specified by:
      getDefinateGrade in class AbstractData
      Returns:
      the definate grade
    • getText

      public String getText()
    • setGrade

      public void setGrade(@Nullable @Nullable BigDecimal grade)
    • setValue

      public void setValue(@Nullable @Nullable BigDecimal value)
    • setPreGrade

      public void setPreGrade(@Nullable @Nullable BigDecimal preGrade)
    • setDefinateGrade

      public void setDefinateGrade(@Nullable @Nullable BigDecimal definateGrade)
      Specified by:
      setDefinateGrade in class AbstractData
    • setTotalPoints

      public void setTotalPoints(@Nullable @Nullable BigDecimal totalPoints)
    • setAveragePoints

      public void setAveragePoints(@Nullable @Nullable BigDecimal averagePoints)
    • getDelegate

      public Entity getDelegate()
      Specified by:
      getDelegate in class AbstractData
    • getUser

      public Entity getUser()
      Specified by:
      getUser in class AbstractData
    • getRegistrationType

      public String getRegistrationType()
    • getEvaluationResult

      public Object getEvaluationResult()
      Specified by:
      getEvaluationResult in class AbstractData
    • getInstance

      public AbstractInstance getInstance()
      Specified by:
      getInstance in class AbstractData
    • getChoiceRating

      public String getChoiceRating()
    • getChoiceRatingEntity

      @Nullable public @Nullable Entity getChoiceRatingEntity()
    • getChoiceRatingValue

      @Nullable public @Nullable String getChoiceRatingValue()
    • getCalculatedPresence

      @Nullable public @Nullable BigDecimal getCalculatedPresence()
    • getEnteredPresence

      @Nullable public @Nullable BigDecimal getEnteredPresence()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getQualificationService

      public QualificationService getQualificationService()
    • evaluate

      public void evaluate(EvaluationFactory evaluationFactory)
    • persistEvaluationResult

      public void persistEvaluationResult(@Nullable @Nullable EvaluationResult evaluationResult)
    • updateNumRatingsField

      public void updateNumRatingsField()
      update the num_ratings field
    • updateRegistrations

      public void updateRegistrations()
      update the related registrations
    • getGradeData

      public GradeData getGradeData()
      Specified by:
      getGradeData in class AbstractData
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object