Interface EvaluationActionService
- All Known Implementing Classes:
EvaluationActionServiceImpl
public interface EvaluationActionService
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
static class
A grid ofGridRecord
s to handle all promotion data about participants affected by anEvaluation
static class
Meta data class holding all information of anEvaluation
result to be displayed to the user. -
Method Summary
Modifier and TypeMethodDescriptionvoid
evaluate
(EntityExplorerActionSelection selection) Evaluates a selection of evaluations.void
evaluateAndExport
(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 asString
instead of aEntityExplorerActionSelection
and it always expects aEvaluation
pk.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 givenEvaluation
entity to be displayed to the user.getMetaDataByKey
(String evaluationPk) Behaves the same ways asgetMetaData(EntityExplorerActionSelection)
but it loads theEvaluation
from aString
pk instead of aEntityExplorerActionSelection
.getParticipantTreeGridInfoByKey
(String evaluationPk, boolean showPromotionStatus) Behaves the same way asgetTreeGridInfo(EntityExplorerActionSelection)
but uses a pk asString
instead of aEntityExplorerActionSelection
and it always expects aEvaluation
pk.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 ofEvaluation
entities orEvaluation_data
entities being related to anEvaluation
.The result will be handled by the triggered tasks instead of being returned.
- Parameters:
selection
- the selection. Has to be ofEntityModel
Evaluation
orEvaluation_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 ofEvaluation
entities orEvaluation_data
entities being related to anEvaluation
.- Parameters:
selection
- the selection. Has to be ofEntityModel
Evaluation
orEvaluation_data
- Returns:
- the grid containing the participant's promotion information
- Throws:
InterruptedException
NoEntityToLoadException
- 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 ofEvaluation
entities orEvaluation_data
entities being related to anEvaluation
.- Parameters:
selection
- the selection. Has to be ofEntityModel
Evaluation
orEvaluation_data
- Returns:
- the grid containing the participant's promotion information
- Throws:
InterruptedException
NoEntityToLoadException
- See Also:
-
getParticipantTreeGridInfoByKey
EvaluationTreeGridInfo getParticipantTreeGridInfoByKey(String evaluationPk, boolean showPromotionStatus) throws NoEntityToLoadException, InterruptedException Behaves the same way asgetTreeGridInfo(EntityExplorerActionSelection)
but uses a pk asString
instead of aEntityExplorerActionSelection
and it always expects aEvaluation
pk. 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 selectedEvaluation
showPromotionStatus
- configures whether the promotion status row should be included- Returns:
- the grid containing the participant's promotion information
- Throws:
NoEntityToLoadException
InterruptedException
-
getLecturerTreeGridInfoByKey
EvaluationTreeGridInfo getLecturerTreeGridInfoByKey(String evaluationPk, boolean showPromotionStatus) throws NoEntityToLoadException, InterruptedException Behaves the same way asgetTreeGridInfo(EntityExplorerActionSelection)
but uses a pk asString
instead of aEntityExplorerActionSelection
and it always expects aEvaluation
pk. An additional column showing the max points is added.- Parameters:
evaluationPk
- the pk of the selectedEvaluation
showPromotionStatus
- configures whether the promotion status row should be included- Returns:
- the grid containing the participant's promotion information
- Throws:
NoEntityToLoadException
InterruptedException
-
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 givenEvaluation
entity 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 ofEvaluation
entities orEvaluation_data
entities being related to anEvaluation
.After the evaluation, the
ExcelExportActionService
is triggered, in the background as well. The default displays are used as filenames for the exports.- Parameters:
selection
- the selection. Has to be ofEntityModel
Evaluation
orEvaluation_data
- See Also:
-
getMetaDataByKey
Behaves the same ways asgetMetaData(EntityExplorerActionSelection)
but it loads theEvaluation
from aString
pk instead of aEntityExplorerActionSelection
.- Parameters:
evaluationPk
- the pk of the selectedEvaluation
- Returns:
- the collected meta data
-