Class GetDraftComment
- java.lang.Object
-
- com.google.gerrit.server.restapi.change.GetDraftComment
-
- All Implemented Interfaces:
RestReadView<DraftCommentResource>
,RestView<DraftCommentResource>
public class GetDraftComment extends Object implements RestReadView<DraftCommentResource>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CommentInfo
apply(DraftCommentResource rsrc)
Process the view operation by reading from the resource.
-
-
-
Method Detail
-
apply
public CommentInfo apply(DraftCommentResource rsrc) throws PermissionBackendException
Description copied from interface:RestReadView
Process the view operation by reading from the resource.- Specified by:
apply
in interfaceRestReadView<DraftCommentResource>
- Parameters:
rsrc
- resource to read.- Returns:
- result to return to the client. Use
BinaryResult
to avoid automatic conversion to JSON. - Throws:
PermissionBackendException
-
-