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 voidgeneratePDF(String xsltFileName, OutputStream out, String format)Generate PDF from classes.static voidgenerateReport(String logourl, String categoryName, String format, String monthFormat, String startMonth, String startDate, String startYear)generateReportvoidgetReportData(String logourl, String categoryName, String reportFormat, String monthFormat, String startMonth, String startDate, String startYear)This when invoked generates the data into report classes.static voidmain(String[] args)Main methodvoidmarshalReport()This when invoked marshals the report XML from the classes.voidpopulateReport(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- aStringobject.startDate- aStringobject.startYear- aStringobject.
-
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- aStringobject.startDate- aStringobject.startYear- aStringobject.
-
marshalReport
public void marshalReport() throws IOException, ExceptionThis 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- aStringobject.out- aOutputStreamobject.format- aStringobject.- Throws:
Exception- if any.
-
main
public static void main(String[] args)
Main method- Parameters:
args- an array ofStringobjects.
-
-