public class ChangeJson extends Object
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.
Modifier and Type | Class and Description |
---|---|
static interface |
ChangeJson.AssistedFactory |
static class |
ChangeJson.Factory |
Modifier and Type | Field and Description |
---|---|
static SubmitRuleOptions |
SUBMIT_RULE_OPTIONS_LENIENT |
static SubmitRuleOptions |
SUBMIT_RULE_OPTIONS_STRICT |
Modifier and Type | Method and Description |
---|---|
ChangeJson |
fix(FixInput fix) |
ChangeInfo |
format(Change change) |
ChangeInfo |
format(ChangeData cd) |
ChangeInfo |
format(ChangeResource rsrc) |
List<ChangeInfo> |
format(Collection<ChangeData> in) |
List<List<ChangeInfo>> |
format(List<QueryResult<ChangeData>> in) |
ChangeInfo |
format(Project.NameKey project,
Change.Id id) |
<I extends ChangeInfo> |
format(Project.NameKey project,
Change.Id id,
Supplier<I> changeInfoSupplier) |
ChangeInfo |
format(RevisionResource rsrc) |
public static final SubmitRuleOptions SUBMIT_RULE_OPTIONS_LENIENT
public static final SubmitRuleOptions SUBMIT_RULE_OPTIONS_STRICT
public ChangeJson fix(FixInput fix)
public ChangeInfo format(ChangeResource rsrc) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public ChangeInfo format(Change change) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public ChangeInfo format(Project.NameKey project, Change.Id id) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public ChangeInfo format(ChangeData cd) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public ChangeInfo format(RevisionResource rsrc) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public List<List<ChangeInfo>> format(List<QueryResult<ChangeData>> in) throws PermissionBackendException
PermissionBackendException
public List<ChangeInfo> format(Collection<ChangeData> in) throws com.google.gwtorm.server.OrmException, PermissionBackendException
com.google.gwtorm.server.OrmException
PermissionBackendException
public <I extends ChangeInfo> I format(Project.NameKey project, Change.Id id, Supplier<I> changeInfoSupplier) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException