Interface ExternalQualificationService
- All Known Implementing Classes:
ExternalQualificationServiceImpl
public interface ExternalQualificationService
-
Method Summary
Modifier and TypeMethodDescriptionGet rating data for a specific user from within a particular qualification treegetEvaluationScale
(Entity input) returns the scale for the givenEvaluationNode
.int
getMc()
int
getValidRegistrations
(Entity evaluationDataEntity) boolean
hasInputTypeRatings
(Entity inputNode) checks if input node has ratings according to its typeboolean
isDataEmpty
(Entity inputNode, Entity inputData) checks if input data is empty according to type of input nodeboolean
isInstancePublished
(Entity publicationInstance) checks Evaluation for publication dates and Evaluation_visibility_status or Input for visible dates and Input_visibility_statusvoid
helper method to call QualificationService#updateInputDatasForParticipants(Entity) from outside the qualification moduleboolean
usesInputTypePoints
(Entity inputNode) checks if input node uses points according to its typewrapEvaluationEntity
(Entity evaluationEntity) wrap an Evaluation instance
-
Method Details
-
getValidRegistrations
- Throws:
PersistException
-
wrapEvaluationEntity
wrap an Evaluation instance- Parameters:
evaluationEntity
- an evaluation entity- Returns:
- an object wrapping the provided entity
- Throws:
PersistException
-
getData
Get rating data for a specific user from within a particular qualification tree- Parameters:
evaluation
- root evaluation of the qualification treeuser
- the user entitynodeId
- the short id of the node- Returns:
- a rating data object (e.g. BigDecimal, String, etc.)
-
getUsers
- Parameters:
evaluation
- the evaluation to get all connected users from- Returns:
- a list of user entities
- Throws:
PersistException
-
getGradeDecimalDigits
int getGradeDecimalDigits()- Returns:
- the amount of digits defined in QualificationService
-
getPointsDecimalDigits
int getPointsDecimalDigits() -
getMc
MathContext getMc() -
updateInputDatasForParticipants
helper method to call QualificationService#updateInputDatasForParticipants(Entity) from outside the qualification module- Parameters:
input
- an Input entity- Throws:
InterruptedException
-
isDataEmpty
checks if input data is empty according to type of input node- Parameters:
inputNode
- the node to get the type frominputData
- the data to check- Returns:
- true if data is empty, false otherwise
-
hasInputTypeRatings
checks if input node has ratings according to its type- Parameters:
inputNode
- the node to get the type from- Returns:
- true if type hasRatings
-
usesInputTypePoints
checks if input node uses points according to its type- Parameters:
inputNode
- the node to get the type from- Returns:
- true if type usesPoints
-
getEvaluationScale
returns the scale for the givenEvaluationNode
.- Parameters:
input
- input to get the scale from- Returns:
- the Tuple containing (1) minimum and (2) maximum value of the scale
-
isInstancePublished
checks Evaluation for publication dates and Evaluation_visibility_status or Input for visible dates and Input_visibility_status- Parameters:
publicationInstance
- the instance to check- Returns:
- true if instance is published, false otherwise
-