|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.activemath.statistics.UserFeedback
public class UserFeedback
UserFeedbackis a data class containing information about which items a given
User likes resp. dislikes. The like/dislike sets are intended to be filled with
MBase identifiers in String form.
Only UserFeedbackManager is supposed to write to UserFeedbacks, hence all
methods changing state are package-protected.
The public methods are limited to doesUserLike(String) and
doesUserDislike(String) to query whether a user likes or dislikes a given item.
This is at the time of this writing (Aug 2010) only used in the view rendering the content
items.
ItemFeedback,
UserFeedbackManager| Method Summary | |
|---|---|
boolean |
addExerciseSolved(String itemId)
|
boolean |
addPageViewed(String pageId)
|
int |
calcNumExercisesSolved(List<String> exercisesOnPage)
|
boolean |
doesUserDislike(String itemId)
returns true iff this UserFeedbacks set of dislikes contains the
given itemId |
boolean |
doesUserLike(String itemId)
returns true iff this UserFeedbacks set of likes contains the given
itemId |
boolean |
hasSolvedExercise(String itemId)
|
boolean |
hasViewedPage(String pageId)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public String toString()
toString in class Objectpublic boolean doesUserLike(String itemId)
true iff this UserFeedbacks set of likes contains the given
itemId
itemId - the Mbase identifier of the item to query the like state of
true if this UserFeedbacks set of likes contains the given
itemId, false otherwisepublic boolean doesUserDislike(String itemId)
true iff this UserFeedbacks set of dislikes contains the
given itemId
itemId - the Mbase identifier of the item to query the dislike state of
true if this UserFeedbacks set of dislikes contains the
given itemId, false otherwisepublic boolean addPageViewed(String pageId)
public boolean hasViewedPage(String pageId)
public boolean addExerciseSolved(String itemId)
public boolean hasSolvedExercise(String itemId)
public int calcNumExercisesSolved(List<String> exercisesOnPage)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||