com.atlassian.confluence.tinymceplugin.rest.entities
Class CommentResultWithActions

java.lang.Object
  extended by com.atlassian.confluence.tinymceplugin.rest.entities.CommentResult
      extended by com.atlassian.confluence.tinymceplugin.rest.entities.CommentResultWithActions

@Immutable
public class CommentResultWithActions
extends CommentResult

A comment plus the actions appropriate for that comment. It is fairly nasty to have the data and it's actions combined like this but is done because it is more efficient than performing to separate REST calls to add/edit a comment and then retrieve the actions appropriate to that comment.

TODO: The code review for this file made some good suggestions. Basically, there should be a ResultWithActions<T> class which composes a <T> (CommentResult in this case). Of course to avoid conditional handling of the resultant JSON in the Javascript code there will need to be a way to expose the nested objects properties on the top level JSON object that is created.


Constructor Summary
CommentResultWithActions()
           
CommentResultWithActions(long id, java.lang.String html, long ownerId, long parentId, boolean asyncRenderSafe, java.util.List<UserAction> primary, java.util.List<UserAction> secondary)
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommentResultWithActions

public CommentResultWithActions()

CommentResultWithActions

public CommentResultWithActions(long id,
                                java.lang.String html,
                                long ownerId,
                                long parentId,
                                boolean asyncRenderSafe,
                                java.util.List<UserAction> primary,
                                java.util.List<UserAction> secondary)


Copyright © 2003-2014 Atlassian. All Rights Reserved.