public class LikableContentResource extends Object
Constructor and Description |
---|
LikableContentResource(LikeManager likeManager,
ContentEntityManager contentEntityManager,
NetworkService networkService,
UserEntityExpander userEntityExpander,
com.atlassian.sal.api.transaction.TransactionTemplate transactionTemplate) |
Modifier and Type | Method and 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 contents
|
javax.ws.rs.core.Response |
removeLike(Long contentId) |
public LikableContentResource(@Qualifier(value="likeManager") LikeManager likeManager, ContentEntityManager contentEntityManager, NetworkService networkService, UserEntityExpander userEntityExpander, com.atlassian.sal.api.transaction.TransactionTemplate transactionTemplate)
public javax.ws.rs.core.Response getLikesForIds(Set<Long> contentIds, Integer max)
contentIds
- a list of content IDsmax
- the maximum number of likes that can be returnedpublic javax.ws.rs.core.Response getLikes(Long contentId, String expand, Integer max, Boolean commentLikes)
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.public javax.ws.rs.core.Response addLike(Long contentId)
public javax.ws.rs.core.Response removeLike(Long contentId)
public javax.ws.rs.core.Response getCommentLikes(Long contentId)
Copyright © 2003–2020 Atlassian. All rights reserved.
View cookie preferences