Class LikableContentResource
- java.lang.Object
-
- com.atlassian.confluence.plugins.like.rest.resources.LikableContentResource
-
public class LikableContentResource extends Object
-
-
Constructor Summary
Constructors Constructor Description LikableContentResource(LikeManager likeManager, ContentEntityManager contentEntityManager, NetworkService networkService, UserEntityExpander userEntityExpander, com.atlassian.sal.api.transaction.TransactionTemplate transactionTemplate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
addLike(Long contentId)
javax.ws.rs.core.Response
getCommentLikes(Long contentId)
javax.ws.rs.core.Response
getLikes(Long contentId, String expand, Integer max, Boolean commentLikes)
javax.ws.rs.core.Response
getLikesForIds(Set<Long> contentIds, Integer max)
Get the likes for a list of contentsjavax.ws.rs.core.Response
removeLike(Long contentId)
-
-
-
Constructor Detail
-
LikableContentResource
public LikableContentResource(@Qualifier("likeManager") LikeManager likeManager, ContentEntityManager contentEntityManager, NetworkService networkService, UserEntityExpander userEntityExpander, com.atlassian.sal.api.transaction.TransactionTemplate transactionTemplate)
-
-
Method Detail
-
getLikesForIds
public javax.ws.rs.core.Response getLikesForIds(Set<Long> contentIds, Integer max)
Get the likes for a list of contents- Parameters:
contentIds
- a list of content IDsmax
- the maximum number of likes that can be returned
-
getLikes
public javax.ws.rs.core.Response getLikes(Long contentId, String expand, Integer max, Boolean commentLikes)
- Parameters:
expand
- the name of the field in the JSON entity to expand. The value of "user" has been deprecated as the user will always be expanded.
-
addLike
public javax.ws.rs.core.Response addLike(Long contentId)
-
removeLike
public javax.ws.rs.core.Response removeLike(Long contentId)
-
getCommentLikes
public javax.ws.rs.core.Response getCommentLikes(Long contentId)
-
-