Package com.google.gerrit.server.change
Class ChangeJson
- java.lang.Object
-
- com.google.gerrit.server.change.ChangeJson
-
public class ChangeJson extends Object
ProducesChangeInfo
(which is serialized to JSON afterwards) fromChangeData
.This is intended to be used on request scope, but may be used for converting multiple
ChangeData
objects from different sources.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ChangeJson.AssistedFactory
static class
ChangeJson.Factory
-
Field Summary
Fields Modifier and Type Field Description static SubmitRuleOptions
SUBMIT_RULE_OPTIONS_LENIENT
static SubmitRuleOptions
SUBMIT_RULE_OPTIONS_STRICT
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChangeJson
fix(FixInput fix)
ChangeInfo
format(Change change)
ChangeInfo
format(Change change, org.eclipse.jgit.lib.ObjectId metaRevId)
ChangeInfo
format(Project.NameKey project, Change.Id id)
ChangeInfo
format(Project.NameKey project, Change.Id id, org.eclipse.jgit.lib.ObjectId metaRevId)
ChangeInfo
format(ChangeResource rsrc)
ChangeInfo
format(RevisionResource rsrc)
ChangeInfo
format(ChangeData cd)
List<ChangeInfo>
format(Collection<ChangeData> in)
List<List<ChangeInfo>>
format(List<QueryResult<ChangeData>> in)
-
-
-
Field Detail
-
SUBMIT_RULE_OPTIONS_LENIENT
public static final SubmitRuleOptions SUBMIT_RULE_OPTIONS_LENIENT
-
SUBMIT_RULE_OPTIONS_STRICT
public static final SubmitRuleOptions SUBMIT_RULE_OPTIONS_STRICT
-
-
Method Detail
-
fix
public ChangeJson fix(FixInput fix)
-
format
public ChangeInfo format(ChangeResource rsrc)
-
format
public ChangeInfo format(Change change)
-
format
public ChangeInfo format(Change change, org.eclipse.jgit.lib.ObjectId metaRevId)
-
format
public ChangeInfo format(ChangeData cd)
-
format
public ChangeInfo format(RevisionResource rsrc)
-
format
public List<List<ChangeInfo>> format(List<QueryResult<ChangeData>> in) throws PermissionBackendException
- Throws:
PermissionBackendException
-
format
public List<ChangeInfo> format(Collection<ChangeData> in) throws PermissionBackendException
- Throws:
PermissionBackendException
-
format
public ChangeInfo format(Project.NameKey project, Change.Id id)
-
format
public ChangeInfo format(Project.NameKey project, Change.Id id, org.eclipse.jgit.lib.ObjectId metaRevId)
-
-