Interface FeedbackRepository
-
- All Known Implementing Classes:
ElasticFeedbackRepository
public interface FeedbackRepository
This interface provides an abstraction over storing/retrievingfeedback
to some persistent storage provider.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<AlarmFeedback>
getAllFeedback()
java.util.Collection<AlarmFeedback>
getFeedback(java.lang.String situationKey)
java.util.List<java.lang.String>
getTags(java.lang.String prefix)
void
persist(java.util.List<AlarmFeedback> feedback)
-
-
-
Method Detail
-
persist
void persist(java.util.List<AlarmFeedback> feedback) throws FeedbackException
- Parameters:
feedback
- the feedback to persist- Throws:
FeedbackException
- if the feedback could not be persisted
-
getFeedback
java.util.Collection<AlarmFeedback> getFeedback(java.lang.String situationKey) throws FeedbackException
- Parameters:
situationKey
- the reduction key of the situation to get feedback for- Returns:
- all of the feedback applicable to the given situation
- Throws:
FeedbackException
-
getAllFeedback
java.util.List<AlarmFeedback> getAllFeedback() throws FeedbackException
- Returns:
- all of the feedback present in the repository
- Throws:
FeedbackException
-
getTags
java.util.List<java.lang.String> getTags(java.lang.String prefix) throws FeedbackException
- Returns:
- a list of unique SituationFeedback Tags filtered to include only those beginning with @prefix
- Throws:
FeedbackException
-
-