|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface LikeManager
Controls all access to Like-ing and Unlike-ing content.
| Method Summary | |
|---|---|
Like |
addLike(ContentEntityObject contentEntity)
Deprecated. since 4.3.1 - Use addLike(com.atlassian.confluence.core.ContentEntityObject, com.atlassian.user.User) with
AuthenticatedUserThreadLocal.getUser() instead. |
Like |
addLike(ContentEntityObject contentEntity,
com.atlassian.user.User user)
Add a like for the provided 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)
Deprecated. since 4.3.1 - Use hasLike(com.atlassian.confluence.core.ContentEntityObject, com.atlassian.user.User) with
AuthenticatedUserThreadLocal.getUser() instead. |
boolean |
hasLike(ContentEntityObject contentEntity,
com.atlassian.user.User user)
Returns true if the provided user likes this content entity. |
void |
removeAllLikesFor(String username)
Removes all likes (for any user) from the specified content entity. |
void |
removeAllLikesOn(ContentEntityObject content)
Removes all likes (for any user) from the specified content entity. |
void |
removeLike(ContentEntityObject contentEntity)
Deprecated. since 4.3.1 - Use removeLike(com.atlassian.confluence.core.ContentEntityObject, com.atlassian.user.User) with
AuthenticatedUserThreadLocal.getUser() instead. |
void |
removeLike(ContentEntityObject contentEntity,
com.atlassian.user.User user)
Remove like from content entity for the current logged in user. |
| Method Detail |
|---|
Like addLike(ContentEntityObject contentEntity)
addLike(com.atlassian.confluence.core.ContentEntityObject, com.atlassian.user.User) with
AuthenticatedUserThreadLocal.getUser() instead.
Like addLike(ContentEntityObject contentEntity,
com.atlassian.user.User user)
user - the usercontentEntity - the content entity to add a like tovoid removeLike(ContentEntityObject contentEntity)
removeLike(com.atlassian.confluence.core.ContentEntityObject, com.atlassian.user.User) with
AuthenticatedUserThreadLocal.getUser() instead.
void removeLike(ContentEntityObject contentEntity,
com.atlassian.user.User user)
user - the usercontentEntity - content entity to remove like fromvoid removeAllLikesOn(ContentEntityObject content)
content - content entityvoid removeAllLikesFor(String username)
username - the name of the user to remove all likes forboolean hasLike(ContentEntityObject contentEntity)
hasLike(com.atlassian.confluence.core.ContentEntityObject, com.atlassian.user.User) with
AuthenticatedUserThreadLocal.getUser() instead.
boolean hasLike(ContentEntityObject contentEntity,
com.atlassian.user.User user)
contentEntity - the content entityuser - the user who would like this content
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 | |||||||||