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 EvaluationActionService
EvaluationActionService.ColumnModel, EvaluationActionService.GridInfo, EvaluationActionService.MetaData -
Constructor Summary
ConstructorsConstructorDescriptionEvaluationActionServiceImpl(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 TypeMethodDescriptionvoidevaluate(EntityExplorerActionSelection selection) Deprecated.Evaluates a selection of evaluations.voidevaluateAndExport(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 asStringinstead of aEntityExplorerActionSelectionand it always expects aEvaluationpk.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 givenEvaluationentity to be displayed to the user.getMetaDataByKey(String evaluationPk) Deprecated.Behaves the same ways asEvaluationActionService.getMetaData(EntityExplorerActionSelection)but it loads theEvaluationfrom aStringpk instead of aEntityExplorerActionSelection.getParticipantTreeGridInfoByKey(String evaluationPk, boolean showPromotionStatus) Deprecated.Behaves the same way asEvaluationActionService.getTreeGridInfo(EntityExplorerActionSelection)but uses a pk asStringinstead of aEntityExplorerActionSelectionand it always expects aEvaluationpk.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:EvaluationActionServiceEvaluates 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.
- Specified by:
evaluatein interfaceEvaluationActionService- Parameters:
selection- the selection. Has to be ofEntityModelEvaluationorEvaluation_data- See Also:
-
evaluateAndExport
public void evaluateAndExport(EntityExplorerActionSelection selection, String language, String fileName, String evaluationExtensionName, boolean runInBackground) Deprecated.Description copied from interface:EvaluationActionServiceEvaluates 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.- Specified by:
evaluateAndExportin interfaceEvaluationActionService- Parameters:
selection- the selection. Has to be ofEntityModelEvaluationorEvaluation_data- See Also:
-
getMetaDataByKey
Deprecated.Description copied from interface:EvaluationActionServiceBehaves the same ways asEvaluationActionService.getMetaData(EntityExplorerActionSelection)but it loads theEvaluationfrom aStringpk instead of aEntityExplorerActionSelection.- Specified by:
getMetaDataByKeyin interfaceEvaluationActionService- Parameters:
evaluationPk- the pk of the selectedEvaluation- Returns:
- the collected meta data
-
getMetaData
Deprecated.Description copied from interface:EvaluationActionServiceCollects and returns the meta data for a single givenEvaluationentity to be displayed to the user.- Specified by:
getMetaDatain 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:
getLocalizedGridInfoin interfaceEvaluationActionService
-
getLocalizedGridInfo
public EvaluationActionService.GridInfo getLocalizedGridInfo(Entity entity, Locale locale, Set<String> uniquePksToIgnore, Set<String> uniquePksToIgnoreRecursively, @Nullable @Nullable AdditionalFieldRecordConfig config) Deprecated.- Specified by:
getLocalizedGridInfoin interfaceEvaluationActionService
-
getGridInfo
public EvaluationActionService.GridInfo getGridInfo(EntityExplorerActionSelection selection) throws InterruptedException, NoEntityToLoadException Deprecated.Description copied from interface:EvaluationActionServicePrepares 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.- Specified by:
getGridInfoin interfaceEvaluationActionService- Parameters:
selection- the selection. Has to be ofEntityModelEvaluationorEvaluation_data- Returns:
- the grid containing the participant's promotion information
- Throws:
InterruptedExceptionNoEntityToLoadException- See Also:
-
getTreeGridInfo
Deprecated.Description copied from interface:EvaluationActionServicePrepares 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.- Specified by:
getTreeGridInfoin interfaceEvaluationActionService- Parameters:
selection- the selection. Has to be ofEntityModelEvaluationorEvaluation_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:EvaluationActionServiceBehaves the same way asEvaluationActionService.getTreeGridInfo(EntityExplorerActionSelection)but uses a pk asStringinstead of aEntityExplorerActionSelectionand it always expects aEvaluationpk. An additional column showing the max points is added.- Specified by:
getLecturerTreeGridInfoByKeyin interfaceEvaluationActionService- 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
-
getParticipantTreeGridInfoByKey
public EvaluationTreeGridInfo getParticipantTreeGridInfoByKey(String evaluationPk, boolean showPromotionStatus) Deprecated.Description copied from interface:EvaluationActionServiceBehaves the same way asEvaluationActionService.getTreeGridInfo(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.- Specified by:
getParticipantTreeGridInfoByKeyin interfaceEvaluationActionService- 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
-