org.opennms.report.availability
Class AvailabilityReport

java.lang.Object
  extended by org.opennms.report.availability.AvailabilityReport

public class AvailabilityReport
extends Object

AvailabilityReport generates the Availability report in pdf format

Author:
Jacinta Remedios , Oculan

Field Summary
static String[] months
          String of Months
 
Constructor Summary
AvailabilityReport(String author, String startMonth, String startDate, String startYear)
          Default constructor
 
Method Summary
 void generatePDF(String pdfFileName, OutputStream out, String format)
          Generate PDF from castor classes.
static void generateReport(String logourl, String categoryName, String format, String monthFormat, String startMonth, String startDate, String startYear)
           
 void getReportData(String logourl, String categoryName, String reportFormat, String monthFormat, String startMonth, String startDate, String startYear)
          This when invoked generates the data into report castor classes.
static void main(String[] args)
          Main method
 void marshalReport()
          This when invoked marshalls the report XML from the castor classes.
 void populateReport(String logourl, String categoryName, String reportFormat, String monthFormat, String startMonth, String startDate, String startYear)
          This when invoked populates the castor classes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

months

public static String[] months
String of Months

Constructor Detail

AvailabilityReport

public AvailabilityReport(String author,
                          String startMonth,
                          String startDate,
                          String startYear)
Default constructor

Method Detail

getReportData

public void getReportData(String logourl,
                          String categoryName,
                          String reportFormat,
                          String monthFormat,
                          String startMonth,
                          String startDate,
                          String startYear)
This when invoked generates the data into report castor classes.

Parameters:
logourl - location of the logo to be displayed on the report
categoryName - of the logo to be displayed on the report
reportFormat - Report Format ("SVG" / all)
monthFormat - Format for month data ("classic"/"calendar")

populateReport

public void populateReport(String logourl,
                           String categoryName,
                           String reportFormat,
                           String monthFormat,
                           String startMonth,
                           String startDate,
                           String startYear)
This when invoked populates the castor classes.

Parameters:
logourl - location of the logo to be displayed on the report
categoryName - of the logo to be displayed on the report
reportFormat - Report Format ("SVG" / all)
monthFormat - Format for month data ("classic"/"calendar")

marshalReport

public void marshalReport()
                   throws org.exolab.castor.xml.ValidationException,
                          org.exolab.castor.xml.MarshalException,
                          IOException,
                          Exception
This when invoked marshalls the report XML from the castor classes.

Throws:
org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.MarshalException
IOException
Exception

generatePDF

public void generatePDF(String pdfFileName,
                        OutputStream out,
                        String format)
                 throws Exception
Generate PDF from castor classes.

Throws:
Exception

main

public static void main(String[] args)
Main method


generateReport

public static void generateReport(String logourl,
                                  String categoryName,
                                  String format,
                                  String monthFormat,
                                  String startMonth,
                                  String startDate,
                                  String startYear)
                           throws Exception
Parameters:
logourl -
categoryName -
format -
Throws:
Exception


Copyright © 2009. All Rights Reserved.