@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, waitgenerateReportHtmlprotected ReportModuleDescriptor descriptor
public void init(ReportModuleDescriptor descriptor)
ReportThis method is run immediately after the report is constructed.
public void validate(ProjectActionSupport action, Map params)
ReportAny errors should be added to the action errors.
public boolean isExcelViewSupported()
isExcelViewSupported in interface Reportpublic String generateReportExcel(ProjectActionSupport action, Map params) throws Exception
generateReportExcel in interface ReportExceptionpublic boolean showReport()
showReport in interface Reportprotected ReportModuleDescriptor getDescriptor()
public IssueConstant getIssueConstant(org.ofbiz.core.entity.GenericValue issueConstantGV)
Copyright © 2002-2018 Atlassian. All Rights Reserved.