com.atlassian.confluence.plugins.like.rest.resources
Class LikableContentResource
java.lang.Object
com.atlassian.confluence.plugins.like.rest.resources.LikableContentResource
public class LikableContentResource
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LikableContentResource
public LikableContentResource(@Qualifier(value="likeManager")
LikeManager likeManager,
ContentEntityManager contentEntityManager,
NetworkService networkService,
UserEntityExpander userEntityExpander,
I18NBeanFactory i18NBeanFactory,
LocaleManager localeManager,
com.atlassian.sal.api.transaction.TransactionTemplate transactionTemplate)
getLikesForIds
public javax.ws.rs.core.Response getLikesForIds(Set<Long> contentIds,
Integer max)
- Parameters:
expand
- the name of the field in the JSON entity to expand.
getLikes
public javax.ws.rs.core.Response getLikes(Long contentId,
String expand,
Integer max)
- 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)
Copyright © 2003–2015 Atlassian. All rights reserved.