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 ViewgetDefaultView()getDefaultViewViewgetView(String viewName)Map<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.List<View>getViews()Use this method to get the generated Views class generated by the XSD.SurveillanceViewConfigtranslateConfig(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:
translateConfigin classAbstractJaxbConfigDao<SurveillanceViewConfiguration,SurveillanceViewConfig>- Parameters:
config- a K object.- Returns:
- a V object.
-
getView
public View getView(String viewName)
- Specified by:
getViewin interfaceSurveillanceViewConfigDao
-
getViews
public List<View> getViews()
Use this method to get the generated Views class generated by the XSD.- Specified by:
getViewsin interfaceSurveillanceViewConfigDao- Returns:
- a
org.opennms.netmgt.config.surveillanceViews.Viewsobject.
-
getViewMap
public Map<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:
getDefaultViewin interfaceSurveillanceViewConfigDao- Returns:
- a
Viewobject.
-
-