Package org.opennms.netmgt.dao.jaxb
Class DefaultSurveillanceViewConfigDao
- java.lang.Object
-
- org.opennms.core.xml.AbstractJaxbConfigDao<SurveillanceViewConfiguration,SurveillanceViewConfig>
-
- org.opennms.netmgt.dao.jaxb.DefaultSurveillanceViewConfigDao
-
- All Implemented Interfaces:
SurveillanceViewConfigDao
,org.springframework.beans.factory.InitializingBean
public class DefaultSurveillanceViewConfigDao extends AbstractJaxbConfigDao<SurveillanceViewConfiguration,SurveillanceViewConfig> implements SurveillanceViewConfigDao
DefaultSurveillanceViewConfigDao 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 DefaultSurveillanceViewConfigDao()
Constructor for DefaultSurveillanceViewConfigDao.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description View
getDefaultView()
getDefaultViewView
getView(java.lang.String viewName)
java.util.Map<java.lang.String,View>
getViewMap()
Use this method to get a Map of view names to marshalled classes based on the generated View class from the XSD.java.util.List<View>
getViews()
Use this method to get the generated Views class generated by the XSD.SurveillanceViewConfig
translateConfig(SurveillanceViewConfiguration config)
translateConfig-
Methods inherited from class org.opennms.core.xml.AbstractJaxbConfigDao
addOnReloadedCallback, afterPropertiesSet, getConfigResource, getContainer, getDescription, getReloadCheckInterval, loadConfig, setConfigResource, setReloadCheckInterval
-
-
-
-
Method Detail
-
translateConfig
public SurveillanceViewConfig translateConfig(SurveillanceViewConfiguration config)
translateConfig
- Specified by:
translateConfig
in classAbstractJaxbConfigDao<SurveillanceViewConfiguration,SurveillanceViewConfig>
- Parameters:
config
- a K object.- Returns:
- a V object.
-
getView
public View getView(java.lang.String viewName)
- Specified by:
getView
in interfaceSurveillanceViewConfigDao
-
getViews
public java.util.List<View> getViews()
Use this method to get the generated Views class generated by the XSD.- Specified by:
getViews
in interfaceSurveillanceViewConfigDao
- Returns:
- a
org.opennms.netmgt.config.surveillanceViews.Views
object.
-
getViewMap
public java.util.Map<java.lang.String,View> getViewMap()
Use this method to get a Map of view names to marshalled classes based on the generated View class from the XSD.- Returns:
Map> of View classes.
-
getDefaultView
public View getDefaultView()
getDefaultView
- Specified by:
getDefaultView
in interfaceSurveillanceViewConfigDao
- Returns:
- a
View
object.
-
-