public interface ReportService
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_TEMPLATE_CODE |
static java.lang.String |
MAIN_VIEW_NAME |
static java.lang.String |
NAME |
Modifier and Type | Method and Description |
---|---|
com.haulmont.yarg.reporting.ReportOutputDocument |
bulkPrint(Report report,
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> paramsList)
Prints the report several times for each parameter map in the paramsList.
|
com.haulmont.yarg.reporting.ReportOutputDocument |
bulkPrint(Report report,
java.lang.String templateCode,
ReportOutputType outputType,
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> paramsList)
Prints the report several times for each parameter map in the paramsList.
|
void |
cancelReportExecution(java.util.UUID userSessionId,
java.util.UUID reportId)
Cancel report execution
|
java.lang.Object |
convertFromString(java.lang.Class parameterClass,
java.lang.String paramValueStr) |
Report |
convertToReport(java.lang.String xml) |
java.lang.String |
convertToString(java.lang.Class parameterClass,
java.lang.Object paramValue) |
java.lang.String |
convertToString(Report report) |
Report |
copyReport(Report source) |
com.haulmont.cuba.core.entity.FileDescriptor |
createAndSaveReport(Report report,
java.util.Map<java.lang.String,java.lang.Object> params,
java.lang.String fileName)
Generates a report and saves its output to the file storage.
|
com.haulmont.cuba.core.entity.FileDescriptor |
createAndSaveReport(Report report,
ReportTemplate template,
java.util.Map<java.lang.String,java.lang.Object> params,
java.lang.String fileName)
Generates a report and saves its output to the file storage.
|
com.haulmont.cuba.core.entity.FileDescriptor |
createAndSaveReport(Report report,
java.lang.String templateCode,
java.util.Map<java.lang.String,java.lang.Object> params,
java.lang.String fileName)
Generates a report and saves its output to the file storage.
|
com.haulmont.yarg.reporting.ReportOutputDocument |
createReport(Report report,
java.util.Map<java.lang.String,java.lang.Object> params)
Generates a report.
|
com.haulmont.yarg.reporting.ReportOutputDocument |
createReport(Report report,
java.util.Map<java.lang.String,java.lang.Object> params,
ReportOutputType outputType)
Generates a report.
|
com.haulmont.yarg.reporting.ReportOutputDocument |
createReport(Report report,
ReportTemplate template,
java.util.Map<java.lang.String,java.lang.Object> params)
Generates a report.
|
com.haulmont.yarg.reporting.ReportOutputDocument |
createReport(Report report,
java.lang.String templateCode,
java.util.Map<java.lang.String,java.lang.Object> params)
Generates a report.
|
com.haulmont.yarg.reporting.ReportOutputDocument |
createReport(Report report,
java.lang.String templateCode,
java.util.Map<java.lang.String,java.lang.Object> params,
ReportOutputType outputType)
Generates a report.
|
java.util.Date |
currentDateOrTime(ParameterType parameterType)
Get current date
Date according to ParameterType value |
byte[] |
exportReports(java.util.Collection<Report> reports)
Exports all reports and their templates into one zip archive.
|
com.haulmont.chile.core.model.MetaClass |
findMetaClassByDataSetEntityAlias(java.lang.String alias,
DataSetType dataSetType,
java.util.List<ReportInputParameter> reportInputParameters) |
java.util.Collection<Report> |
importReports(byte[] zipBytes)
Imports reports from ZIP archive.
|
java.util.Collection<Report> |
importReports(byte[] zipBytes,
java.util.EnumSet<ReportImportOption> importOptions)
Imports reports from ZIP archive.
|
ReportImportResult |
importReportsWithResult(byte[] zipBytes,
java.util.EnumSet<ReportImportOption> importOptions)
Imports reports from ZIP archive.
|
java.util.List |
loadDataForParameterPrototype(ParameterPrototype prototype) |
Report |
storeReportEntity(Report report)
Saves Report entity to the database.
|
static final java.lang.String NAME
static final java.lang.String MAIN_VIEW_NAME
static final java.lang.String DEFAULT_TEMPLATE_CODE
Report storeReportEntity(Report report)
report
- report entity instancecom.haulmont.yarg.reporting.ReportOutputDocument createReport(Report report, java.util.Map<java.lang.String,java.lang.Object> params)
report
- entity instance defining the reportparams
- report parameterscom.haulmont.yarg.reporting.ReportOutputDocument createReport(Report report, java.util.Map<java.lang.String,java.lang.Object> params, ReportOutputType outputType)
report
- entity instance defining the reportparams
- report parametersoutputType
- desired report output typecom.haulmont.yarg.reporting.ReportOutputDocument createReport(Report report, java.lang.String templateCode, java.util.Map<java.lang.String,java.lang.Object> params)
report
- entity instance defining the reporttemplateCode
- code of a template to useparams
- report parameterscom.haulmont.yarg.reporting.ReportOutputDocument createReport(Report report, java.lang.String templateCode, java.util.Map<java.lang.String,java.lang.Object> params, ReportOutputType outputType)
report
- entity instance defining the reporttemplateCode
- code of a template to useparams
- report parametersoutputType
- desired report output typecom.haulmont.yarg.reporting.ReportOutputDocument createReport(Report report, ReportTemplate template, java.util.Map<java.lang.String,java.lang.Object> params)
report
- entity instance defining the reporttemplate
- template to useparams
- report parameterscom.haulmont.cuba.core.entity.FileDescriptor createAndSaveReport(Report report, java.util.Map<java.lang.String,java.lang.Object> params, java.lang.String fileName)
report
- entity instance defining the reportparams
- report parametersfileName
- output file namecom.haulmont.cuba.core.entity.FileDescriptor createAndSaveReport(Report report, java.lang.String templateCode, java.util.Map<java.lang.String,java.lang.Object> params, java.lang.String fileName)
report
- entity instance defining the reporttemplateCode
- code of a template to useparams
- report parametersfileName
- output file namecom.haulmont.cuba.core.entity.FileDescriptor createAndSaveReport(Report report, ReportTemplate template, java.util.Map<java.lang.String,java.lang.Object> params, java.lang.String fileName)
report
- entity instance defining the reporttemplate
- template to useparams
- report parametersfileName
- output file namebyte[] exportReports(java.util.Collection<Report> reports)
reports
- Collection of Report objects to be exported.java.util.Collection<Report> importReports(byte[] zipBytes)
zipBytes
- ZIP archive as a byte array.java.util.Collection<Report> importReports(byte[] zipBytes, java.util.EnumSet<ReportImportOption> importOptions)
zipBytes
- ZIP archive as a byte array.importOptions
- - report import optionsReportImportResult importReportsWithResult(byte[] zipBytes, java.util.EnumSet<ReportImportOption> importOptions)
zipBytes
- ZIP archive as a byte array.importOptions
- report - import optionsjava.lang.String convertToString(Report report)
Report convertToReport(java.lang.String xml)
com.haulmont.yarg.reporting.ReportOutputDocument bulkPrint(Report report, java.util.List<java.util.Map<java.lang.String,java.lang.Object>> paramsList)
com.haulmont.yarg.reporting.ReportOutputDocument bulkPrint(Report report, java.lang.String templateCode, ReportOutputType outputType, java.util.List<java.util.Map<java.lang.String,java.lang.Object>> paramsList)
com.haulmont.chile.core.model.MetaClass findMetaClassByDataSetEntityAlias(java.lang.String alias, DataSetType dataSetType, java.util.List<ReportInputParameter> reportInputParameters)
java.util.List loadDataForParameterPrototype(ParameterPrototype prototype)
java.lang.String convertToString(java.lang.Class parameterClass, java.lang.Object paramValue)
java.lang.Object convertFromString(java.lang.Class parameterClass, java.lang.String paramValueStr)
void cancelReportExecution(java.util.UUID userSessionId, java.util.UUID reportId)
userSessionId
- - user session that started report executionreportId
- - identifier of executed reportjava.util.Date currentDateOrTime(ParameterType parameterType)
Date
according to ParameterType
valueparameterType
- - ParameterType value.