@Service(value="report_ReportService") public class ReportServiceBean extends java.lang.Object implements ReportService
DEFAULT_TEMPLATE_CODE, MAIN_VIEW_NAME, NAME
Constructor and Description |
---|
ReportServiceBean() |
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) |
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) |
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) |
com.haulmont.yarg.reporting.ReportOutputDocument |
createReport(Report report,
java.util.Map<java.lang.String,java.lang.Object> params) |
com.haulmont.yarg.reporting.ReportOutputDocument |
createReport(Report report,
java.util.Map<java.lang.String,java.lang.Object> params,
ReportOutputType outputType) |
com.haulmont.yarg.reporting.ReportOutputDocument |
createReport(Report report,
ReportTemplate template,
java.util.Map<java.lang.String,java.lang.Object> params) |
com.haulmont.yarg.reporting.ReportOutputDocument |
createReport(Report report,
java.lang.String templateCode,
java.util.Map<java.lang.String,java.lang.Object> params) |
com.haulmont.yarg.reporting.ReportOutputDocument |
createReport(Report report,
java.lang.String templateCode,
java.util.Map<java.lang.String,java.lang.Object> params,
ReportOutputType outputType) |
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) |
public Report storeReportEntity(Report report)
storeReportEntity
in interface ReportService
public com.haulmont.yarg.reporting.ReportOutputDocument createReport(Report report, java.util.Map<java.lang.String,java.lang.Object> params)
createReport
in interface ReportService
public com.haulmont.yarg.reporting.ReportOutputDocument createReport(Report report, java.util.Map<java.lang.String,java.lang.Object> params, ReportOutputType outputType)
createReport
in interface ReportService
public com.haulmont.yarg.reporting.ReportOutputDocument createReport(Report report, java.lang.String templateCode, java.util.Map<java.lang.String,java.lang.Object> params)
createReport
in interface ReportService
public com.haulmont.yarg.reporting.ReportOutputDocument createReport(Report report, java.lang.String templateCode, java.util.Map<java.lang.String,java.lang.Object> params, ReportOutputType outputType)
createReport
in interface ReportService
public com.haulmont.yarg.reporting.ReportOutputDocument createReport(Report report, ReportTemplate template, java.util.Map<java.lang.String,java.lang.Object> params)
createReport
in interface ReportService
public com.haulmont.cuba.core.entity.FileDescriptor createAndSaveReport(Report report, java.util.Map<java.lang.String,java.lang.Object> params, java.lang.String fileName)
createAndSaveReport
in interface ReportService
public 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)
createAndSaveReport
in interface ReportService
public 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)
createAndSaveReport
in interface ReportService
public byte[] exportReports(java.util.Collection<Report> reports)
ReportService
exportReports
in interface ReportService
reports
- Collection of Report objects to be exported.public java.util.Collection<Report> importReports(byte[] zipBytes)
ReportService
importReports
in interface ReportService
zipBytes
- ZIP archive as a byte array.public java.util.Collection<Report> importReports(byte[] zipBytes, java.util.EnumSet<ReportImportOption> importOptions)
ReportService
importReports
in interface ReportService
zipBytes
- ZIP archive as a byte array.importOptions
- - report import optionspublic ReportImportResult importReportsWithResult(byte[] zipBytes, java.util.EnumSet<ReportImportOption> importOptions)
ReportService
importReportsWithResult
in interface ReportService
zipBytes
- ZIP archive as a byte array.importOptions
- report - import optionspublic java.lang.String convertToString(Report report)
convertToString
in interface ReportService
public Report convertToReport(java.lang.String xml)
convertToReport
in interface ReportService
public Report copyReport(Report source)
copyReport
in interface ReportService
public com.haulmont.yarg.reporting.ReportOutputDocument bulkPrint(Report report, java.util.List<java.util.Map<java.lang.String,java.lang.Object>> paramsList)
ReportService
bulkPrint
in interface ReportService
public 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)
ReportService
bulkPrint
in interface ReportService
public com.haulmont.chile.core.model.MetaClass findMetaClassByDataSetEntityAlias(java.lang.String alias, DataSetType dataSetType, java.util.List<ReportInputParameter> reportInputParameters)
findMetaClassByDataSetEntityAlias
in interface ReportService
public java.util.List loadDataForParameterPrototype(ParameterPrototype prototype)
loadDataForParameterPrototype
in interface ReportService
public java.lang.String convertToString(java.lang.Class parameterClass, java.lang.Object paramValue)
convertToString
in interface ReportService
public java.lang.Object convertFromString(java.lang.Class parameterClass, java.lang.String paramValueStr)
convertFromString
in interface ReportService
public void cancelReportExecution(java.util.UUID userSessionId, java.util.UUID reportId)
ReportService
cancelReportExecution
in interface ReportService
userSessionId
- - user session that started report executionreportId
- - identifier of executed reportpublic java.util.Date currentDateOrTime(ParameterType parameterType)
ReportService
Date
according to ParameterType
valuecurrentDateOrTime
in interface ReportService
parameterType
- - ParameterType value.