com.atlassian.confluence.it.rpc
Class LikesRpc

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

public class LikesRpc
extends java.lang.Object

Provides Like-plugin RPC calls.

Since:
4.2

Method Summary
 java.util.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 java.util.List<Like> getLikes(ContentEntity content,
                                     User user)
                              throws java.lang.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:
java.lang.Exception


Copyright © 2003-2014 Atlassian. All Rights Reserved.