Rename instances of TransferConfig to transferConfig
This makes it easier to see what type of config we're looking at without having to jump up to where it's defined. Change-Id: I6bed5de1b081a7f1e3e4143852564b19de2b0225
This commit is contained in:
@@ -41,7 +41,7 @@ public class ConfigInfoImpl extends ConfigInfo {
|
||||
public ConfigInfoImpl(
|
||||
boolean serverEnableSignedPush,
|
||||
ProjectControl control,
|
||||
TransferConfig config,
|
||||
TransferConfig transferConfig,
|
||||
DynamicMap<ProjectConfigEntry> pluginConfigEntries,
|
||||
PluginConfigFactory cfgFactory,
|
||||
AllProjectsName allProjects,
|
||||
@@ -100,11 +100,12 @@ public class ConfigInfoImpl extends ConfigInfo {
|
||||
|
||||
MaxObjectSizeLimitInfo maxObjectSizeLimit = new MaxObjectSizeLimitInfo();
|
||||
maxObjectSizeLimit.value =
|
||||
config.getEffectiveMaxObjectSizeLimit(projectState) == config.getMaxObjectSizeLimit()
|
||||
? config.getFormattedMaxObjectSizeLimit()
|
||||
transferConfig.getEffectiveMaxObjectSizeLimit(projectState)
|
||||
== transferConfig.getMaxObjectSizeLimit()
|
||||
? transferConfig.getFormattedMaxObjectSizeLimit()
|
||||
: p.getMaxObjectSizeLimit();
|
||||
maxObjectSizeLimit.configuredValue = p.getMaxObjectSizeLimit();
|
||||
maxObjectSizeLimit.inheritedValue = config.getFormattedMaxObjectSizeLimit();
|
||||
maxObjectSizeLimit.inheritedValue = transferConfig.getFormattedMaxObjectSizeLimit();
|
||||
this.maxObjectSizeLimit = maxObjectSizeLimit;
|
||||
|
||||
this.submitType = p.getSubmitType();
|
||||
|
||||
@@ -29,7 +29,7 @@ import com.google.inject.Singleton;
|
||||
@Singleton
|
||||
public class GetConfig implements RestReadView<ProjectResource> {
|
||||
private final boolean serverEnableSignedPush;
|
||||
private final TransferConfig config;
|
||||
private final TransferConfig transferConfig;
|
||||
private final DynamicMap<ProjectConfigEntry> pluginConfigEntries;
|
||||
private final PluginConfigFactory cfgFactory;
|
||||
private final AllProjectsName allProjects;
|
||||
@@ -38,13 +38,13 @@ public class GetConfig implements RestReadView<ProjectResource> {
|
||||
@Inject
|
||||
public GetConfig(
|
||||
@EnableSignedPush boolean serverEnableSignedPush,
|
||||
TransferConfig config,
|
||||
TransferConfig transferConfig,
|
||||
DynamicMap<ProjectConfigEntry> pluginConfigEntries,
|
||||
PluginConfigFactory cfgFactory,
|
||||
AllProjectsName allProjects,
|
||||
DynamicMap<RestView<ProjectResource>> views) {
|
||||
this.serverEnableSignedPush = serverEnableSignedPush;
|
||||
this.config = config;
|
||||
this.transferConfig = transferConfig;
|
||||
this.pluginConfigEntries = pluginConfigEntries;
|
||||
this.allProjects = allProjects;
|
||||
this.cfgFactory = cfgFactory;
|
||||
@@ -56,7 +56,7 @@ public class GetConfig implements RestReadView<ProjectResource> {
|
||||
return new ConfigInfoImpl(
|
||||
serverEnableSignedPush,
|
||||
resource.getControl(),
|
||||
config,
|
||||
transferConfig,
|
||||
pluginConfigEntries,
|
||||
cfgFactory,
|
||||
allProjects,
|
||||
|
||||
@@ -58,7 +58,7 @@ public class PutConfig implements RestModifyView<ProjectResource, ConfigInput> {
|
||||
private final Provider<MetaDataUpdate.User> metaDataUpdateFactory;
|
||||
private final ProjectCache projectCache;
|
||||
private final ProjectState.Factory projectStateFactory;
|
||||
private final TransferConfig config;
|
||||
private final TransferConfig transferConfig;
|
||||
private final DynamicMap<ProjectConfigEntry> pluginConfigEntries;
|
||||
private final PluginConfigFactory cfgFactory;
|
||||
private final AllProjectsName allProjects;
|
||||
@@ -71,7 +71,7 @@ public class PutConfig implements RestModifyView<ProjectResource, ConfigInput> {
|
||||
Provider<MetaDataUpdate.User> metaDataUpdateFactory,
|
||||
ProjectCache projectCache,
|
||||
ProjectState.Factory projectStateFactory,
|
||||
TransferConfig config,
|
||||
TransferConfig transferConfig,
|
||||
DynamicMap<ProjectConfigEntry> pluginConfigEntries,
|
||||
PluginConfigFactory cfgFactory,
|
||||
AllProjectsName allProjects,
|
||||
@@ -81,7 +81,7 @@ public class PutConfig implements RestModifyView<ProjectResource, ConfigInput> {
|
||||
this.metaDataUpdateFactory = metaDataUpdateFactory;
|
||||
this.projectCache = projectCache;
|
||||
this.projectStateFactory = projectStateFactory;
|
||||
this.config = config;
|
||||
this.transferConfig = transferConfig;
|
||||
this.pluginConfigEntries = pluginConfigEntries;
|
||||
this.cfgFactory = cfgFactory;
|
||||
this.allProjects = allProjects;
|
||||
@@ -176,7 +176,7 @@ public class PutConfig implements RestModifyView<ProjectResource, ConfigInput> {
|
||||
return new ConfigInfoImpl(
|
||||
serverEnableSignedPush,
|
||||
state.controlFor(user.get()),
|
||||
config,
|
||||
transferConfig,
|
||||
pluginConfigEntries,
|
||||
cfgFactory,
|
||||
allProjects,
|
||||
|
||||
Reference in New Issue
Block a user