@PublicSpi public abstract class AbstractReport extends Object implements Report
Modifier and Type | Class and Description |
---|---|
static class |
AbstractReport.MutableLong
This utility class is much like an AtomicLong, but it does not have the
thread-safety guarantees and overhead of that class.
|
Modifier and Type | Field and Description |
---|---|
protected ReportModuleDescriptor |
descriptor |
Constructor and Description |
---|
AbstractReport() |
Modifier and Type | Method and Description |
---|---|
String |
generateReportExcel(ProjectActionSupport action,
Map params)
By default, will throw an UnsuppportedOperationException as reports don't support Excel by default.
|
protected ReportModuleDescriptor |
getDescriptor() |
IssueConstant |
getIssueConstant(org.ofbiz.core.entity.GenericValue issueConstantGV) |
void |
init(ReportModuleDescriptor descriptor)
Initialise this report, given the report's module descriptor.
|
boolean |
isExcelViewSupported()
By default, reports do not have an Excel view.
|
boolean |
showReport()
Whether or not to show this report in the interface.
|
void |
validate(ProjectActionSupport action,
Map params)
Validate the parameters passed to this report from the UI.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
generateReportHtml
protected ReportModuleDescriptor descriptor
public void init(ReportModuleDescriptor descriptor)
Report
This method is run immediately after the report is constructed.
public void validate(ProjectActionSupport action, Map params)
Report
Any errors should be added to the action errors.
public boolean isExcelViewSupported()
isExcelViewSupported
in interface Report
public String generateReportExcel(ProjectActionSupport action, Map params) throws Exception
generateReportExcel
in interface Report
Exception
public boolean showReport()
showReport
in interface Report
protected ReportModuleDescriptor getDescriptor()
public IssueConstant getIssueConstant(org.ofbiz.core.entity.GenericValue issueConstantGV)
Copyright © 2002-2021 Atlassian. All Rights Reserved.