public class RevisionResource extends Object implements com.google.gerrit.extensions.restapi.RestResource, com.google.gerrit.extensions.restapi.RestResource.HasETag
Modifier and Type | Field and Description |
---|---|
static com.google.inject.TypeLiteral<com.google.gerrit.extensions.restapi.RestView<RevisionResource>> |
REVISION_KIND |
Constructor and Description |
---|
RevisionResource(ChangeResource change,
com.google.gerrit.reviewdb.client.PatchSet ps) |
RevisionResource(ChangeResource change,
com.google.gerrit.reviewdb.client.PatchSet ps,
com.google.common.base.Optional<ChangeEdit> edit) |
Modifier and Type | Method and Description |
---|---|
com.google.gerrit.reviewdb.client.Change |
getChange() |
ChangeResource |
getChangeResource() |
ChangeControl |
getControl() |
com.google.common.base.Optional<ChangeEdit> |
getEdit() |
String |
getETag() |
ChangeNotes |
getNotes() |
com.google.gerrit.reviewdb.client.PatchSet |
getPatchSet() |
com.google.gerrit.reviewdb.client.Project.NameKey |
getProject() |
boolean |
isCacheable() |
boolean |
isCurrent() |
String |
toString() |
public static final com.google.inject.TypeLiteral<com.google.gerrit.extensions.restapi.RestView<RevisionResource>> REVISION_KIND
public RevisionResource(ChangeResource change, com.google.gerrit.reviewdb.client.PatchSet ps)
public RevisionResource(ChangeResource change, com.google.gerrit.reviewdb.client.PatchSet ps, com.google.common.base.Optional<ChangeEdit> edit)
public boolean isCacheable()
public ChangeResource getChangeResource()
public ChangeControl getControl()
public com.google.gerrit.reviewdb.client.Change getChange()
public com.google.gerrit.reviewdb.client.Project.NameKey getProject()
public ChangeNotes getNotes()
public com.google.gerrit.reviewdb.client.PatchSet getPatchSet()
public String getETag()
getETag
in interface com.google.gerrit.extensions.restapi.RestResource.HasETag
public com.google.common.base.Optional<ChangeEdit> getEdit()
public boolean isCurrent()