Class InputData
java.lang.Object
ch.tocco.nice2.optional.qualification.impl.util.entities.AbstractData
ch.tocco.nice2.optional.qualification.impl.util.entities.InputData
-
Constructor Summary
ConstructorsConstructorDescriptionInputData(Entity delegate, QualificationService qualificationService, Context context) -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidevaluate(EvaluationFactory evaluationFactory) Get all activeRatings grouped under thisInput_dataentity.same asgetAndCreateActiveRatings(Collection)but uses the active exams from the input as defaultgetAndCreateActiveRatings(Collection<Exam> exams) Get and if needed create all active Ratings grouped under this Input_data entity.@Nullable BigDecimal@Nullable Entity@Nullable StringGet the definate grade of this Data.@Nullable BigDecimalgetGrade()getInput()getText()getUser()longgetValue()inthashCode()booleanisEmpty()voidpersistEvaluationResult(@Nullable EvaluationResult evaluationResult) voidsetAveragePoints(@Nullable BigDecimal averagePoints) voidsetDefinateGrade(@Nullable BigDecimal definateGrade) voidsetGrade(@Nullable BigDecimal grade) voidsetPreGrade(@Nullable BigDecimal preGrade) voidsetTotalPoints(@Nullable BigDecimal totalPoints) voidsetValue(@Nullable BigDecimal value) toString()voidupdate the num_ratings fieldvoidupdate the related registrationsMethods inherited from class ch.tocco.nice2.optional.qualification.impl.util.entities.AbstractData
addPromotionReason, calculateAttempts, clearPromotionReasons, getAllRegistrations, getValidRegistrations, isDispensed, removeStatus, setBordercase, setStatusMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface ch.tocco.nice2.optional.qualification.api.util.entities.Data
getAllRegistrations, getValidRegistrations
-
Constructor Details
-
InputData
-
-
Method Details
-
getActiveRatings
Get all activeRatings grouped under thisInput_dataentity.- Specified by:
getActiveRatingsin classAbstractData- Returns:
- the
Ratings to be displayed according tonum_ratingson theInput
-
getAndCreateActiveRatings
same asgetAndCreateActiveRatings(Collection)but uses the active exams from the input as default- See Also:
-
getAndCreateActiveRatings
-
isEmpty
public boolean isEmpty() -
getInput
-
getLastName
-
getUserNr
public long getUserNr() -
getFirstName
-
getPreGrade
-
getGrade
-
getValue
-
getPointsAverage
-
getPointsCorrection
-
getDefinateGrade
Description copied from class:AbstractDataGet the definate grade of this Data. This is the grade that is passed on the a parent node in the evaluation.- Specified by:
getDefinateGradein classAbstractData- Returns:
- the definate grade
-
getText
-
setGrade
-
setValue
-
setPreGrade
-
setDefinateGrade
- Specified by:
setDefinateGradein classAbstractData
-
setTotalPoints
-
setAveragePoints
-
getDelegate
- Specified by:
getDelegatein classAbstractData
-
getUser
-
getRegistrationType
-
getEvaluationResult
- Specified by:
getEvaluationResultin classAbstractData
-
getInstance
- Specified by:
getInstancein classAbstractData
-
getChoiceRating
-
getChoiceRatingEntity
-
getChoiceRatingValue
-
getCalculatedPresence
-
getEnteredPresence
-
toString
-
getQualificationService
-
evaluate
-
persistEvaluationResult
-
updateNumRatingsField
public void updateNumRatingsField()update the num_ratings field -
updateRegistrations
public void updateRegistrations()update the related registrations -
getGradeData
- Specified by:
getGradeDatain classAbstractData
-
equals
-
hashCode
public int hashCode()
-