Class MergedReportActionServiceImpl
java.lang.Object
ch.tocco.nice2.reporting.impl.action.MergedReportActionServiceImpl
- All Implemented Interfaces:
MergedReportActionService
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.reporting.impl.action.MergedReportActionService
MergedReportActionService.MergedReportDefinition
-
Constructor Summary
ConstructorDescriptionMergedReportActionServiceImpl
(Context context, CommandExecutor executor, TextResources textResources, ReportActionService reportService, OutputCenterService outputCenter, ReportManager reportManager, EntityExplorerActionSelectionService entityExplorerActionSelectionService, ReportActionLookupService reportActionLookupService, BusinessUnitManager businessUnitManager, CorporateDesignResolverService corporateDesignResolverService, MergeOutputJobsActionService mergeOutputJobsActionService) -
Method Summary
Modifier and TypeMethodDescriptiongenerateMergedReports
(GenerateReportConfig[] reportConfigs, String filename) Output_job entities are fetched by pk, converted to classes, merged, created as an entity, converted to a class and get their id read this is because of suboptimal design of the OutputCenterService and ReportActionService interfacesgetMergedReportConfig
(List<String> reportIds, EntityExplorerActionSelection selection) gathers the needed info to build the action form forMergedReportAction
-
Constructor Details
-
MergedReportActionServiceImpl
public MergedReportActionServiceImpl(Context context, CommandExecutor executor, TextResources textResources, ReportActionService reportService, OutputCenterService outputCenter, ReportManager reportManager, EntityExplorerActionSelectionService entityExplorerActionSelectionService, ReportActionLookupService reportActionLookupService, BusinessUnitManager businessUnitManager, CorporateDesignResolverService corporateDesignResolverService, MergeOutputJobsActionService mergeOutputJobsActionService)
-
-
Method Details
-
getMergedReportConfig
public Map<String,Object> getMergedReportConfig(List<String> reportIds, EntityExplorerActionSelection selection) Description copied from interface:MergedReportActionService
gathers the needed info to build the action form forMergedReportAction
- Specified by:
getMergedReportConfig
in interfaceMergedReportActionService
- Parameters:
reportIds
- the report ids to be displayedselection
- the selection to be used for report generation- Returns:
- the config to use to build the action
-
generateMergedReports
public String generateMergedReports(GenerateReportConfig[] reportConfigs, String filename) throws UnresolvableUriException, URISyntaxException, RebindException, InterruptedException, UriStoreException Output_job entities are fetched by pk, converted to classes, merged, created as an entity, converted to a class and get their id read this is because of suboptimal design of the OutputCenterService and ReportActionService interfaces- Specified by:
generateMergedReports
in interfaceMergedReportActionService
- Parameters:
reportConfigs
- the report configs to generatefilename
- the filename to use in the end- Returns:
- the id of the merged Output_job
- Throws:
UnresolvableUriException
URISyntaxException
RebindException
InterruptedException
UriStoreException
-