|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LikeEntityDao
Persists and retrieves likes. Should only be accessed via a LikeManager
.
This interface replaces the deprecated LikeDao
Method Summary | |
---|---|
LikeEntity |
addLike(ContentEntityObject contentEntity,
com.atlassian.user.User user)
Add a like on the content entity for the given user. |
java.util.Map<com.atlassian.bonnie.Searchable,java.lang.Integer> |
countLikes(java.util.Collection<? extends com.atlassian.bonnie.Searchable> searchables)
|
int |
countLikes(com.atlassian.bonnie.Searchable contentEntity)
|
java.util.List<LikeEntity> |
getLikeEntities(java.util.Collection<? extends ContentEntityObject> contentEntities)
|
boolean |
hasLike(ContentEntityObject contentEntity,
com.atlassian.user.User user)
Returns true if the given user likes this content entity. |
void |
removeAllLikesFor(java.lang.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,
com.atlassian.user.User user)
Remove like from content entity for the given user. |
Method Detail |
---|
LikeEntity addLike(ContentEntityObject contentEntity, com.atlassian.user.User user)
contentEntity
- the content entity to add a like touser
- User liking the content
void removeLike(ContentEntityObject contentEntity, com.atlassian.user.User user)
contentEntity
- content entity to remove like fromuser
- User removing their Likevoid removeAllLikesOn(ContentEntityObject contentEntity)
contentEntity
- content entityvoid removeAllLikesFor(java.lang.String username)
username
- the name of the user to remove all likes forboolean hasLike(ContentEntityObject contentEntity, com.atlassian.user.User user)
contentEntity
- the content entityuser
- the User the Like is being checked for
java.util.List<LikeEntity> getLikeEntities(java.util.Collection<? extends ContentEntityObject> contentEntities)
int countLikes(com.atlassian.bonnie.Searchable contentEntity)
java.util.Map<com.atlassian.bonnie.Searchable,java.lang.Integer> countLikes(java.util.Collection<? extends com.atlassian.bonnie.Searchable> searchables)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |