|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.activemath.learner.history.NopHistory
public class NopHistory
NoOpHistory is a trivial implementation of the LearnerHistory interface that only returns default values.
| 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(ActivemathEvent event)
|
List<ActivemathEvent> |
getHistoryEntries(ActivemathEvent event,
int firstResult,
int maxResults)
|
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(ActivemathEvent event)
|
int |
getNumResults(HistoryQuery query)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public boolean alreadySeen(String learnerId,
String itemId)
LearnerHistorytrue if an ItemPresentedEvent for the item with the given itemId can ba found,
false otherwise.
alreadySeen in interface LearnerHistorypublic ActivemathEvent fetchEvent(long id)
LearnerHistory
fetchEvent in interface LearnerHistoryid - The id of the event to fetch
public List<ActivemathEvent> getHistoryEntries(ActivemathEvent event,
int firstResult,
int maxResults)
public List<ActivemathEvent> getHistoryEntries(ActivemathEvent event)
public List<ActivemathEvent> getHistoryEntries(HistoryQuery query,
int firstResult,
int maxResults)
getHistoryEntries in interface LearnerHistorypublic List<ActivemathEvent> getHistoryEntries(HistoryQuery query)
LearnerHistoryList of ActivemathEvents that match the supplied query.
getHistoryEntries in interface LearnerHistoryquery - The query that is to be made against the database
List of ActivemathEvents that match the given querypublic int getNumResults(ActivemathEvent event)
public int getNumResults(HistoryQuery query)
getNumResults in interface LearnerHistory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||