public interface DatasinkService
Modifier and Type | Method and Description |
---|---|
void |
exportFileIntoDatasink(AbstractFileServerNodeDto fileDto,
DatasinkDefinitionDto datasinkDto,
java.lang.String filename,
java.lang.String folder,
boolean compressed) |
void |
exportIntoDatasink(CompiledReport cReport,
java.lang.String name,
boolean compress,
DatasinkDefinition datasink,
DatasinkConfiguration config) |
void |
exportIntoDatasink(java.lang.Object report,
DatasinkDefinition datasink,
DatasinkConfiguration config)
Sends a data to the specified datasink, defined in a given
DatasinkDefinition datasink. |
void |
exportIntoDatasink(java.lang.Object report,
DatasinkDefinition datasink,
java.lang.String fileEnding)
Sends a data to the specified datasink, defined in a given
DatasinkDefinition datasink. |
void |
exportIntoDatasink(java.lang.Object report,
User user,
DatasinkDefinition datasink,
DatasinkConfiguration config)
Sends a data to the specified datasink, defined in a given
DatasinkDefinition datasink. |
void |
exportIntoDatasink(ReportExecuteJob rJob,
boolean compress,
DatasinkDefinition datasink,
DatasinkConfiguration config) |
java.util.Optional<? extends DatasinkDefinition> |
getDefaultDatasink(BasicDatasinkService basicDatasinkService) |
java.lang.String |
getDefaultFolder(FolderedDatasink datasink) |
java.util.Map<StorageType,java.lang.Boolean> |
getEnabledConfigs(BasicDatasinkService datasinkService)
Summarizes
#isEnabled(DatasinkDefinition)) and
#isSchedulingEnabled(DatasinkDefinition)) in a map. |
java.lang.String |
getFilenameForDatasink(ReportExecuteJob rJob,
boolean compress,
java.lang.String filename) |
java.lang.String |
getFilenameForDatasink(java.lang.String name,
CompiledReport cReport,
boolean compress) |
boolean |
isEnabled(BasicDatasinkService datasinkService)
Returns the current configuration value of datasink enabling.
|
boolean |
isSchedulingEnabled(BasicDatasinkService datasinkService)
Returns the current configuration value of scheduling enabling.
|
void |
testDatasink(DatasinkDefinition datasinkDefinition,
DatasinkConfiguration config)
Issues a datasink test request by creating a simple text file and sending it
to the specified directory in the specified datasink.
|
java.lang.String getDefaultFolder(FolderedDatasink datasink)
boolean isEnabled(BasicDatasinkService datasinkService)
datasinkService
- the datasink serviceboolean isSchedulingEnabled(BasicDatasinkService datasinkService)
datasinkService
- the datasink servicejava.util.Map<StorageType,java.lang.Boolean> getEnabledConfigs(BasicDatasinkService datasinkService)
#isEnabled(DatasinkDefinition))
and
#isSchedulingEnabled(DatasinkDefinition))
in a map.datasinkService
- the datasink service#isEnabled(DatasinkDefinition))
and
#isSchedulingEnabled(DatasinkDefinition))
void testDatasink(DatasinkDefinition datasinkDefinition, DatasinkConfiguration config) throws DatasinkExportException
datasinkDefinition
- the DatasinkDefinition
to testconfig
- the datasink export configurationDatasinkExportException
- if an error occurs during datasink exportvoid exportIntoDatasink(java.lang.Object report, User user, DatasinkDefinition datasink, DatasinkConfiguration config) throws DatasinkExportException
DatasinkDefinition
datasink.report
- the data to send. May be a String, a byte array or a
TableDBDataSource
user
- the User
datasink
- the DatasinkDefinition
to sendconfig
- configuration of the exportDatasinkExportException
- if an error occurs during datasink exportvoid exportIntoDatasink(ReportExecuteJob rJob, boolean compress, DatasinkDefinition datasink, DatasinkConfiguration config) throws ActionExecutionException
ActionExecutionException
java.lang.String getFilenameForDatasink(ReportExecuteJob rJob, boolean compress, java.lang.String filename)
java.lang.String getFilenameForDatasink(java.lang.String name, CompiledReport cReport, boolean compress)
void exportIntoDatasink(CompiledReport cReport, java.lang.String name, boolean compress, DatasinkDefinition datasink, DatasinkConfiguration config) throws DatasinkExportException
DatasinkExportException
void exportIntoDatasink(java.lang.Object report, DatasinkDefinition datasink, DatasinkConfiguration config) throws DatasinkExportException
DatasinkDefinition
datasink.report
- the data to send. May be a String, a byte array or a
TableDBDataSource
datasink
- the DatasinkDefinition
to sendconfig
- configuration of the exportDatasinkExportException
- if an error occurs during datasink exportvoid exportIntoDatasink(java.lang.Object report, DatasinkDefinition datasink, java.lang.String fileEnding) throws DatasinkExportException
DatasinkDefinition
datasink. Uses datasink default configuration.report
- the data to send. May be a String, a byte array or a
TableDBDataSource
datasink
- the DatasinkDefinition
to sendfileEnding
- the ending of the file to export, e.g. ".txt" for text
filesDatasinkExportException
- if an error occurs during datasink exportjava.util.Optional<? extends DatasinkDefinition> getDefaultDatasink(BasicDatasinkService basicDatasinkService)
void exportFileIntoDatasink(AbstractFileServerNodeDto fileDto, DatasinkDefinitionDto datasinkDto, java.lang.String filename, java.lang.String folder, boolean compressed) throws ServerCallFailedException
ServerCallFailedException