Class EvaluationActionServiceImpl
java.lang.Object
ch.tocco.nice2.optional.qualification.impl.action.EvaluationActionServiceImpl
- All Implemented Interfaces:
EvaluationActionService
@Deprecated
public class EvaluationActionServiceImpl
extends Object
implements EvaluationActionService
Deprecated.
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.optional.qualification.impl.action.EvaluationActionService
EvaluationActionService.ColumnModel, EvaluationActionService.GridInfo, EvaluationActionService.MetaData
-
Constructor Summary
ConstructorDescriptionEvaluationActionServiceImpl
(QualificationService qualificationService, Context context, EntityExplorerActionSelectionService selectionService, TextResources textResources, SecurityManager securityManager, L10N l10N, TaskSchedulingService taskSchedulingService, BusinessUnitManager businessUnitManager, PrincipalService principalService, QualificationEvaluationService qualificationEvaluationService) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoid
evaluate
(EntityExplorerActionSelection selection) Deprecated.Evaluates a selection of evaluations.void
evaluateAndExport
(EntityExplorerActionSelection selection, String language, String fileName, String evaluationExtensionName, boolean runInBackground) Deprecated.Evaluates a selection of evaluations in the background.getGridInfo
(EntityExplorerActionSelection selection) Deprecated.Prepares and returns a grid with all promotion data of the participants affected by the providedEvaluation
.getLecturerTreeGridInfoByKey
(String evaluationPk, boolean showPromotionStatus) Deprecated.Behaves the same way asEvaluationActionService.getTreeGridInfo(EntityExplorerActionSelection)
but uses a pk asString
instead of aEntityExplorerActionSelection
and it always expects aEvaluation
pk.getLocalizedGridInfo
(Entity entity, Locale locale, @Nullable AdditionalFieldRecordConfig config) Deprecated.getLocalizedGridInfo
(Entity entity, Locale locale, Set<String> uniquePksToIgnore, Set<String> uniquePksToIgnoreRecursively, @Nullable AdditionalFieldRecordConfig config) Deprecated.getMetaData
(EntityExplorerActionSelection selection) Deprecated.Collects and returns the meta data for a single givenEvaluation
entity to be displayed to the user.getMetaDataByKey
(String evaluationPk) Deprecated.Behaves the same ways asEvaluationActionService.getMetaData(EntityExplorerActionSelection)
but it loads theEvaluation
from aString
pk instead of aEntityExplorerActionSelection
.getParticipantTreeGridInfoByKey
(String evaluationPk, boolean showPromotionStatus) Deprecated.Behaves the same way asEvaluationActionService.getTreeGridInfo(EntityExplorerActionSelection)
but uses a pk asString
instead of aEntityExplorerActionSelection
and it always expects aEvaluation
pk.getTreeGridInfo
(EntityExplorerActionSelection selection) Deprecated.Prepares and returns all data needed to build a TreeGrid in the UI with all promotion data of the participants affected by the providedEvaluation
.
-
Constructor Details
-
EvaluationActionServiceImpl
public EvaluationActionServiceImpl(QualificationService qualificationService, Context context, EntityExplorerActionSelectionService selectionService, TextResources textResources, SecurityManager securityManager, L10N l10N, @Lazy TaskSchedulingService taskSchedulingService, BusinessUnitManager businessUnitManager, PrincipalService principalService, QualificationEvaluationService qualificationEvaluationService) Deprecated.
-
-
Method Details
-
evaluate
Deprecated.Description copied from interface:EvaluationActionService
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.
- Specified by:
evaluate
in interfaceEvaluationActionService
- Parameters:
selection
- the selection. Has to be ofEntityModel
Evaluation
orEvaluation_data
- See Also:
-
evaluateAndExport
public void evaluateAndExport(EntityExplorerActionSelection selection, String language, String fileName, String evaluationExtensionName, boolean runInBackground) Deprecated.Description copied from interface:EvaluationActionService
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.- Specified by:
evaluateAndExport
in interfaceEvaluationActionService
- Parameters:
selection
- the selection. Has to be ofEntityModel
Evaluation
orEvaluation_data
- See Also:
-
getMetaDataByKey
Deprecated.Description copied from interface:EvaluationActionService
Behaves the same ways asEvaluationActionService.getMetaData(EntityExplorerActionSelection)
but it loads theEvaluation
from aString
pk instead of aEntityExplorerActionSelection
.- Specified by:
getMetaDataByKey
in interfaceEvaluationActionService
- Parameters:
evaluationPk
- the pk of the selectedEvaluation
- Returns:
- the collected meta data
-
getMetaData
Deprecated.Description copied from interface:EvaluationActionService
Collects and returns the meta data for a single givenEvaluation
entity to be displayed to the user.- Specified by:
getMetaData
in interfaceEvaluationActionService
- Parameters:
selection
- the selectedEvaluation
. Must not have more than one entry.- Returns:
- the collected meta data
- See Also:
-
getLocalizedGridInfo
public EvaluationActionService.GridInfo getLocalizedGridInfo(Entity entity, Locale locale, @Nullable @Nullable AdditionalFieldRecordConfig config) Deprecated.- Specified by:
getLocalizedGridInfo
in interfaceEvaluationActionService
-
getLocalizedGridInfo
public EvaluationActionService.GridInfo getLocalizedGridInfo(Entity entity, Locale locale, Set<String> uniquePksToIgnore, Set<String> uniquePksToIgnoreRecursively, @Nullable @Nullable AdditionalFieldRecordConfig config) Deprecated.- Specified by:
getLocalizedGridInfo
in interfaceEvaluationActionService
-
getGridInfo
public EvaluationActionService.GridInfo getGridInfo(EntityExplorerActionSelection selection) throws InterruptedException, NoEntityToLoadException Deprecated.Description copied from interface:EvaluationActionService
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
.- Specified by:
getGridInfo
in interfaceEvaluationActionService
- 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
Deprecated.Description copied from interface:EvaluationActionService
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
.- Specified by:
getTreeGridInfo
in interfaceEvaluationActionService
- Parameters:
selection
- the selection. Has to be ofEntityModel
Evaluation
orEvaluation_data
- Returns:
- the grid containing the participant's promotion information
- See Also:
-
getLecturerTreeGridInfoByKey
public EvaluationTreeGridInfo getLecturerTreeGridInfoByKey(String evaluationPk, boolean showPromotionStatus) Deprecated.Description copied from interface:EvaluationActionService
Behaves the same way asEvaluationActionService.getTreeGridInfo(EntityExplorerActionSelection)
but uses a pk asString
instead of aEntityExplorerActionSelection
and it always expects aEvaluation
pk. An additional column showing the max points is added.- Specified by:
getLecturerTreeGridInfoByKey
in interfaceEvaluationActionService
- 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
-
getParticipantTreeGridInfoByKey
public EvaluationTreeGridInfo getParticipantTreeGridInfoByKey(String evaluationPk, boolean showPromotionStatus) Deprecated.Description copied from interface:EvaluationActionService
Behaves the same way asEvaluationActionService.getTreeGridInfo(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.- Specified by:
getParticipantTreeGridInfoByKey
in interfaceEvaluationActionService
- 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
-