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
-
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
-
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 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:
PermissionBackendException
-
getComments
public com.google.common.collect.ImmutableList<RobotCommentInfo> getComments(RevisionResource rsrc) throws PermissionBackendException
- Throws:
PermissionBackendException
-
-