public class ListChangeDrafts extends java.lang.Object implements RestReadView<ChangeResource>
Modifier and Type | Field and Description |
---|---|
protected ChangeData.Factory |
changeDataFactory |
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(ChangeResource rsrc)
Process the view operation by reading from the resource.
|
java.util.List<CommentInfo> |
getComments(ChangeResource rsrc) |
protected boolean |
includeAuthorInfo() |
protected java.lang.Iterable<Comment> |
listComments(ChangeResource rsrc) |
boolean |
requireAuthentication() |
protected final ChangeData.Factory changeDataFactory
protected final com.google.inject.Provider<CommentJson> commentJson
protected final CommentsUtil commentsUtil
protected java.lang.Iterable<Comment> listComments(ChangeResource rsrc)
protected boolean includeAuthorInfo()
public boolean requireAuthentication()
public java.util.Map<java.lang.String,java.util.List<CommentInfo>> apply(ChangeResource rsrc) throws AuthException, PermissionBackendException
RestReadView
apply
in interface RestReadView<ChangeResource>
rsrc
- resource to read.BinaryResult
to avoid automatic conversion
to JSON.AuthException
- the client is not permitted to access this view.PermissionBackendException
public java.util.List<CommentInfo> getComments(ChangeResource rsrc) throws AuthException, PermissionBackendException