|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LikeDao
Persists and retrieves likes.
Likes will be exposed via the transfer object Like
.
Method Summary | |
---|---|
void |
addLike(ContentEntityObject contentEntity)
Add a like for the current logged in user. |
Map<Long,List<Like>> |
getLikes(Collection<? extends ContentEntityObject> contentEntities)
Gets all the likes for the specified content entities (likes are ordered such that recent likes come first). |
List<Like> |
getLikes(ContentEntityObject contentEntity)
Gets all the likes for the specified content entity (likes are ordered such that recent likes come first) |
boolean |
hasLike(ContentEntityObject contentEntity)
Returns true if the current logged in user likes this content entity. |
void |
removeAllLikesFor(String username)
Removes all likes (for any user) from the specified content entity. |
void |
removeAllLikesOn(ContentEntityObject contentEntity)
Removes all likes (for any user) from the specified content entity. |
void |
removeLike(ContentEntityObject contentEntity)
Rremove like from content entity for the current logged in user. |
Method Detail |
---|
void addLike(ContentEntityObject contentEntity)
contentEntity
- the content entity to add a like tovoid removeLike(ContentEntityObject contentEntity)
contentEntity
- content entity to remove like fromvoid removeAllLikesOn(ContentEntityObject contentEntity)
contentEntity
- content entityvoid removeAllLikesFor(String username)
username
- the name of the user to remove all likes forboolean hasLike(ContentEntityObject contentEntity)
contentEntity
- the content entity
List<Like> getLikes(ContentEntityObject contentEntity)
contentEntity
- the content entity
Map<Long,List<Like>> getLikes(Collection<? extends ContentEntityObject> contentEntities)
contentEntities
- content entities
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |