org.opennms.netmgt.dao
Interface AckdConfigurationDao

All Known Implementing Classes:
DefaultAckdConfigurationDao

public interface AckdConfigurationDao

DAO interface for Ackd configuration

Version:
$Id: $
Author:
David Hustace

Method Summary
 Boolean acknowledgmentMatch(List<String> messageText)
          Utility method for determining if a reply email should acknowledge an acknowledgable
 Boolean clearMatch(List<String> messageText)
          Utility method for determining if a reply email should clear an acknowledgable
 Boolean escalationMatch(List<String> messageText)
          Utility method for determining if a reply email should escalate an acknowledgable
 AckdConfiguration getConfig()
          getConfig
 int getEnabledReaderCount()
          getEnabledReaderCount
 List<Parameter> getParametersForReader(String name)
          getParametersForReader
 Reader getReader(String readerName)
          Utility method to retrieve a readers configuration by name.
 ReaderSchedule getReaderSchedule(String readerName)
          Utility method to retrieve a schedule defined for a reader.
 boolean isReaderEnabled(String readerName)
          Utility method that determines if a named reader's configuration is enabled.
 void reloadConfiguration()
          The underlying Castor 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.
 Boolean unAcknowledgmentMatch(List<String> messageText)
          Utility method for determining if a reply email should unacknoweledge an acknowledgable
 

Method Detail

getConfig

AckdConfiguration getConfig()

getConfig

Returns:
a AckdConfiguration object.

acknowledgmentMatch

Boolean acknowledgmentMatch(List<String> messageText)
Utility method for determining if a reply email should acknowledge an acknowledgable

Parameters:
messageText - a List object.
Returns:
Boolean

clearMatch

Boolean clearMatch(List<String> messageText)
Utility method for determining if a reply email should clear an acknowledgable

Parameters:
messageText - a List object.
Returns:
Boolean

escalationMatch

Boolean escalationMatch(List<String> messageText)
Utility method for determining if a reply email should escalate an acknowledgable

Parameters:
messageText - a List object.
Returns:
Boolean

unAcknowledgmentMatch

Boolean unAcknowledgmentMatch(List<String> messageText)
Utility method for determining if a reply email should unacknoweledge an acknowledgable

Parameters:
messageText - a List object.
Returns:
Boolean

getReaderSchedule

ReaderSchedule getReaderSchedule(String readerName)
Utility method to retrieve a schedule defined for a reader. Each AckdReader requires that a name property is defined and the configuration uses that name to retrieve configuration details for that named reader.

Parameters:
readerName - a String object.
Returns:
a ReaderSchedule

getReader

Reader getReader(String readerName)
Utility method to retrieve a readers configuration by name. Each AckdReader requires that a name property is defined and the configuration uses that name to retrieve configuration details for that named reader.

Parameters:
readerName - a String object.
Returns:
a Reader configuration

isReaderEnabled

boolean isReaderEnabled(String readerName)
Utility method that determines if a named reader's configuration is enabled. Each AckdReader requires that a name property is defined and the configuration uses that name to retrieve configuration details for that named reader.

Parameters:
readerName - a String object.
Returns:
a boolean.

reloadConfiguration

void reloadConfiguration()
                         throws org.springframework.dao.DataAccessResourceFailureException
The underlying Castor 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.

getEnabledReaderCount

int getEnabledReaderCount()

getEnabledReaderCount

Returns:
a int.

getParametersForReader

List<Parameter> getParametersForReader(String name)

getParametersForReader

Parameters:
name - a String object.
Returns:
a List object.


Copyright © 2011. All Rights Reserved.