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 List<AlarmFeedback>
getAllFeedback()
Collection<AlarmFeedback>
getFeedback(String situationKey)
List<String>
getTags(String prefix)
void
persist(List<AlarmFeedback> feedback)
-
-
-
Method Detail
-
persist
void persist(List<AlarmFeedback> feedback) throws FeedbackException
- Parameters:
feedback
- the feedback to persist- Throws:
FeedbackException
- if the feedback could not be persisted
-
getFeedback
Collection<AlarmFeedback> getFeedback(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
List<AlarmFeedback> getAllFeedback() throws FeedbackException
- Returns:
- all of the feedback present in the repository
- Throws:
FeedbackException
-
getTags
List<String> getTags(String prefix) throws FeedbackException
- Returns:
- a list of unique SituationFeedback Tags filtered to include only those beginning with @prefix
- Throws:
FeedbackException
-
-