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