public class ChangeResource extends Object implements com.google.gerrit.extensions.restapi.RestResource, com.google.gerrit.extensions.restapi.RestResource.HasETag
Modifier and Type | Class and Description |
---|---|
static interface |
ChangeResource.Factory |
Modifier and Type | Field and Description |
---|---|
static com.google.inject.TypeLiteral<com.google.gerrit.extensions.restapi.RestView<ChangeResource>> |
CHANGE_KIND |
static int |
JSON_FORMAT_VERSION
JSON format version number for ETag computations.
|
Modifier and Type | Method and Description |
---|---|
com.google.gerrit.reviewdb.client.Change |
getChange() |
ChangeControl |
getControl() |
String |
getETag() |
com.google.gerrit.reviewdb.client.Change.Id |
getId() |
ChangeNotes |
getNotes() |
com.google.gerrit.reviewdb.client.Project.NameKey |
getProject() |
IdentifiedUser |
getUser() |
void |
prepareETag(com.google.common.hash.Hasher h,
CurrentUser user) |
public static final int JSON_FORMAT_VERSION
Should be bumped on any JSON format change (new fields, etc.) so that otherwise unmodified changes get new ETags.
public static final com.google.inject.TypeLiteral<com.google.gerrit.extensions.restapi.RestView<ChangeResource>> CHANGE_KIND
public ChangeControl getControl()
public IdentifiedUser getUser()
public com.google.gerrit.reviewdb.client.Change.Id getId()
public com.google.gerrit.reviewdb.client.Change getChange()
public com.google.gerrit.reviewdb.client.Project.NameKey getProject()
public ChangeNotes getNotes()
public void prepareETag(com.google.common.hash.Hasher h, CurrentUser user)
public String getETag()
getETag
in interface com.google.gerrit.extensions.restapi.RestResource.HasETag