Package wt.change2.reports
Class ReportHandlerFactory
java.lang.Object
wt.change2.reports.ReportHandlerFactory
- All Implemented Interfaces:
wt.services.applicationcontext.ApplicationContextChild
public class ReportHandlerFactory
extends Object
implements wt.services.applicationcontext.ApplicationContextChild
Factory to look up an implementation of the
Supported API: true
Extendable: false
ReportHandler interface to
perform report related processing based on the context object.
ReportHandlerFactory.getInstance().handleReport(contextObject, reportName);
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptionvoidhandleReport(Object theObject, String reportName) Method to perform report specific processing such as generating a report and storing it as content on a ChangeNotice.voidhandleReport(Object theObject, String reportName, WBRReportingSystem reportingSystem, String containerPath) Method to perform report specific processing such as generating a cognos or jasper report and storing it as content on a ChangeNotice.voidhandleReport(Object primaryObject, String reportName, ContentRoleType contentType, String reportFilename) Method to perform report specific processing such as generating report and storing it as content on a ChangeNotice.voidhandleReport(Object primaryObject, String reportName, ContentRoleType contentType, String reportFilename, WBRReportingSystem reportingSystem, String containerPath) Method to perform report specific processing such as generating a cognos or jasper report and storing it as content on a ChangeNotice.
-
Method Details
-
handleReport
Method to perform report specific processing such as generating a report and storing it as content on a ChangeNotice.
Supported API: true- Parameters:
theObject- The context object of the operationreportName- The report to run- Throws:
WTException
-
handleReport
public void handleReport(Object primaryObject, String reportName, ContentRoleType contentType, String reportFilename) throws WTException Method to perform report specific processing such as generating report and storing it as content on a ChangeNotice.
Supported API: true- Parameters:
primaryObject-reportName-contentType-reportFilename- The generated report file name to use- Throws:
WTException
-
handleReport
public void handleReport(Object theObject, String reportName, WBRReportingSystem reportingSystem, String containerPath) throws WTException Method to perform report specific processing such as generating a cognos or jasper report and storing it as content on a ChangeNotice.
Supported API: true- Parameters:
theObject- The context object of the operationreportName- The report to runreportingSystem- Either Jasper or CognoscontainerPath- Container Path for the Report, If Null, Default : Site- Throws:
WTException
-
handleReport
public void handleReport(Object primaryObject, String reportName, ContentRoleType contentType, String reportFilename, WBRReportingSystem reportingSystem, String containerPath) throws WTException Method to perform report specific processing such as generating a cognos or jasper report and storing it as content on a ChangeNotice.
Supported API: true- Parameters:
primaryObject-reportName-contentType-reportFilename- The generated report file name to usereportingSystem- Either Jasper or CognoscontainerPath- Container Path for the Report, If Null, Default : Site- Throws:
WTException
-