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
ModifierConstructorDescriptionprotected
AbstractData
(Entity delegate, QualificationService qualificationService, Context context) -
Method Summary
Modifier and TypeMethodDescriptionaddPromotionReason
(Entity promotionRule, boolean positive) void
calculateAttempts
(boolean excludeDelegate) void
abstract Collection
<Rating> abstract @Nullable BigDecimal
Get the definate grade of this Data.abstract Entity
abstract @Nullable Object
abstract GradeData
abstract AbstractInstance
abstract Entity
getUser()
boolean
void
void
setBordercase
(boolean bordercase) abstract void
setDefinateGrade
(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:
PersistException
InterruptedException
-
setDefinateGrade
public abstract void setDefinateGrade(BigDecimal grade) throws PersistException, InterruptedException - Throws:
PersistException
InterruptedException
-
isDispensed
- Throws:
PersistException
-
getEvaluationResult
- Throws:
PersistException
-
getInstance
- Throws:
PersistException
-
getUser
- Throws:
PersistException
-
getValidRegistrations
- Specified by:
getValidRegistrations
in 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:
getAllRegistrations
in 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)
-