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(String report)
deleteReportReportdConfiguration
getConfig()
getConfigboolean
getPersistFlag()
getPersistFlagReport
getReport(String reportName)
getReportList<Report>
getReports()
getReportsString
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(String reportName)
getReport
- Specified by:
getReport
in interfaceReportdConfigurationDao
- Parameters:
reportName
- aString
object.- Returns:
- a
Report
object.
-
getReports
public 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 String getStorageDirectory()
getStorageDirectory
- Specified by:
getStorageDirectory
in interfaceReportdConfigurationDao
- Returns:
- a
String
object.
-
deleteReport
public boolean deleteReport(String report)
deleteReport
- Specified by:
deleteReport
in interfaceReportdConfigurationDao
- Parameters:
report
- aString
object.- Returns:
- a boolean.
-
-