Class AbstractData
java.lang.Object
ch.tocco.nice2.optional.qualification.impl.util.entities.AbstractData
- All Implemented Interfaces:
Data
- Direct Known Subclasses:
EvaluationData, InputData
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractData(Entity delegate, QualificationService qualificationService, Context context) -
Method Summary
Modifier and TypeMethodDescriptionaddPromotionReason(Entity promotionRule, boolean positive) voidcalculateAttempts(boolean excludeDelegate) voidabstract Collection<Rating> abstract @Nullable BigDecimalGet the definate grade of this Data.abstract Entityabstract @Nullable Objectabstract GradeDataabstract AbstractInstancebooleanvoidvoidsetBordercase(boolean bordercase) abstract voidsetDefinateGrade(BigDecimal grade) void
-
Constructor Details
-
AbstractData
-
-
Method Details
-
getDelegate
-
getDefinateGrade
Get the definate grade of this Data. This is the grade that is passed on the a parent node in the evaluation.- Returns:
- the definate grade
- Throws:
PersistException- -
-
getActiveRatings
- Throws:
PersistExceptionInterruptedException
-
setDefinateGrade
public abstract void setDefinateGrade(BigDecimal grade) throws PersistException, InterruptedException - Throws:
PersistExceptionInterruptedException
-
isDispensed
- Throws:
PersistException
-
getEvaluationResult
- Throws:
PersistException
-
getInstance
- Throws:
PersistException
-
getValidRegistrations
- Specified by:
getValidRegistrationsin interfaceData- Returns:
- a list of "valid" registrations for this Data instance (i.e. Registrations with the appropriate status linked to Events of the corresponding Input / Evaluation)
- Throws:
PersistException
-
getAllRegistrations
- Specified by:
getAllRegistrationsin interfaceData- Returns:
- a list of registrations for this Data instance (i.e. Registrations linked to Events of the corresponding Input / Evaluation)
-
getGradeData
-
setStatus
-
removeStatus
public void removeStatus() -
setBordercase
public void setBordercase(boolean bordercase) -
addPromotionReason
-
clearPromotionReasons
public void clearPromotionReasons() -
calculateAttempts
public void calculateAttempts(boolean excludeDelegate)
-