Class AvailabilityReport
- java.lang.Object
-
- org.opennms.reporting.availability.AvailabilityReport
-
public class AvailabilityReport extends Object
AvailabilityReport generates the Availability report in PDF format- Author:
- Jacinta Remedios
-
-
Constructor Summary
Constructors Constructor Description AvailabilityReport(String author, String startMonth, String startDate, String startYear)
Default constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
generatePDF(String xsltFileName, OutputStream out, String format)
Generate PDF from classes.static void
generateReport(String logourl, String categoryName, String format, String monthFormat, String startMonth, String startDate, String startYear)
generateReportvoid
getReportData(String logourl, String categoryName, String reportFormat, String monthFormat, String startMonth, String startDate, String startYear)
This when invoked generates the data into report classes.static void
main(String[] args)
Main methodvoid
marshalReport()
This when invoked marshals the report XML from the classes.void
populateReport(String logourl, String categoryName, String reportFormat, String monthFormat, String startMonth, String startDate, String startYear)
This when invoked populates the classes.
-
-
-
Field Detail
-
months
public static String[] months
String of Months
-
-
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 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(String logourl, String categoryName, String reportFormat, String monthFormat, String startMonth, String startDate, 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 IOException, Exception
This when invoked marshals the report XML from the classes.- Throws:
IOException
- if any.Exception
- if any.
-
generatePDF
public void generatePDF(String xsltFileName, OutputStream out, String format) throws Exception
Generate PDF from classes.- Parameters:
xsltFileName
- aString
object.out
- aOutputStream
object.format
- aString
object.- Throws:
Exception
- if any.
-
main
public static void main(String[] args)
Main method- Parameters:
args
- an array ofString
objects.
-
-