Package org.opennms.netmgt.dao.jaxb
Class DefaultMicroblogConfigurationDao
- java.lang.Object
-
- org.opennms.core.xml.AbstractJaxbConfigDao<MicroblogConfiguration,MicroblogConfiguration>
-
- org.opennms.netmgt.dao.jaxb.DefaultMicroblogConfigurationDao
-
- All Implemented Interfaces:
MicroblogConfigurationDao
,org.springframework.beans.factory.InitializingBean
public class DefaultMicroblogConfigurationDao extends AbstractJaxbConfigDao<MicroblogConfiguration,MicroblogConfiguration> implements MicroblogConfigurationDao
Default implementation ofMicroblogConfiguration
containing utility methods for manipulating theMicroblogNotificationStrategy
and companion classes.- Version:
- $Id: $
- Author:
- Jeff Gehlbach
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opennms.core.xml.AbstractJaxbConfigDao
AbstractJaxbConfigDao.JaxbReloadCallback
-
-
Constructor Summary
Constructors Constructor Description DefaultMicroblogConfigurationDao()
Constructor for DefaultMicroblogConfigurationDao.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MicroblogConfiguration
getConfig()
getConfigMicroblogProfile
getDefaultProfile()
getDefaultProfileMicroblogProfile
getProfile(java.lang.String name)
getProfilevoid
reloadConfiguration()
The exception boils up from the container class The container class should indicate this.void
saveProfile(MicroblogProfile profile)
Add or update a profile in the configuration.MicroblogConfiguration
translateConfig(MicroblogConfiguration config)
translateConfig-
Methods inherited from class org.opennms.core.xml.AbstractJaxbConfigDao
addOnReloadedCallback, afterPropertiesSet, getConfigResource, getContainer, getDescription, getReloadCheckInterval, loadConfig, setConfigResource, setReloadCheckInterval
-
-
-
-
Method Detail
-
getConfig
public MicroblogConfiguration getConfig()
getConfig
- Specified by:
getConfig
in interfaceMicroblogConfigurationDao
- Returns:
- a
MicroblogConfiguration
object.
-
translateConfig
public MicroblogConfiguration translateConfig(MicroblogConfiguration config)
translateConfig
- Specified by:
translateConfig
in classAbstractJaxbConfigDao<MicroblogConfiguration,MicroblogConfiguration>
- Parameters:
config
- a K object.- Returns:
- a V object.
-
reloadConfiguration
public void reloadConfiguration() throws org.springframework.dao.DataAccessResourceFailureException
The exception boils up from the container class The container class should indicate this.- Specified by:
reloadConfiguration
in interfaceMicroblogConfigurationDao
- Throws:
org.springframework.dao.DataAccessResourceFailureException
- if any.
-
getDefaultProfile
public MicroblogProfile getDefaultProfile()
getDefaultProfile
- Specified by:
getDefaultProfile
in interfaceMicroblogConfigurationDao
- Returns:
- a
MicroblogProfile
object.
-
getProfile
public MicroblogProfile getProfile(java.lang.String name)
getProfile
- Specified by:
getProfile
in interfaceMicroblogConfigurationDao
- Parameters:
name
- aString
object.- Returns:
- a
MicroblogProfile
object.
-
saveProfile
public void saveProfile(MicroblogProfile profile) throws java.io.IOException
Description copied from interface:MicroblogConfigurationDao
Add or update a profile in the configuration.- Specified by:
saveProfile
in interfaceMicroblogConfigurationDao
- Parameters:
profile
- the profile- Throws:
java.io.IOException
-
-