public class AvailabilityReportService extends Object implements ReportService
AvailabilityReportService class.
| Constructor and Description |
|---|
AvailabilityReportService()
Constructor for AvailabilityReportService.
|
| Modifier and Type | Method and Description |
|---|---|
List<ReportFormat> |
getFormats(String id)
This method provides a list of formats supported by the report
|
ReportParameters |
getParameters(String ReportId)
This method retrieves the runtime parameters taken by the report
|
void |
render(String id,
String location,
ReportFormat format,
OutputStream outputStream)
This method renders the report into a given output stream.
|
String |
run(Map<String,Object> reportParms,
String reportId)
This method runs the report
|
void |
runAndRender(Map<String,Object> reportParms,
String reportId,
ReportFormat format,
OutputStream outputStream)
This method runs the report and renders in into the given output stream
with no intermediate steps
|
void |
setCalendarCalculator(AvailabilityCalculator calculator)
setCalendarCalculator
|
void |
setClassicCalculator(AvailabilityCalculator calulator)
setClassicCalculator
|
void |
setConfigDao(OnmsReportConfigDao configDao)
setConfigDao
|
void |
setParameterConversionService(ParameterConversionService parameterConversionService)
setParameterConversionService
|
boolean |
validate(Map<String,Object> reportParms,
String reportID)
This method validates that the map of report parameters matches the
report parameters accepted by the report.
|
public AvailabilityReportService()
Constructor for AvailabilityReportService.
public boolean validate(Map<String,Object> reportParms, String reportID)
validate in interface ReportServicereportParms - hashmap of parameters to be provided at runtimereportID - reportId as defined in database-reports.xmlpublic void render(String id, String location, ReportFormat format, OutputStream outputStream)
render in interface ReportServiceid - reportId as defined in database-reports.xmllocation - location of the report on diskformat - format to render the reportoutputStream - stream to render the resulting reportpublic List<ReportFormat> getFormats(String id)
getFormats in interface ReportServiceid - reportId as defined in database-reports.xmlpublic String run(Map<String,Object> reportParms, String reportId)
run in interface ReportServicereportParms - hashmap of parameters to be provided at runtimereportId - reportId as defined in database-reports.xmlString object.public void runAndRender(Map<String,Object> reportParms, String reportId, ReportFormat format, OutputStream outputStream)
runAndRender in interface ReportServicereportParms - a HashMap object.reportId - reportId as defined in database-reports.xmlformat - format to render the reportoutputStream - stream to render the resulting reportpublic ReportParameters getParameters(String ReportId)
getParameters in interface ReportServiceReportId - a String object.public void setCalendarCalculator(AvailabilityCalculator calculator)
setCalendarCalculator
calculator - a AvailabilityCalculator object.public void setClassicCalculator(AvailabilityCalculator calulator)
setClassicCalculator
calulator - a AvailabilityCalculator object.public void setConfigDao(OnmsReportConfigDao configDao)
setConfigDao
configDao - a OnmsReportConfigDao object.public void setParameterConversionService(ParameterConversionService parameterConversionService)
setParameterConversionService
parameterConversionService - a ParameterConversionService object.Copyright © 2018. All rights reserved.