public class JFreeReportComponent extends AbstractJFreeReportComponent
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
logger |
DATACOMPONENT_CLASSLOCINPUT, DATACOMPONENT_DATAINPUT, DATACOMPONENT_DEFAULTINPUT, DATACOMPONENT_JARINPUT, DATACOMPONENT_MDXCLASS, DATACOMPONENT_MDXSOURCE, DATACOMPONENT_REPORTTEMP_DATAINPUT, DATACOMPONENT_REPORTTEMP_OBJINPUT, DATACOMPONENT_SOURCE, DATACOMPONENT_SQLCLASS, DATACOMPONENT_SQLSOURCE, REPORTALLCONTENT_OUTPUTTYPE, REPORTALLCONTENT_OUTPUTTYPE_CSV, REPORTALLCONTENT_OUTPUTTYPE_HTML, REPORTALLCONTENT_OUTPUTTYPE_PDF, REPORTALLCONTENT_OUTPUTTYPE_RTF, REPORTALLCONTENT_OUTPUTTYPE_SWING, REPORTALLCONTENT_OUTPUTTYPE_XLS, REPORTALLCONTENT_OUTPUTTYPE_XML, REPORTDIRECTORYHTML_DATADIR, REPORTDIRECTORYHTML_TARGETFILE, REPORTGENERATE_PRIORITYINPUT, REPORTGENERATE_PRIORITYLOWER, REPORTGENERATE_PRIORITYLOWEST, REPORTGENERATE_PRIORITYNORMAL, REPORTGENERATE_YIELDRATE, REPORTGENERATEDEFN_REPORTDEFN, REPORTGENERATEDEFN_REPORTSPECINPUT, REPORTGENERATEDEFN_REPORTTEMP_PERFQRY, REPORTGENERATESTREAM_REPORT_OUTPUT, REPORTHTML_CONTENTHANDLER, REPORTLOAD_REPORTLOC, REPORTLOAD_RESOURCENAME, REPORTLOAD_RESURL, REPORTPARAMCOMPONENT_PRIVATEREPORT_OUTPUT, REPORTSWING_MODAL, REPORTSWING_PARENTDIALOG, REPORTSWING_PROGRESSBAR, REPORTSWING_PROGRESSDIALOG, REPORTSWING_REPORTCONTROLLER, WORKBOOK_PARAM
COMPONENT_EXECUTE_FAIL, debug, MISSING_SESSION, UNKNOWN_COMPONENT_ID
Constructor and Description |
---|
JFreeReportComponent() |
Modifier and Type | Method and Description |
---|---|
protected org.pentaho.reporting.engine.classic.core.MasterReport |
createReport(String reportDefinition) |
void |
done() |
boolean |
executeAction()
This method gets called from the outside.
|
protected boolean |
executeReportAction() |
protected org.pentaho.platform.api.repository.IContentItem |
getContentItem(String mimeType,
String extension) |
protected PentahoTableDataFactory |
getDataFactory() |
org.apache.commons.logging.Log |
getLogger() |
org.pentaho.reporting.engine.classic.core.MasterReport |
getReport() |
boolean |
init() |
protected boolean |
initAndValidate(org.pentaho.platform.api.engine.IComponent component) |
boolean |
print(org.pentaho.reporting.engine.classic.core.MasterReport report,
String jobName,
String printerName) |
boolean |
validateAction()
We cannot validate the parameters of all components, as the required parameters might not have been created.
|
boolean |
validateSystemSettings() |
protected boolean |
writeCsv(org.pentaho.reporting.engine.classic.core.MasterReport report,
OutputStream outputStream,
int yieldRate) |
boolean |
writeHtml(org.pentaho.reporting.engine.classic.core.MasterReport report,
OutputStream outputStream,
int yieldRate,
String htmlContentHandlerUrlPattern) |
protected boolean |
writePdf(org.pentaho.reporting.engine.classic.core.MasterReport report,
OutputStream outputStream,
int yieldRate) |
protected boolean |
writeRtf(org.pentaho.reporting.engine.classic.core.MasterReport report,
OutputStream outputStream,
int yieldRate) |
protected boolean |
writeSwingPreview(org.pentaho.reporting.engine.classic.core.MasterReport report) |
protected boolean |
writeXls(org.pentaho.reporting.engine.classic.core.MasterReport report,
OutputStream outputStream,
int yieldRate) |
protected boolean |
writeXml(org.pentaho.reporting.engine.classic.core.MasterReport report,
OutputStream outputStream) |
addTempParameter, addTempParameterObject, applyInputsToFormat, audit, createFeedbackParameter, createFeedbackParameter, createFeedbackParameter, createFeedbackParameter, createFeedbackParameter, createFeedbackParameter, createFeedbackParameter, createNewInstance, execute, feedbackAllowed, getActionDefinition, getActionName, getActionTitle, getComponentDefinition, getComponentDefinition, getContentOutputItem, getDefaultOutputStream, getFeedbackOutputStream, getId, getInitFailMessage, getInitOk, getInputBooleanValue, getInputLongValue, getInputNames, getInputParameter, getInputStream, getInputStringValue, getInputStringValue, getInputValue, getInstanceId, getLogId, getObjectName, getOutputContentItem, getOutputContentItem, getOutputItem, getOutputItem, getOutputNames, getOutputPreference, getProcessId, getResource, getResourceAsString, getResourceDataSource, getResourceInputStream, getResourceNames, getRuntimeContext, getSession, getSetting, getSolutionName, getSolutionPath, getStringSetting, inputMissingError, isDefinedInput, isDefinedOutput, isDefinedResource, isPromptPending, outputMissingError, promptNeeded, promptNow, resolveParameter, resourceComponentSettingError, resourceMissingError, saveSetting, setActionDefinition, setActionName, setComponentDefinition, setComponentDefinitionMap, setFeedbackMimeType, setInstanceId, setOutputMimeType, setOutputMimeType, setOutputValue, setProcessId, setRuntimeContext, setSession, validate
debug, debug, error, error, error, fatal, fatal, getMessages, getUserString, info, info, setMessages, trace, trace, warn, warn
genLogIdFromInfo, genLogIdFromInfo, genLogIdFromSession, getLoggingLevel, setLoggingLevel, setLogId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public boolean init()
init
in interface org.pentaho.platform.api.engine.IComponent
init
in class org.pentaho.platform.engine.services.solution.ComponentBase
public void done()
done
in interface org.pentaho.platform.api.engine.IComponent
done
in class org.pentaho.platform.engine.services.solution.ComponentBase
public boolean validateSystemSettings()
validateSystemSettings
in class org.pentaho.platform.engine.services.solution.ComponentBase
public org.apache.commons.logging.Log getLogger()
getLogger
in class org.pentaho.platform.engine.core.system.PentahoBase
protected boolean initAndValidate(org.pentaho.platform.api.engine.IComponent component)
public boolean validateAction()
validateAction
in class org.pentaho.platform.engine.services.solution.ComponentBase
public boolean executeAction()
executeAction
in class org.pentaho.platform.engine.services.solution.ComponentBase
protected boolean executeReportAction()
protected PentahoTableDataFactory getDataFactory() throws ClassNotFoundException, InstantiationException, IllegalAccessException, Exception
public org.pentaho.reporting.engine.classic.core.MasterReport getReport() throws Exception
Exception
protected org.pentaho.reporting.engine.classic.core.MasterReport createReport(String reportDefinition) throws org.pentaho.reporting.libraries.resourceloader.ResourceException, IOException
org.pentaho.reporting.libraries.resourceloader.ResourceException
IOException
protected org.pentaho.platform.api.repository.IContentItem getContentItem(String mimeType, String extension)
public boolean writeHtml(org.pentaho.reporting.engine.classic.core.MasterReport report, OutputStream outputStream, int yieldRate, String htmlContentHandlerUrlPattern)
protected boolean writeXls(org.pentaho.reporting.engine.classic.core.MasterReport report, OutputStream outputStream, int yieldRate)
protected boolean writePdf(org.pentaho.reporting.engine.classic.core.MasterReport report, OutputStream outputStream, int yieldRate)
public boolean print(org.pentaho.reporting.engine.classic.core.MasterReport report, String jobName, String printerName)
protected boolean writeCsv(org.pentaho.reporting.engine.classic.core.MasterReport report, OutputStream outputStream, int yieldRate)
protected boolean writeRtf(org.pentaho.reporting.engine.classic.core.MasterReport report, OutputStream outputStream, int yieldRate)
protected boolean writeXml(org.pentaho.reporting.engine.classic.core.MasterReport report, OutputStream outputStream)
protected boolean writeSwingPreview(org.pentaho.reporting.engine.classic.core.MasterReport report)
Copyright © 2019 Hitachi Vantara. All rights reserved.