org.opennms.report.availability
Class AvailabilityReportLocatorService

java.lang.Object
  extended by org.opennms.report.availability.AvailabilityReportLocatorService
All Implemented Interfaces:
ReportLocatorService

public class AvailabilityReportLocatorService
extends Object
implements ReportLocatorService

AvailibilityReportLocatorService is used to store, retrieve and delete report locator entries from the report locator table

Author:
Jonathan Sartin

Constructor Summary
AvailabilityReportLocatorService()
           
 
Method Summary
 void addReport(org.opennms.netmgt.model.AvailabilityReportLocator locator)
          Add an availability Report Locator record to the database
 void deleteReport(int id)
          Delete an availability report.
 org.opennms.netmgt.model.AvailabilityReportLocator locateReport(int id)
          Returns a single AvailabilityReportLocator
 Collection<org.opennms.netmgt.model.AvailabilityReportLocator> locateReports()
          Returns a collection of ReportLocator objects that represent all the ready run reports available
 Collection<org.opennms.netmgt.model.AvailabilityReportLocator> locateReports(String categoryName)
          Returns a collection of ReportLocator objects that represent all the ready run reports available for a given category
 void setAvailabilityReportLocatorDao(org.opennms.netmgt.dao.AvailabilityReportLocatorDao availabilityReportLocatorDao)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AvailabilityReportLocatorService

public AvailabilityReportLocatorService()
Method Detail

setAvailabilityReportLocatorDao

public void setAvailabilityReportLocatorDao(org.opennms.netmgt.dao.AvailabilityReportLocatorDao availabilityReportLocatorDao)

locateReports

public Collection<org.opennms.netmgt.model.AvailabilityReportLocator> locateReports()
Returns a collection of ReportLocator objects that represent all the ready run reports available

Specified by:
locateReports in interface ReportLocatorService
Returns:
Collection of AvailabilityReportLocator

locateReports

public Collection<org.opennms.netmgt.model.AvailabilityReportLocator> locateReports(String categoryName)
Returns a collection of ReportLocator objects that represent all the ready run reports available for a given category

Specified by:
locateReports in interface ReportLocatorService
Parameters:
catgegoryName - A valid category name (see views.xml)
Returns:
Collection of AvailabilityReportLocator applicable to categoryName

locateReport

public org.opennms.netmgt.model.AvailabilityReportLocator locateReport(int id)
Returns a single AvailabilityReportLocator

Parameters:
id -
Returns:
AvailabilityReportLocator

deleteReport

public void deleteReport(int id)
Delete an availability report. Currently only deletes the locator, not the report on disk.

Specified by:
deleteReport in interface ReportLocatorService
Parameters:
id -

addReport

public void addReport(org.opennms.netmgt.model.AvailabilityReportLocator locator)
Add an availability Report Locator record to the database

Specified by:
addReport in interface ReportLocatorService
Parameters:
AvailabilityReportLocator -


Copyright ? 2008. All Rights Reserved.