org.itracker.services.implementations
Class ReportServiceImpl

java.lang.Object
  extended by org.itracker.services.implementations.ReportServiceImpl
All Implemented Interfaces:
ReportService

public class ReportServiceImpl
extends Object
implements ReportService


Constructor Summary
ReportServiceImpl(ReportDAO reportDAO)
           
 
Method Summary
 Report createReport(Report report)
           
 List<Report> getAllReports()
           
 int getNumberReports()
           
 ReportDAO getReportDAO()
           
 void outputCSV(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.apache.struts.action.ActionMapping mapping)
          Deprecated. needs to be moved to static method in a new web-report-utility class
 void outputHTML(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.apache.struts.action.ActionMapping mapping)
          Deprecated. needs to be moved to static method in a new web-report-utility class
 void outputPDF(List<Issue> reportDataArray, Report report, Locale userLocale, String reportOutput, javax.servlet.http.HttpSession session, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.apache.struts.action.ActionMapping mapping)
          Deprecated. needs to be moved to static method in a new web-report-utility class
 void outputXLS(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.apache.struts.action.ActionMapping mapping)
          Deprecated. needs to be moved to static method in a new web-report-utility class
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReportServiceImpl

public ReportServiceImpl(ReportDAO reportDAO)
Method Detail

getAllReports

public List<Report> getAllReports()
Specified by:
getAllReports in interface ReportService

getNumberReports

public int getNumberReports()
Specified by:
getNumberReports in interface ReportService

createReport

public Report createReport(Report report)
Specified by:
createReport in interface ReportService

getReportDAO

public ReportDAO getReportDAO()
Specified by:
getReportDAO in interface ReportService

outputPDF

public void outputPDF(List<Issue> reportDataArray,
                      Report report,
                      Locale userLocale,
                      String reportOutput,
                      javax.servlet.http.HttpSession session,
                      javax.servlet.http.HttpServletRequest request,
                      javax.servlet.http.HttpServletResponse response,
                      org.apache.struts.action.ActionMapping mapping)
Deprecated. needs to be moved to static method in a new web-report-utility class

break this into stuff that belongs here and stuff that belongs in the web layer

Specified by:
outputPDF in interface ReportService

outputCSV

public void outputCSV(javax.servlet.http.HttpServletRequest request,
                      javax.servlet.http.HttpServletResponse response,
                      org.apache.struts.action.ActionMapping mapping)
               throws ReportException
Deprecated. needs to be moved to static method in a new web-report-utility class

Parameters:
request -
response -
mapping -
Throws:
ReportException

outputXLS

public void outputXLS(javax.servlet.http.HttpServletRequest request,
                      javax.servlet.http.HttpServletResponse response,
                      org.apache.struts.action.ActionMapping mapping)
               throws ReportException
Deprecated. needs to be moved to static method in a new web-report-utility class

Outputs the JFreeReport as an Excel spreadsheet.

Parameters:
out - the OutputStream to send the XLS to.
Throws:
ReportException

outputHTML

public void outputHTML(javax.servlet.http.HttpServletRequest request,
                       javax.servlet.http.HttpServletResponse response,
                       org.apache.struts.action.ActionMapping mapping)
                throws ReportException
Deprecated. needs to be moved to static method in a new web-report-utility class

Outputs the JFreeReport as HTML.

Parameters:
out - the OutputStream to send the HTML to.
Throws:
ReportException


Copyright © 2002-2012 itracker. All Rights Reserved.