org.opennms.netmgt.dao.castor
Class DefaultReportdConfigurationDao

java.lang.Object
  extended by org.opennms.netmgt.dao.castor.AbstractCastorConfigDao<ReportdConfiguration,ReportdConfiguration>
      extended by org.opennms.netmgt.dao.castor.DefaultReportdConfigurationDao
All Implemented Interfaces:
ReportdConfigurationDao, org.springframework.beans.factory.InitializingBean

public class DefaultReportdConfigurationDao
extends AbstractCastorConfigDao<ReportdConfiguration,ReportdConfiguration>
implements ReportdConfigurationDao

DefaultReportdConfigurationDao class.

Version:
$Id: $
Author:
ranger

Nested Class Summary
 
Nested classes/interfaces inherited from class org.opennms.netmgt.dao.castor.AbstractCastorConfigDao
AbstractCastorConfigDao.CastorReloadCallback
 
Constructor Summary
DefaultReportdConfigurationDao()
          Constructor for DefaultReportdConfigurationDao.
 
Method Summary
 boolean deleteReport(String report)
          deleteReport
 ReportdConfiguration getConfig()
          getConfig
 boolean getPersistFlag()
          getPersistFlag
 Report getReport(String reportName)
          getReport
 List<Report> getReports()
          getReports
 String getStorageDirectory()
          getStorageDirectory
 void reloadConfiguration()
          reloadConfiguration
 ReportdConfiguration translateConfig(ReportdConfiguration castorConfig)
          translateConfig
 
Methods inherited from class org.opennms.netmgt.dao.castor.AbstractCastorConfigDao
afterPropertiesSet, createLoadedLogMessage, getConfigResource, getContainer, getDescription, getReloadCheckInterval, loadConfig, log, setConfigResource, setReloadCheckInterval
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultReportdConfigurationDao

public DefaultReportdConfigurationDao()

Constructor for DefaultReportdConfigurationDao.

Method Detail

getConfig

public ReportdConfiguration getConfig()

getConfig

Specified by:
getConfig in interface ReportdConfigurationDao
Returns:
a ReportdConfiguration object.

translateConfig

public ReportdConfiguration translateConfig(ReportdConfiguration castorConfig)

translateConfig

Specified by:
translateConfig in class AbstractCastorConfigDao<ReportdConfiguration,ReportdConfiguration>
Parameters:
castorConfig - a ReportdConfiguration object.
Returns:
a ReportdConfiguration object.

reloadConfiguration

public void reloadConfiguration()
                         throws org.springframework.dao.DataAccessResourceFailureException

reloadConfiguration

Specified by:
reloadConfiguration in interface ReportdConfigurationDao
Throws:
org.springframework.dao.DataAccessResourceFailureException - if any.

getReport

public Report getReport(String reportName)

getReport

Specified by:
getReport in interface ReportdConfigurationDao
Parameters:
reportName - a String object.
Returns:
a Report object.

getReports

public List<Report> getReports()

getReports

Specified by:
getReports in interface ReportdConfigurationDao
Returns:
a List object.

getPersistFlag

public boolean getPersistFlag()

getPersistFlag

Specified by:
getPersistFlag in interface ReportdConfigurationDao
Returns:
a boolean.

getStorageDirectory

public String getStorageDirectory()

getStorageDirectory

Specified by:
getStorageDirectory in interface ReportdConfigurationDao
Returns:
a String object.

deleteReport

public boolean deleteReport(String report)

deleteReport

Specified by:
deleteReport in interface ReportdConfigurationDao
Parameters:
report - a String object.
Returns:
a boolean.


Copyright © 2011. All Rights Reserved.