public abstract class ReportBase extends java.lang.Object implements Report, java.io.Serializable, com.technia.tvc.reportgenerator.util.Debugger.Debuggable
| Constructor and Description |
|---|
ReportBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
addSourceObject(com.technia.tvc.reportgenerator.ObjectRef objectRef)
Adds a source object to this report
|
void |
addSourceObject(java.lang.String objectId)
Adds a source object to this report
|
protected void |
afterInit(Environment env,
com.technia.tvc.reportgenerator.ReportDef def) |
Handle |
createReport()
Creates the report.
|
void |
debug(com.technia.tvc.reportgenerator.util.Debugger d) |
protected void |
debugOther(com.technia.tvc.reportgenerator.util.Debugger d) |
java.lang.String |
getContentType() |
com.technia.tvc.reportgenerator.ContextProvider |
getContextProvider() |
Converter |
getConverter() |
java.util.Date |
getCreateDate() |
abstract DataExtractor |
getDataExtractor()
Subclasses returns the proper
data extractor, which
is used when the report is created. |
java.lang.String |
getDownloadURL()
Returns the URL of the report download page.
|
java.lang.String |
getFileName() |
Format |
getFormat() |
java.lang.String |
getId()
Returns the id of the report
|
java.util.Locale |
getLocale() |
java.lang.String |
getName() |
OutputHandler[] |
getOutputHandlers() |
PostProcessor[] |
getPostProcessors() |
PreProcessor |
getPreProcessor() |
com.technia.tvc.reportgenerator.ObjectRef |
getReportDef()
Returns a reference to the definition object, or null, if no definition
object is associated with this report instance.
|
ReportSettings |
getSettings() |
com.technia.tvc.reportgenerator.ObjectRef |
getSourceObject() |
int |
getSourceObjectCount() |
java.util.Iterator<com.technia.tvc.reportgenerator.ObjectRef> |
getSourceObjects() |
java.lang.String |
getStyleSheet() |
java.lang.String |
getTableName() |
void |
handleParameters(java.lang.String name,
java.lang.String[] values)
All parameters submitted from a pre-process page are handled by this
method.
|
protected boolean |
handleRuntimeParameter(java.lang.String name,
java.lang.String value) |
boolean |
hasOutputHandler() |
boolean |
hasSourceObject() |
void |
init(Environment env,
com.technia.tvc.reportgenerator.ReportDef def) |
boolean |
isConverterDisabled() |
boolean |
isOutputHandlersDisabled() |
boolean |
isPostProcessorsDisabled() |
boolean |
isSerializable() |
com.technia.tvc.reportgenerator.ObjectRef |
removeSourceObject(java.lang.String id)
Removes a source object with the given id.
|
void |
removeSourceObjects()
Remove all source objects.
|
void |
setContentType(java.lang.String contentType)
This method can be used to explicitly specify the content type of the
generated report
|
void |
setContextProvider(com.technia.tvc.reportgenerator.ContextProvider provider) |
void |
setDisableConverter(boolean disable)
This method can be called explicitly to disable the conversion
|
void |
setDisableOutputHandlers(boolean disable)
This method can be called explicitly to disable any output handlers being
specified on the report definition.
|
void |
setDisablePostProcessors(boolean disable)
This method can be used to explicitly disable all the post-processors
defined on this report.
|
void |
setEnqueuer(com.technia.tvc.reportgenerator.Enqueuer enqueuer)
Allows custom code to use a specialized
Enqueuer, which knows how
the report will be created |
void |
setFileName(java.lang.String fileName)
This method can be used to explicitly set the file name of the generated
report.
|
void |
setFormat(Format format) |
protected void |
setPreProcessor(PreProcessor preProcessor) |
void |
setStyleSheet(java.lang.String styleSheet) |
void |
setTableName(java.lang.String tableName) |
java.lang.String |
toString() |
public Handle createReport() throws TVCException
ReportHandle for completioncreateReport in interface ReportHandleTVCExceptionpublic void setEnqueuer(com.technia.tvc.reportgenerator.Enqueuer enqueuer)
ReportEnqueuer, which knows how
the report will be createdsetEnqueuer in interface Reportenqueuer - The Enqueuer instance.public void init(Environment env, com.technia.tvc.reportgenerator.ReportDef def) throws TVCException
TVCExceptionprotected void afterInit(Environment env, com.technia.tvc.reportgenerator.ReportDef def) throws TVCException
TVCExceptionpublic java.lang.String getId()
public java.lang.String getName()
public com.technia.tvc.reportgenerator.ObjectRef getReportDef()
getReportDef in interface ReportObjectRefpublic java.util.Date getCreateDate()
getCreateDate in interface Reportpublic PreProcessor getPreProcessor()
getPreProcessor in interface ReportPreProcessor attached to this report (if any)protected void setPreProcessor(PreProcessor preProcessor)
public java.lang.String getTableName()
public void setTableName(java.lang.String tableName)
public java.lang.String getStyleSheet()
getStyleSheet in interface Reportpublic void setStyleSheet(java.lang.String styleSheet)
public abstract DataExtractor getDataExtractor()
data extractor, which
is used when the report is created.getDataExtractor in interface ReportDataExtractor used by this reportpublic void setDisableConverter(boolean disable)
ReportTypically, this method is called from a test class used during development in order to not have to create a specific report definition used for testing
setDisableConverter in interface Reportdisable - True to disablepublic boolean isConverterDisabled()
public Converter getConverter()
getConverter in interface ReportConverter being used.public void setContextProvider(com.technia.tvc.reportgenerator.ContextProvider provider)
public com.technia.tvc.reportgenerator.ContextProvider getContextProvider()
getContextProvider in interface ReportContextProvider. NOTE: This method is only used
internally within the report generator and should normally not be
usedpublic Format getFormat()
public void setFormat(Format format)
public void setContentType(java.lang.String contentType)
ReportsetContentType in interface ReportcontentType - The content typepublic java.lang.String getContentType()
getContentType in interface Reportpublic void setFileName(java.lang.String fileName)
ReportsetFileName in interface ReportfileName - The name of the filepublic java.lang.String getFileName()
getFileName in interface Reportpublic void addSourceObject(java.lang.String objectId)
throws TVCException
ReportaddSourceObject in interface ReportobjectId - The id of the object to addTVCException - If the id is invalidpublic void addSourceObject(com.technia.tvc.reportgenerator.ObjectRef objectRef)
ReportaddSourceObject in interface ReportobjectRef - An ObjectRef representing the source objectpublic int getSourceObjectCount()
getSourceObjectCount in interface Reportpublic boolean hasSourceObject()
hasSourceObject in interface ReportReport.getSourceObjectCount() is greater than zero.public com.technia.tvc.reportgenerator.ObjectRef getSourceObject()
getSourceObject in interface ReportObjectRef instance}public java.util.Iterator<com.technia.tvc.reportgenerator.ObjectRef> getSourceObjects()
getSourceObjects in interface ReportIterator containing all source objects, if any,public void removeSourceObjects()
ReportremoveSourceObjects in interface Reportpublic com.technia.tvc.reportgenerator.ObjectRef removeSourceObject(java.lang.String id)
ReportremoveSourceObject in interface Reportid - The id of the objectpublic ReportSettings getSettings()
getSettings in interface Reportpublic void setDisableOutputHandlers(boolean disable)
ReportTypically, this method is called from a test class used during development in order to not have to create a specific report definition used for testing
setDisableOutputHandlers in interface Reportdisable - True to disablepublic boolean isOutputHandlersDisabled()
public boolean hasOutputHandler()
public OutputHandler[] getOutputHandlers()
getOutputHandlers in interface Reportoutput handlers defined for this
report.public void setDisablePostProcessors(boolean disable)
ReportTypically, this method is called from a test class used during development in order to not have to create a specific report definition used for testing
setDisablePostProcessors in interface Reportdisable - True to disablepublic boolean isPostProcessorsDisabled()
public PostProcessor[] getPostProcessors()
getPostProcessors in interface Reportpost processors defined for this reportpublic java.util.Locale getLocale()
public void handleParameters(java.lang.String name,
java.lang.String[] values)
ReporthandleParameters in interface Reportname - The name of the parametervalues - The valuesprotected boolean handleRuntimeParameter(java.lang.String name,
java.lang.String value)
public boolean isSerializable()
isSerializable in interface Reportpublic java.lang.String toString()
toString in class java.lang.Objectpublic void debug(com.technia.tvc.reportgenerator.util.Debugger d)
debug in interface com.technia.tvc.reportgenerator.util.Debugger.Debuggableprotected void debugOther(com.technia.tvc.reportgenerator.util.Debugger d)
public java.lang.String getDownloadURL()
ReportgetDownloadURL in interface ReportCopyright ? Technia AB. All Rights Reserved.