Class ListRobotComments
- java.lang.Object
-
- com.google.gerrit.server.restapi.change.ListRobotComments
-
- All Implemented Interfaces:
RestReadView<RevisionResource>
,RestView<RevisionResource>
public class ListRobotComments extends Object implements RestReadView<RevisionResource>
-
-
Field Summary
Fields Modifier and Type Field Description protected com.google.inject.Provider<CommentJson>
commentJson
protected CommentsUtil
commentsUtil
protected com.google.inject.Provider<ReviewDb>
db
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,List<RobotCommentInfo>>
apply(RevisionResource rsrc)
Process the view operation by reading from the resource.com.google.common.collect.ImmutableList<RobotCommentInfo>
getComments(RevisionResource rsrc)
-
-
-
Field Detail
-
db
protected final com.google.inject.Provider<ReviewDb> db
-
commentJson
protected final com.google.inject.Provider<CommentJson> commentJson
-
commentsUtil
protected final CommentsUtil commentsUtil
-
-
Method Detail
-
apply
public Map<String,List<RobotCommentInfo>> apply(RevisionResource rsrc) throws com.google.gwtorm.server.OrmException, PermissionBackendException
Description copied from interface:RestReadView
Process the view operation by reading from the resource.- Specified by:
apply
in interfaceRestReadView<RevisionResource>
- Parameters:
rsrc
- resource to read.- Returns:
- result to return to the client. Use
BinaryResult
to avoid automatic conversion to JSON. - Throws:
com.google.gwtorm.server.OrmException
PermissionBackendException
-
getComments
public com.google.common.collect.ImmutableList<RobotCommentInfo> getComments(RevisionResource rsrc) throws com.google.gwtorm.server.OrmException, PermissionBackendException
- Throws:
com.google.gwtorm.server.OrmException
PermissionBackendException
-
-