|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface LearnerHistory
This is an Interface that decouples the actual history implementation from the usage in the webapp.
| Method Summary | |
|---|---|
boolean |
alreadySeen(String learnerId,
String itemId)
returns true if an ItemPresentedEvent for the item with the given itemId can ba found,
false otherwise. |
ActivemathEvent |
fetchEvent(long id)
returns the event stored in the history with the given id, or null if no such event exists |
List<ActivemathEvent> |
getHistoryEntries(HistoryQuery query)
Should return a List of ActivemathEvents that match the supplied query. |
List<ActivemathEvent> |
getHistoryEntries(HistoryQuery query,
int firstResult,
int maxResults)
|
int |
getNumResults(HistoryQuery query)
|
| Method Detail |
|---|
ActivemathEvent fetchEvent(long id)
id - The id of the event to fetch
boolean alreadySeen(String learnerId,
String itemId)
true if an ItemPresentedEvent for the item with the given itemId can ba found,
false otherwise.
List<ActivemathEvent> getHistoryEntries(HistoryQuery query)
List of ActivemathEvents that match the supplied query.
query - The query that is to be made against the database
List of ActivemathEvents that match the given query
List<ActivemathEvent> getHistoryEntries(HistoryQuery query,
int firstResult,
int maxResults)
int getNumResults(HistoryQuery query)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||