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 ReportHandler interface to perform report related processing based on the context object. ReportHandlerFactory.getInstance().handleReport(contextObject, reportName);

Supported API: true

Extendable: false
  • Method Details

    • handleReport

      public void handleReport(Object theObject, String reportName) throws WTException
      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 operation
      reportName - 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 operation
      reportName - The report to run
      reportingSystem - Either Jasper or Cognos
      containerPath - 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 use
      reportingSystem - Either Jasper or Cognos
      containerPath - Container Path for the Report, If Null, Default : Site
      Throws:
      WTException