com.atlassian.jira.plugin.report
Interface Report

All Known Implementing Classes:
AbstractReport

public interface Report

The interface for pluggable reports within JIRA.

See Also:
AbstractReport, ReportModuleDescriptor

Method Summary
 String generateReportExcel(ProjectActionSupport action, Map params)
          Generate the report's Excel HTML - usually from the Velocity resource named "excel".
 String generateReportHtml(ProjectActionSupport action, Map params)
          Generate the report's HTML - usually from the Velocity resource named "html".
 void init(ReportModuleDescriptor reportModuleDescriptor)
          Initialise this report, given the report's module descriptor.
 boolean isExcelViewSupported()
          Whether or not this report has an Excel view.
 boolean showReport()
          Whether or not to show this report at the current state of the system.
 void validate(ProjectActionSupport action, Map params)
          Validate the parameters passed to this report from the UI.
 

Method Detail

init

public void init(ReportModuleDescriptor reportModuleDescriptor)
Initialise this report, given the report's module descriptor.

This method is run immediately after the report is constructed.


validate

public void validate(ProjectActionSupport action,
                     Map params)
Validate the parameters passed to this report from the UI.

Any errors should be added to the action errors.


generateReportHtml

public String generateReportHtml(ProjectActionSupport action,
                                 Map params)
                          throws Exception
Generate the report's HTML - usually from the Velocity resource named "html".

Throws:
Exception

isExcelViewSupported

public boolean isExcelViewSupported()
Whether or not this report has an Excel view.


generateReportExcel

public String generateReportExcel(ProjectActionSupport action,
                                  Map params)
                           throws Exception
Generate the report's Excel HTML - usually from the Velocity resource named "excel".

Throws:
Exception

showReport

public boolean showReport()
Whether or not to show this report at the current state of the system.



Copyright © 2002-2006 Atlassian. All Rights Reserved.