Package org.opennms.netmgt.dao.api
Interface MicroblogConfigurationDao
-
- All Known Implementing Classes:
DefaultMicroblogConfigurationDao
public interface MicroblogConfigurationDao
DAO interface for Microblog configuration- Version:
- $Id: $
- Author:
- Jeff Gehlbach
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MicroblogConfiguration
getConfig()
getConfigMicroblogProfile
getDefaultProfile()
getDefaultProfileMicroblogProfile
getProfile(java.lang.String name)
getProfilevoid
reloadConfiguration()
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.void
saveProfile(MicroblogProfile profile)
Add or update a profile in the configuration.
-
-
-
Method Detail
-
getConfig
MicroblogConfiguration getConfig()
getConfig
- Returns:
- a
MicroblogConfiguration
object.
-
getProfile
MicroblogProfile getProfile(java.lang.String name)
getProfile
- Parameters:
name
- aString
object.- Returns:
- a
MicroblogProfile
object.
-
getDefaultProfile
MicroblogProfile getDefaultProfile()
getDefaultProfile
- Returns:
- a
MicroblogProfile
object.
-
reloadConfiguration
void reloadConfiguration() throws org.springframework.dao.DataAccessResourceFailureException
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. 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 java.io.IOException
Add or update a profile in the configuration.- Parameters:
profile
- the profile- Throws:
java.io.IOException
-
-