| Constructor and Description |
|---|
HibernateLikeDao(LikeEntityDao likeEntityDao) |
| Modifier and Type | Method and Description |
|---|---|
void |
addLike(ContentEntityObject contentEntity)
Add a like on the content entity for the currently logged-in user.
|
Like |
addLike(ContentEntityObject contentEntity,
com.atlassian.user.User user)
Add a like on the content entity for the given 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.
|
boolean |
hasLike(ContentEntityObject contentEntity,
com.atlassian.user.User user)
Returns true if the given 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)
Remove like from content entity for the currently logged-in user.
|
void |
removeLike(ContentEntityObject contentEntity,
com.atlassian.user.User user)
Remove like from content entity for the given user.
|
public HibernateLikeDao(LikeEntityDao likeEntityDao)
public Like addLike(ContentEntityObject contentEntity, com.atlassian.user.User user)
LikeDaopublic void removeLike(ContentEntityObject contentEntity, com.atlassian.user.User user)
LikeDaoremoveLike in interface LikeDaocontentEntity - content entity to remove like fromuser - User removing their Likepublic void removeAllLikesOn(ContentEntityObject contentEntity)
LikeDaoremoveAllLikesOn in interface LikeDaocontentEntity - content entitypublic void removeAllLikesFor(String username)
LikeDaoremoveAllLikesFor in interface LikeDaousername - the name of the user to remove all likes forpublic boolean hasLike(ContentEntityObject contentEntity, com.atlassian.user.User user)
LikeDaopublic List<Like> getLikes(ContentEntityObject contentEntity)
LikeDaopublic Map<Long,List<Like>> getLikes(Collection<? extends ContentEntityObject> contentEntities)
LikeDaopublic void addLike(ContentEntityObject contentEntity)
LikeDaopublic void removeLike(ContentEntityObject contentEntity)
LikeDaoremoveLike in interface LikeDaocontentEntity - content entity to remove like frompublic boolean hasLike(ContentEntityObject contentEntity)
LikeDaoCopyright © 2003–2017 Atlassian. All rights reserved.