public class ChangeJson extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
ChangeJson.AssistedFactory |
static class |
ChangeJson.Factory |
Modifier and Type | Field and Description |
---|---|
static com.google.common.collect.ImmutableSet<ListChangesOption> |
REQUIRE_LAZY_LOAD |
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) |
ChangeInfo |
format(Project.NameKey project,
Change.Id id) |
ChangeInfo |
format(RevisionResource rsrc) |
List<ChangeInfo> |
formatChangeDatas(Collection<ChangeData> in) |
List<List<ChangeInfo>> |
formatQueryResults(List<com.google.gerrit.index.query.QueryResult<ChangeData>> in) |
static ApprovalInfo |
getApprovalInfo(Account.Id id,
Integer value,
VotingRangeInfo permittedVotingRange,
String tag,
Timestamp date) |
RevisionInfo |
getRevisionInfo(ChangeData cd,
PatchSet in) |
ChangeJson |
lazyLoad(boolean load) |
static void |
populateFetchMap(DownloadScheme scheme,
DynamicMap<DownloadCommand> commands,
String projectName,
String refName,
FetchInfo fetchInfo) |
void |
setPluginDefinedAttributesFactory(PluginDefinedAttributesFactory pluginsFactory) |
public static final SubmitRuleOptions SUBMIT_RULE_OPTIONS_LENIENT
public static final SubmitRuleOptions SUBMIT_RULE_OPTIONS_STRICT
public static final com.google.common.collect.ImmutableSet<ListChangesOption> REQUIRE_LAZY_LOAD
public ChangeJson lazyLoad(boolean load)
public ChangeJson fix(FixInput fix)
public void setPluginDefinedAttributesFactory(PluginDefinedAttributesFactory pluginsFactory)
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>> formatQueryResults(List<com.google.gerrit.index.query.QueryResult<ChangeData>> in) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public List<ChangeInfo> formatChangeDatas(Collection<ChangeData> in) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public static ApprovalInfo getApprovalInfo(Account.Id id, Integer value, VotingRangeInfo permittedVotingRange, String tag, Timestamp date)
public RevisionInfo getRevisionInfo(ChangeData cd, PatchSet in) throws PatchListNotAvailableException, GpgException, com.google.gwtorm.server.OrmException, IOException, PermissionBackendException
PatchListNotAvailableException
GpgException
com.google.gwtorm.server.OrmException
IOException
PermissionBackendException
public static void populateFetchMap(DownloadScheme scheme, DynamicMap<DownloadCommand> commands, String projectName, String refName, FetchInfo fetchInfo)