com.atlassian.confluence.it.rpc
Class LikesRpc

java.lang.Object
  extended by com.atlassian.confluence.it.rpc.LikesRpc

public class LikesRpc
extends Object

Provides Like-plugin RPC calls.

Since:
4.2

Method Summary
 List<Like> getLikes(ContentEntity content, User user)
          gets the likes on the piece of content
 void like(ContentEntity content, User user)
          Have the specified user like the specified content.
 void unlike(ContentEntity content, User user)
          Have the specified user UNlike the specified content.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

like

public void like(ContentEntity content,
                 User user)
Have the specified user like the specified content.


unlike

public void unlike(ContentEntity content,
                   User user)
Have the specified user UNlike the specified content.


getLikes

public List<Like> getLikes(ContentEntity content,
                           User user)
                    throws Exception
gets the likes on the piece of content

Parameters:
content - - the content to get the likes for
user - - the user for an auth context
Returns:
Throws:
Exception


Copyright © 2003–2015 Atlassian. All rights reserved.