Package org.opennms.netmgt.dao.jaxb
Class DefaultReportdConfigurationDao
- java.lang.Object
-
- org.opennms.core.xml.AbstractJaxbConfigDao<ReportdConfiguration,ReportdConfiguration>
-
- org.opennms.netmgt.dao.jaxb.DefaultReportdConfigurationDao
-
- All Implemented Interfaces:
ReportdConfigurationDao
,org.springframework.beans.factory.InitializingBean
public class DefaultReportdConfigurationDao extends AbstractJaxbConfigDao<ReportdConfiguration,ReportdConfiguration> implements ReportdConfigurationDao
DefaultReportdConfigurationDao class.
- Version:
- $Id: $
- Author:
- ranger
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opennms.core.xml.AbstractJaxbConfigDao
AbstractJaxbConfigDao.JaxbReloadCallback
-
-
Constructor Summary
Constructors Constructor Description DefaultReportdConfigurationDao()
Constructor for DefaultReportdConfigurationDao.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
deleteReport(java.lang.String report)
deleteReportReportdConfiguration
getConfig()
getConfigboolean
getPersistFlag()
getPersistFlagReport
getReport(java.lang.String reportName)
getReportjava.util.List<Report>
getReports()
getReportsjava.lang.String
getStorageDirectory()
getStorageDirectoryvoid
reloadConfiguration()
reloadConfigurationReportdConfiguration
translateConfig(ReportdConfiguration config)
translateConfig-
Methods inherited from class org.opennms.core.xml.AbstractJaxbConfigDao
addOnReloadedCallback, afterPropertiesSet, getConfigResource, getContainer, getDescription, getReloadCheckInterval, loadConfig, setConfigResource, setReloadCheckInterval
-
-
-
-
Method Detail
-
getConfig
public ReportdConfiguration getConfig()
getConfig
- Specified by:
getConfig
in interfaceReportdConfigurationDao
- Returns:
- a
ReportdConfiguration
object.
-
translateConfig
public ReportdConfiguration translateConfig(ReportdConfiguration config)
translateConfig
- Specified by:
translateConfig
in classAbstractJaxbConfigDao<ReportdConfiguration,ReportdConfiguration>
- Parameters:
config
- aReportdConfiguration
object.- Returns:
- a
ReportdConfiguration
object.
-
reloadConfiguration
public void reloadConfiguration() throws org.springframework.dao.DataAccessResourceFailureException
reloadConfiguration
- Specified by:
reloadConfiguration
in interfaceReportdConfigurationDao
- Throws:
org.springframework.dao.DataAccessResourceFailureException
- if any.
-
getReport
public Report getReport(java.lang.String reportName)
getReport
- Specified by:
getReport
in interfaceReportdConfigurationDao
- Parameters:
reportName
- aString
object.- Returns:
- a
Report
object.
-
getReports
public java.util.List<Report> getReports()
getReports
- Specified by:
getReports
in interfaceReportdConfigurationDao
- Returns:
- a
List
object.
-
getPersistFlag
public boolean getPersistFlag()
getPersistFlag
- Specified by:
getPersistFlag
in interfaceReportdConfigurationDao
- Returns:
- a boolean.
-
getStorageDirectory
public java.lang.String getStorageDirectory()
getStorageDirectory
- Specified by:
getStorageDirectory
in interfaceReportdConfigurationDao
- Returns:
- a
String
object.
-
deleteReport
public boolean deleteReport(java.lang.String report)
deleteReport
- Specified by:
deleteReport
in interfaceReportdConfigurationDao
- Parameters:
report
- aString
object.- Returns:
- a boolean.
-
-