Package com.google.gerrit.server.change
Class ChangeJson
java.lang.Object
com.google.gerrit.server.change.ChangeJson
Produces
ChangeInfo
(which is serialized to JSON afterwards) from ChangeData
.
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 ClassesModifier and TypeClassDescriptionstatic interface
static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.google.common.collect.ImmutableSet<ListChangesOption>
static final SubmitRuleOptions
static final SubmitRuleOptions
-
Method Summary
Modifier and TypeMethodDescriptionformat
(Project.NameKey project, Change.Id id) format
(Project.NameKey project, Change.Id id, org.eclipse.jgit.lib.ObjectId metaRevId) format
(ChangeResource rsrc) format
(RevisionResource rsrc) format
(ChangeData cd) format
(Collection<ChangeData> in) format
(List<QueryResult<ChangeData>> in)
-
Field Details
-
SUBMIT_RULE_OPTIONS_LENIENT
-
SUBMIT_RULE_OPTIONS_STRICT
-
REQUIRE_LAZY_LOAD
-
-
Method Details
-
fix
-
format
-
format
-
format
-
format
-
format
-
format
public List<List<ChangeInfo>> format(List<QueryResult<ChangeData>> in) throws PermissionBackendException - Throws:
PermissionBackendException
-
format
- Throws:
PermissionBackendException
-
format
-
format
public ChangeInfo format(Project.NameKey project, Change.Id id, org.eclipse.jgit.lib.ObjectId metaRevId)
-