Interface EvaluationActionService
- All Known Implementing Classes:
EvaluationActionServiceImpl
public interface EvaluationActionService
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic classA grid ofGridRecords to handle all promotion data about participants affected by anEvaluationstatic classMeta data class holding all information of anEvaluationresult to be displayed to the user. -
Method Summary
Modifier and TypeMethodDescriptionvoidevaluate(EntityExplorerActionSelection selection) Evaluates a selection of evaluations.voidevaluateAndExport(EntityExplorerActionSelection selection, String language, String fileName, String evaluationExtensionName, boolean runInBackground) Evaluates a selection of evaluations in the background.getGridInfo(EntityExplorerActionSelection selection) Prepares and returns a grid with all promotion data of the participants affected by the providedEvaluation.getLecturerTreeGridInfoByKey(String evaluationPk, boolean showPromotionStatus) Behaves the same way asgetTreeGridInfo(EntityExplorerActionSelection)but uses a pk asStringinstead of aEntityExplorerActionSelectionand it always expects aEvaluationpk.getLocalizedGridInfo(Entity entity, Locale locale, @Nullable AdditionalFieldRecordConfig config) getLocalizedGridInfo(Entity entity, Locale locale, Set<String> uniquePksToIgnore, Set<String> recursivePksToIgnore, @Nullable AdditionalFieldRecordConfig config) getMetaData(EntityExplorerActionSelection selection) Collects and returns the meta data for a single givenEvaluationentity to be displayed to the user.getMetaDataByKey(String evaluationPk) Behaves the same ways asgetMetaData(EntityExplorerActionSelection)but it loads theEvaluationfrom aStringpk instead of aEntityExplorerActionSelection.getParticipantTreeGridInfoByKey(String evaluationPk, boolean showPromotionStatus) Behaves the same way asgetTreeGridInfo(EntityExplorerActionSelection)but uses a pk asStringinstead of aEntityExplorerActionSelectionand it always expects aEvaluationpk.getTreeGridInfo(EntityExplorerActionSelection selection) Prepares and returns all data needed to build a TreeGrid in the UI with all promotion data of the participants affected by the providedEvaluation.
-
Method Details
-
evaluate
Evaluates a selection of evaluations. The passed selection can either consist ofEvaluationentities orEvaluation_dataentities being related to anEvaluation.The result will be handled by the triggered tasks instead of being returned.
- Parameters:
selection- the selection. Has to be ofEntityModelEvaluationorEvaluation_data- Throws:
InterruptedException- See Also:
-
getLocalizedGridInfo
EvaluationActionService.GridInfo getLocalizedGridInfo(Entity entity, Locale locale, @Nullable @Nullable AdditionalFieldRecordConfig config) throws InterruptedException - Throws:
InterruptedException
-
getGridInfo
EvaluationActionService.GridInfo getGridInfo(EntityExplorerActionSelection selection) throws InterruptedException, NoEntityToLoadException Prepares and returns a grid with all promotion data of the participants affected by the providedEvaluation. The passed selection can either consist ofEvaluationentities orEvaluation_dataentities being related to anEvaluation.- Parameters:
selection- the selection. Has to be ofEntityModelEvaluationorEvaluation_data- Returns:
- the grid containing the participant's promotion information
- Throws:
InterruptedExceptionNoEntityToLoadException- See Also:
-
getTreeGridInfo
EvaluationTreeGridInfo getTreeGridInfo(EntityExplorerActionSelection selection) throws InterruptedException, NoEntityToLoadException Prepares and returns all data needed to build a TreeGrid in the UI with all promotion data of the participants affected by the providedEvaluation. The passed selection can either consist ofEvaluationentities orEvaluation_dataentities being related to anEvaluation.- Parameters:
selection- the selection. Has to be ofEntityModelEvaluationorEvaluation_data- Returns:
- the grid containing the participant's promotion information
- Throws:
InterruptedExceptionNoEntityToLoadException- See Also:
-
getParticipantTreeGridInfoByKey
EvaluationTreeGridInfo getParticipantTreeGridInfoByKey(String evaluationPk, boolean showPromotionStatus) throws NoEntityToLoadException, InterruptedException Behaves the same way asgetTreeGridInfo(EntityExplorerActionSelection)but uses a pk asStringinstead of aEntityExplorerActionSelectionand it always expects aEvaluationpk. Only the data of the current user is displayed and an additional column with the max points is added.- Parameters:
evaluationPk- the pk of the selectedEvaluationshowPromotionStatus- configures whether the promotion status row should be included- Returns:
- the grid containing the participant's promotion information
- Throws:
NoEntityToLoadExceptionInterruptedException
-
getLecturerTreeGridInfoByKey
EvaluationTreeGridInfo getLecturerTreeGridInfoByKey(String evaluationPk, boolean showPromotionStatus) throws NoEntityToLoadException, InterruptedException Behaves the same way asgetTreeGridInfo(EntityExplorerActionSelection)but uses a pk asStringinstead of aEntityExplorerActionSelectionand it always expects aEvaluationpk. An additional column showing the max points is added.- Parameters:
evaluationPk- the pk of the selectedEvaluationshowPromotionStatus- configures whether the promotion status row should be included- Returns:
- the grid containing the participant's promotion information
- Throws:
NoEntityToLoadExceptionInterruptedException
-
getLocalizedGridInfo
EvaluationActionService.GridInfo getLocalizedGridInfo(Entity entity, Locale locale, Set<String> uniquePksToIgnore, Set<String> recursivePksToIgnore, @Nullable @Nullable AdditionalFieldRecordConfig config) throws InterruptedException - Throws:
InterruptedException
-
getMetaData
Collects and returns the meta data for a single givenEvaluationentity to be displayed to the user.- Parameters:
selection- the selectedEvaluation. Must not have more than one entry.- Returns:
- the collected meta data
- See Also:
-
evaluateAndExport
void evaluateAndExport(EntityExplorerActionSelection selection, String language, String fileName, String evaluationExtensionName, boolean runInBackground) Evaluates a selection of evaluations in the background. The passed selection can either consist ofEvaluationentities orEvaluation_dataentities being related to anEvaluation.After the evaluation, the
ExcelExportActionServiceis triggered, in the background as well. The default displays are used as filenames for the exports.- Parameters:
selection- the selection. Has to be ofEntityModelEvaluationorEvaluation_data- See Also:
-
getMetaDataByKey
Behaves the same ways asgetMetaData(EntityExplorerActionSelection)but it loads theEvaluationfrom aStringpk instead of aEntityExplorerActionSelection.- Parameters:
evaluationPk- the pk of the selectedEvaluation- Returns:
- the collected meta data
-