public class ListRevisionDrafts extends Object implements RestReadView<RevisionResource>
Modifier and Type | Field and Description |
---|---|
protected com.google.inject.Provider<CommentJson> |
commentJson |
protected CommentsUtil |
commentsUtil |
protected com.google.inject.Provider<ReviewDb> |
db |
Modifier and Type | Method and Description |
---|---|
Map<String,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 Iterable<Comment> |
listComments(RevisionResource rsrc) |
protected final com.google.inject.Provider<ReviewDb> db
protected final com.google.inject.Provider<CommentJson> commentJson
protected final CommentsUtil commentsUtil
protected Iterable<Comment> listComments(RevisionResource rsrc) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
protected boolean includeAuthorInfo()
public Map<String,List<CommentInfo>> apply(RevisionResource rsrc) throws com.google.gwtorm.server.OrmException, PermissionBackendException
RestReadView
apply
in interface RestReadView<RevisionResource>
rsrc
- resource to read.BinaryResult
to avoid automatic conversion
to JSON.com.google.gwtorm.server.OrmException
PermissionBackendException
public com.google.common.collect.ImmutableList<CommentInfo> getComments(RevisionResource rsrc) throws com.google.gwtorm.server.OrmException, PermissionBackendException
com.google.gwtorm.server.OrmException
PermissionBackendException