Class DebitorExportActionServiceImpl
java.lang.Object
ch.tocco.nice2.optional.finance.impl.service.debitorexport.DebitorExportActionServiceImpl
- All Implemented Interfaces:
DebitorExportActionService
-
Constructor Summary
ConstructorDescriptionDebitorExportActionServiceImpl
(EntityExplorerActionSelectionService selectionService, OutputCenterService outputCenterService, TextResources textResources) -
Method Summary
Modifier and TypeMethodDescriptionboolean
isExportable
(EntityExplorerActionSelection selection) checks if the selected Debitor_export is exportable, i.e.void
setExporters
(List<DebitorExporter> exporters) startExport
(EntityExplorerActionSelection selection, String type) starts the debitor export for a given type, by calling aDebitorExporter
-
Constructor Details
-
DebitorExportActionServiceImpl
public DebitorExportActionServiceImpl(EntityExplorerActionSelectionService selectionService, OutputCenterService outputCenterService, TextResources textResources)
-
-
Method Details
-
isExportable
Description copied from interface:DebitorExportActionService
checks if the selected Debitor_export is exportable, i.e. has vouchers- Specified by:
isExportable
in interfaceDebitorExportActionService
- Parameters:
selection
- the Debitor_export selection- Returns:
- true if vouchers exist
- Throws:
RpcExecutionException
-
startExport
public String startExport(EntityExplorerActionSelection selection, String type) throws RpcExecutionException, DebitorExportException Description copied from interface:DebitorExportActionService
starts the debitor export for a given type, by calling aDebitorExporter
- Specified by:
startExport
in interfaceDebitorExportActionService
- Parameters:
selection
- the Debitor_export selectiontype
- the type of export to start- Returns:
- the pk of the generated file as a string
- Throws:
DebitorExportException
- when a checked exception is thrown in aDebitorExporter
RpcExecutionException
-
setExporters
-