Class AvailabilityReport
- java.lang.Object
-
- org.opennms.reporting.availability.AvailabilityReport
-
public class AvailabilityReport extends java.lang.Object
AvailabilityReport generates the Availability report in PDF format- Author:
- Jacinta Remedios
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String[]
months
String of Months
-
Constructor Summary
Constructors Constructor Description AvailabilityReport(java.lang.String author, java.lang.String startMonth, java.lang.String startDate, java.lang.String startYear)
Default constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
generatePDF(java.lang.String xsltFileName, java.io.OutputStream out, java.lang.String format)
Generate PDF from classes.static void
generateReport(java.lang.String logourl, java.lang.String categoryName, java.lang.String format, java.lang.String monthFormat, java.lang.String startMonth, java.lang.String startDate, java.lang.String startYear)
generateReportvoid
getReportData(java.lang.String logourl, java.lang.String categoryName, java.lang.String reportFormat, java.lang.String monthFormat, java.lang.String startMonth, java.lang.String startDate, java.lang.String startYear)
This when invoked generates the data into report classes.static void
main(java.lang.String[] args)
Main methodvoid
marshalReport()
This when invoked marshals the report XML from the classes.void
populateReport(java.lang.String logourl, java.lang.String categoryName, java.lang.String reportFormat, java.lang.String monthFormat, java.lang.String startMonth, java.lang.String startDate, java.lang.String startYear)
This when invoked populates the classes.
-
-
-
Constructor Detail
-
AvailabilityReport
public AvailabilityReport(java.lang.String author, java.lang.String startMonth, java.lang.String startDate, java.lang.String startYear)
Default constructor- Parameters:
author
- aString
object.startMonth
- aString
object.startDate
- aString
object.startYear
- aString
object.
-
-
Method Detail
-
getReportData
public void getReportData(java.lang.String logourl, java.lang.String categoryName, java.lang.String reportFormat, java.lang.String monthFormat, java.lang.String startMonth, java.lang.String startDate, java.lang.String startYear)
This when invoked generates the data into report classes.- Parameters:
logourl
- location of the logo to be displayed on the reportcategoryName
- of the logo to be displayed on the reportreportFormat
- Report Format ("SVG" / all)monthFormat
- Format for month data ("classic"/"calendar")startMonth
- aString
object.startDate
- aString
object.startYear
- aString
object.
-
populateReport
public void populateReport(java.lang.String logourl, java.lang.String categoryName, java.lang.String reportFormat, java.lang.String monthFormat, java.lang.String startMonth, java.lang.String startDate, java.lang.String startYear)
This when invoked populates the classes.- Parameters:
logourl
- location of the logo to be displayed on the reportcategoryName
- of the logo to be displayed on the reportreportFormat
- Report Format ("SVG" / all)monthFormat
- Format for month data ("classic"/"calendar")startMonth
- aString
object.startDate
- aString
object.startYear
- aString
object.
-
marshalReport
public void marshalReport() throws java.io.IOException, java.lang.Exception
This when invoked marshals the report XML from the classes.- Throws:
java.io.IOException
- if any.java.lang.Exception
- if any.
-
generatePDF
public void generatePDF(java.lang.String xsltFileName, java.io.OutputStream out, java.lang.String format) throws java.lang.Exception
Generate PDF from classes.- Parameters:
xsltFileName
- aString
object.out
- aOutputStream
object.format
- aString
object.- Throws:
java.lang.Exception
- if any.
-
main
public static void main(java.lang.String[] args)
Main method- Parameters:
args
- an array ofString
objects.
-
generateReport
public static void generateReport(java.lang.String logourl, java.lang.String categoryName, java.lang.String format, java.lang.String monthFormat, java.lang.String startMonth, java.lang.String startDate, java.lang.String startYear) throws java.lang.Exception
generateReport
- Parameters:
logourl
- aString
object.categoryName
- aString
object.format
- aString
object.monthFormat
- aString
object.startMonth
- aString
object.startDate
- aString
object.startYear
- aString
object.- Throws:
java.lang.Exception
- if any.
-
-