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
ConstructorDescriptionInputData
(Entity delegate, QualificationService qualificationService, Context context) -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
evaluate
(EvaluationFactory evaluationFactory) Get all activeRating
s grouped under thisInput_data
entity.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 String
Get the definate grade of this Data.@Nullable BigDecimal
getGrade()
getInput()
getText()
getUser()
long
getValue()
int
hashCode()
boolean
isEmpty()
void
persistEvaluationResult
(@Nullable EvaluationResult evaluationResult) void
setAveragePoints
(@Nullable BigDecimal averagePoints) void
setDefinateGrade
(@Nullable BigDecimal definateGrade) void
setGrade
(@Nullable BigDecimal grade) void
setPreGrade
(@Nullable BigDecimal preGrade) void
setTotalPoints
(@Nullable BigDecimal totalPoints) void
setValue
(@Nullable BigDecimal value) toString()
void
update the num_ratings fieldvoid
update the related registrationsMethods inherited from class ch.tocco.nice2.optional.qualification.impl.util.entities.AbstractData
addPromotionReason, calculateAttempts, clearPromotionReasons, getAllRegistrations, getValidRegistrations, isDispensed, removeStatus, setBordercase, setStatus
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.optional.qualification.api.util.entities.Data
getAllRegistrations, getValidRegistrations
-
Constructor Details
-
InputData
-
-
Method Details
-
getActiveRatings
Get all activeRating
s grouped under thisInput_data
entity.- Specified by:
getActiveRatings
in classAbstractData
- Returns:
- the
Rating
s to be displayed according tonum_ratings
on 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: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 classAbstractData
- Returns:
- the definate grade
-
getText
-
setGrade
-
setValue
-
setPreGrade
-
setDefinateGrade
- Specified by:
setDefinateGrade
in classAbstractData
-
setTotalPoints
-
setAveragePoints
-
getDelegate
- Specified by:
getDelegate
in classAbstractData
-
getUser
- Specified by:
getUser
in classAbstractData
-
getRegistrationType
-
getEvaluationResult
- Specified by:
getEvaluationResult
in classAbstractData
-
getInstance
- Specified by:
getInstance
in 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:
getGradeData
in classAbstractData
-
equals
-
hashCode
public int hashCode()
-