public class ReportmActionPack extends Object
com.cultofbits.integrationm.service.properties
file
with the reportm
key;
for example:
action.names=...,<reportm-ap-name> action.<reportm-ap-name>=reportm action.<reportm-ap-name>.reportm.base-url=<url form ReportM service> (Optional. Defaults to "http://localhost:40580" )
Recomended reportm-ap-name: reportm
In case <reportm-ap-name> is reportm, in the IntegrationM scripts, you can refer to it only by `reportm.generate(...)` otherwise you have to refer to it using `actionpacks.<reportm-ap-name>.generate(...)`
Constructor and Description |
---|
ReportmActionPack(String url,
com.cultofbits.integrationm.service.internal.security.UserCookiesGenerator userCookiesGenerator) |
Modifier and Type | Method and Description |
---|---|
ReportmResponse |
generate(String reportTemplatePath)
Generates a report based on the specified report template path.
|
ReportmResponse |
generate(String reportTemplatePath,
Map<String,Object> arguments)
Generates a report based on the specified report template path, with the provided arguments.
|
ReportmResponse |
generate(String reportTemplatePath,
Map<String,Object> arguments,
String runAsUser)
Generates a report based on the specified report template path, with the provided arguments,
and optionally runs the operation as a different user.
|
ReportmResponse |
generate(String reportTemplatePath,
String runAsUser)
Generates a report based on the specified report template path,
and optionally runs the operation as a different user.
|
AsyncReportmResponse |
generateAsync(String reportTemplatePath,
Map<String,Object> arguments,
Map<String,String> extracts,
String callbackUri)
Generates a report asynchronously based on the specified report template path and arguments, and invokes
the specified callback URI after the report is generated.
|
AsyncReportmResponse |
generateAsync(String reportTemplatePath,
Map<String,Object> arguments,
Map<String,String> extracts,
String callbackUri,
String runAsUser)
Generates a report asynchronously based on the specified report template path and arguments, and invokes
the specified callback URI after the report is generated.
|
AsyncReportmResponse |
generateAsync(String reportTemplatePath,
Map<String,Object> arguments,
String callbackUri)
Generates a report asynchronously based on the specified report template path and arguments, and invokes
the specified callback URI after the report is generated.
|
AsyncReportmResponse |
generateAsync(String reportTemplatePath,
String callbackUri)
Generates a report asynchronously based on the specified report template path and invokes the specified callback URI
after the report is generated.
|
public ReportmActionPack(String url, com.cultofbits.integrationm.service.internal.security.UserCookiesGenerator userCookiesGenerator)
public ReportmResponse generate(@NotNull String reportTemplatePath)
reportTemplatePath
- the path of the report template to be used for generating the report.ReportmResponse
object containing the result of the report generation operation. The response
includes information about the success or failure of the operation, any error messages,
and the generated report data if the operation was successful.IllegalArgumentException
- if report template path is not providedpublic ReportmResponse generate(@NotNull String reportTemplatePath, Map<String,Object> arguments)
reportTemplatePath
- the path of the report template to be used for generating the report.arguments
- a Map containing the arguments to be passed to the report generation process.ReportmResponse
object containing the result of the report generation operation. The response
includes information about the success or failure of the operation, any error messages,
and the generated report data if the operation was successful.IllegalArgumentException
- if report template path is not providedpublic ReportmResponse generate(@NotNull String reportTemplatePath, Map<String,Object> arguments, String runAsUser)
reportTemplatePath
- the path of the report template to be used for generating the report.arguments
- a Map containing the arguments to be passed to the report generation process.runAsUser
- the username of the user running the operation, or null if not applicable.ReportmResponse
object containing the result of the report generation operation. The response
includes information about the success or failure of the operation, any error messages,
and the generated report data if the operation was successful.IllegalArgumentException
- if report template path is not providedpublic ReportmResponse generate(@NotNull String reportTemplatePath, String runAsUser)
reportTemplatePath
- the path of the report template to be used for generating the report.runAsUser
- the username of the user running the operation, or null if not applicable.ReportmResponse
object containing the result of the report generation operation. The response
includes information about the success or failure of the operation, any error messages,
and the generated report data if the operation was successful.IllegalArgumentException
- if report template path is not providedpublic AsyncReportmResponse generateAsync(@NotNull String reportTemplatePath, Map<String,Object> arguments, Map<String,String> extracts, @NotNull String callbackUri)
reportTemplatePath
- the path of the report template to be used for generating the report.arguments
- a Map containing the arguments to be passed to the report generation process.extracts
- A Map specifying the values to be extracted after the report has been generated.
The keys represent the name of the extract name and the value a cell address.callbackUri
- the URI to be invoked after the report is generated.IllegalArgumentException
- if report template path is not providedIllegalArgumentException
- if callback uri is not providedpublic AsyncReportmResponse generateAsync(@NotNull String reportTemplatePath, Map<String,Object> arguments, Map<String,String> extracts, @NotNull String callbackUri, String runAsUser)
reportTemplatePath
- the path of the report template to be used for generating the report.arguments
- a Map containing the arguments to be passed to the report generation process.extracts
- A Map specifying the values to be extracted after the report has been generated.
The keys represent the name of the extract name and the value a cell address.callbackUri
- the URI to be invoked after the report is generated.runAsUser
- the username of the user running the operation, or null if not applicable.IllegalArgumentException
- if report template path is not providedIllegalArgumentException
- if callback uri is not providedpublic AsyncReportmResponse generateAsync(@NotNull String reportTemplatePath, Map<String,Object> arguments, @NotNull String callbackUri)
reportTemplatePath
- the path of the report template to be used for generating the report.arguments
- a Map containing the arguments to be passed to the report generation process.callbackUri
- the URI to be invoked after the report is generated.IllegalArgumentException
- if report template path is not providedIllegalArgumentException
- if callback uri is not providedpublic AsyncReportmResponse generateAsync(@NotNull String reportTemplatePath, @NotNull String callbackUri)
reportTemplatePath
- the path of the report template to be used for generating the report.callbackUri
- the URI to be invoked after the report is generated.IllegalArgumentException
- if report template path is not providedIllegalArgumentException
- if callback uri is not providedCopyright © 2021 Cult Of Bits, lda