public class ListRevisionDrafts extends java.lang.Object implements RestReadView<RevisionResource>
Modifier and Type | Field and Description |
---|---|
protected com.google.inject.Provider<CommentJson> |
commentJson |
protected CommentsUtil |
commentsUtil |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.util.List<CommentInfo>> |
apply(RevisionResource rsrc)
Process the view operation by reading from the resource.
|
com.google.common.collect.ImmutableList<CommentInfo> |
getComments(RevisionResource rsrc) |
protected boolean |
includeAuthorInfo() |
protected java.lang.Iterable<Comment> |
listComments(RevisionResource rsrc) |
protected final com.google.inject.Provider<CommentJson> commentJson
protected final CommentsUtil commentsUtil
protected java.lang.Iterable<Comment> listComments(RevisionResource rsrc)
protected boolean includeAuthorInfo()
public java.util.Map<java.lang.String,java.util.List<CommentInfo>> apply(RevisionResource rsrc) throws PermissionBackendException
RestReadView
apply
in interface RestReadView<RevisionResource>
rsrc
- resource to read.BinaryResult
to avoid automatic conversion
to JSON.PermissionBackendException
public com.google.common.collect.ImmutableList<CommentInfo> getComments(RevisionResource rsrc) throws PermissionBackendException
PermissionBackendException