public interface Report
Typically a Report instance is created from a ReportDef
, however, it
is also possible to create a report instance without a corresponding
definition instance.
ReportDef
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
|
Handle |
createReport()
Creates the report.
|
java.lang.String |
getContentType() |
com.technia.tvc.reportgenerator.ContextProvider |
getContextProvider() |
Converter |
getConverter() |
java.util.Date |
getCreateDate() |
DataExtractor |
getDataExtractor() |
java.lang.String |
getDownloadURL()
Returns the URL of the report download page.
|
java.lang.String |
getFileName() |
Format |
getFormat() |
java.lang.String |
getId() |
java.util.Locale |
getLocale() |
java.lang.String |
getName() |
OutputHandler[] |
getOutputHandlers() |
PostProcessor[] |
getPostProcessors() |
PreProcessor |
getPreProcessor() |
com.technia.tvc.reportgenerator.ObjectRef |
getReportDef() |
ReportSettings |
getSettings() |
com.technia.tvc.reportgenerator.ObjectRef |
getSourceObject() |
int |
getSourceObjectCount() |
java.util.Iterator<com.technia.tvc.reportgenerator.ObjectRef> |
getSourceObjects() |
java.lang.String |
getStyleSheet() |
void |
handleParameters(java.lang.String name,
java.lang.String[] values)
All parameters submitted from a pre-process page are handled by this
method.
|
boolean |
hasSourceObject() |
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 |
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.
|
java.lang.String getId()
java.lang.String getName()
ReportSettings getSettings()
Format getFormat()
java.util.Locale getLocale()
java.util.Date getCreateDate()
boolean hasSourceObject()
getSourceObjectCount()
is greater than zero.void addSourceObject(java.lang.String objectId) throws TVCException
objectId
- The id of the object to addTVCException
- If the id is invalidvoid addSourceObject(com.technia.tvc.reportgenerator.ObjectRef objectRef)
objectRef
- An ObjectRef
representing the source objectint getSourceObjectCount()
com.technia.tvc.reportgenerator.ObjectRef getSourceObject()
ObjectRef
instance}java.util.Iterator<com.technia.tvc.reportgenerator.ObjectRef> getSourceObjects()
Iterator
containing all source objects, if any,com.technia.tvc.reportgenerator.ObjectRef removeSourceObject(java.lang.String id)
id
- The id of the objectvoid removeSourceObjects()
com.technia.tvc.reportgenerator.ObjectRef getReportDef()
ObjectRef
com.technia.tvc.reportgenerator.ContextProvider getContextProvider()
ContextProvider
. NOTE: This method is only used
internally within the report generator and should normally not be
usedDataExtractor getDataExtractor()
DataExtractor
used by this reportjava.lang.String getFileName()
void setFileName(java.lang.String fileName)
fileName
- The name of the filevoid setContentType(java.lang.String contentType)
contentType
- The content typejava.lang.String getContentType()
java.lang.String getStyleSheet()
void setDisableConverter(boolean disable)
Typically, 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
disable
- True to disablevoid setDisableOutputHandlers(boolean disable)
Typically, 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
disable
- True to disableOutputHandler[] getOutputHandlers()
output handlers
defined for this
report.PostProcessor[] getPostProcessors()
post processors
defined for this reportvoid setDisablePostProcessors(boolean disable)
Typically, 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
disable
- True to disablePreProcessor getPreProcessor()
PreProcessor
attached to this report (if any)void handleParameters(java.lang.String name, java.lang.String[] values)
name
- The name of the parametervalues
- The valuesboolean isSerializable()
Handle createReport() throws TVCException
Handle
for completionHandle
TVCException
void setEnqueuer(com.technia.tvc.reportgenerator.Enqueuer enqueuer)
Enqueuer
, which knows how
the report will be createdenqueuer
- The Enqueuer
instance.java.lang.String getDownloadURL()
Copyright © Technia AB. All Rights Reserved.