Interface InputEditActionService
- All Known Implementing Classes:
InputEditActionServiceImpl
public interface InputEditActionService
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic classstatic classstatic classstatic classstatic class -
Method Summary
Modifier and TypeMethodDescription@Nullable Stringchecks if a selection can be used together to input data, things compared are number of ratings active exams input nodesfinishInput(EntityExplorerActionSelection selectedInput) getActiveExams(EntityExplorerActionSelection selectedInput) getExams(EntityExplorerActionSelection selection) Returns allExams related to the selectedInputeven if they are defined as inactive by theirExam.FIELD_NRexceeding theInput'snumRatingsvalue.getExamsWithLimit(EntityExplorerActionSelection selection, int limit) Returns allExams related to the selectedInputnot exceeding the given limit, even if they are defined as inactive by theirExam.FIELD_NRexceeding theInput'snumRatingsvalue.getFormInfo(EntityExplorerActionSelection selection) getInputData(EntityExplorerActionSelection inputSelection) getLocalizedFormInfo(EntityExplorerActionSelection selectedInput, Locale locale) getLocalizedInputData(Entity inputEntity, Locale locale) getMasterData(EntityExplorerActionSelection selection) getStatistics(EntityExplorerActionSelection selection) booleanisEvaluationAllowed(EntityExplorerActionSelection selection) checks if any evaluation going upwards has been published.voidtriggerEvaluation(EntityExplorerActionSelection selection) start the evaluation of an evaluation entity by runningEvaluationTaskon itvoidupdateExams(EntityExplorerActionSelection selectedInput, AbstractInputType.ExamRecord[] examRecords) writeInboundRecord(EntityExplorerActionSelection selection, AbstractInputType.InboundInputDataRecord inboundInputDataRecord) writeInboundRecord(EntityExplorerActionSelection selection, AbstractInputType.InboundRatingRecord inboundRatingRecord)
-
Method Details
-
areInputsCompatibleForEdit
checks if a selection can be used together to input data, things compared are- number of ratings
- active exams
- input nodes
- Parameters:
selection- the selection- Returns:
- String the validation message, or null if valid
-
getFormInfo
InputEditActionService.FormInfo getFormInfo(EntityExplorerActionSelection selection) throws InterruptedException - Throws:
InterruptedException
-
getLocalizedFormInfo
InputEditActionService.FormInfo getLocalizedFormInfo(EntityExplorerActionSelection selectedInput, Locale locale) throws InterruptedException - Throws:
InterruptedException
-
getInputData
-
getLocalizedInputData
-
writeInboundRecord
InputEditActionService.ServerFeedback writeInboundRecord(EntityExplorerActionSelection selection, AbstractInputType.InboundInputDataRecord inboundInputDataRecord) throws InterruptedException - Throws:
InterruptedException
-
writeInboundRecord
InputEditActionService.ServerFeedback writeInboundRecord(EntityExplorerActionSelection selection, AbstractInputType.InboundRatingRecord inboundRatingRecord) -
getMasterData
-
getStatistics
-
getActiveExams
-
getExams
Returns allExams related to the selectedInputeven if they are defined as inactive by theirExam.FIELD_NRexceeding theInput'snumRatingsvalue. -
getExamsWithLimit
List<AbstractInputType.ExamRecord> getExamsWithLimit(EntityExplorerActionSelection selection, int limit) Returns allExams related to the selectedInputnot exceeding the given limit, even if they are defined as inactive by theirExam.FIELD_NRexceeding theInput'snumRatingsvalue. -
updateExams
void updateExams(EntityExplorerActionSelection selectedInput, AbstractInputType.ExamRecord[] examRecords) throws InterruptedException - Parameters:
selectedInput- the editedInputexamRecords- the records holding theExam's information- Throws:
InterruptedException- See Also:
-
finishInput
InputEditActionService.FinishedResponse finishInput(EntityExplorerActionSelection selectedInput) throws InterruptedException - Throws:
InterruptedException
-
getExamsEditorFormData
InputEditActionService.ExamEditorFormData getExamsEditorFormData(EntityExplorerActionSelection selection) -
isEvaluationAllowed
checks if any evaluation going upwards has been published. only published evaluations are allowed to be evaluated- Parameters:
selection- the selected entity- Returns:
- true if the evaluation should be allowed, meaning the button will be shown, false otherwise
-
triggerEvaluation
start the evaluation of an evaluation entity by runningEvaluationTaskon it- Parameters:
selection- the selected entity
-