Package org.opennms.netmgt.dao.api
Interface MicroblogConfigurationDao
-
- All Known Implementing Classes:
DefaultMicroblogConfigurationDao
public interface MicroblogConfigurationDaoDAO interface for Microblog configuration- Version:
- $Id: $
- Author:
- Jeff Gehlbach
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MicroblogConfigurationgetConfig()getConfigMicroblogProfilegetDefaultProfile()getDefaultProfileMicroblogProfilegetProfile(String name)getProfilevoidreloadConfiguration()The underlying XML-based DAO abstraction in the default implementation doesn't provide access to the container so this method is defined so that access to the container doesn't have to be exposed and a reload can still be controlled by the user.voidsaveProfile(MicroblogProfile profile)Add or update a profile in the configuration.
-
-
-
Method Detail
-
getConfig
MicroblogConfiguration getConfig()
getConfig
- Returns:
- a
MicroblogConfigurationobject.
-
getProfile
MicroblogProfile getProfile(String name)
getProfile
- Parameters:
name- aStringobject.- Returns:
- a
MicroblogProfileobject.
-
getDefaultProfile
MicroblogProfile getDefaultProfile()
getDefaultProfile
- Returns:
- a
MicroblogProfileobject.
-
reloadConfiguration
void reloadConfiguration() throws org.springframework.dao.DataAccessResourceFailureExceptionThe underlying XML-based DAO abstraction in the default implementation doesn't provide access to the container so this method is defined so that access to the container doesn't have to be exposed and a reload can still be controlled by the user. Automatically reading in new values if the file changes is a different use case from expecting the services to alter their state based on a configuration change. This method will most likely be used with event processing and possibly in the ReST API.- Throws:
org.springframework.dao.DataAccessResourceFailureException- if any.
-
saveProfile
void saveProfile(MicroblogProfile profile) throws IOException
Add or update a profile in the configuration.- Parameters:
profile- the profile- Throws:
IOException
-
-