com.atlassian.confluence.plugins.like.rest.resources
Class LikableContentResource

java.lang.Object
  extended by com.atlassian.confluence.plugins.like.rest.resources.LikableContentResource

public class LikableContentResource
extends java.lang.Object


Constructor Summary
LikableContentResource(LikeManager likeManager, ContentEntityManager contentEntityManager, FollowManager followManager, UserEntityExpander userEntityExpander, I18NBeanFactory i18NBeanFactory, LocaleManager localeManager, com.atlassian.sal.api.transaction.TransactionTemplate transactionTemplate)
           
 
Method Summary
 javax.ws.rs.core.Response addLike(java.lang.Long contentId)
           
 javax.ws.rs.core.Response getCommentLikes(java.lang.Long contentId)
           
 javax.ws.rs.core.Response getLikes(java.lang.Long contentId, java.lang.String expand, java.lang.Integer max)
           
 javax.ws.rs.core.Response removeLike(java.lang.Long contentId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LikableContentResource

public LikableContentResource(@Qualifier(value="likeManager")
                              LikeManager likeManager,
                              ContentEntityManager contentEntityManager,
                              FollowManager followManager,
                              UserEntityExpander userEntityExpander,
                              I18NBeanFactory i18NBeanFactory,
                              LocaleManager localeManager,
                              com.atlassian.sal.api.transaction.TransactionTemplate transactionTemplate)
Method Detail

getLikes

public javax.ws.rs.core.Response getLikes(java.lang.Long contentId,
                                          java.lang.String expand,
                                          java.lang.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(java.lang.Long contentId)

removeLike

public javax.ws.rs.core.Response removeLike(java.lang.Long contentId)

getCommentLikes

public javax.ws.rs.core.Response getCommentLikes(java.lang.Long contentId)


Copyright © 2003-2014 Atlassian. All Rights Reserved.