code
stringlengths
23
201k
docstring
stringlengths
17
96.2k
func_name
stringlengths
0
235
language
stringclasses
1 value
repo
stringlengths
8
72
path
stringlengths
11
317
url
stringlengths
57
377
license
stringclasses
7 values
@Override public void addPipelineWithoutValidation(String groupName, PipelineConfig pipelineConfig) { groups.addPipelineWithoutValidation(sanitizedGroupName(groupName), pipelineConfig); }
Enumeration of classes somewhere within the config hierarchy that should not be cloned
addPipelineWithoutValidation
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public void update(String groupName, String pipelineName, PipelineConfig pipeline) { if (groups.isEmpty()) { PipelineConfigs configs = new BasicPipelineConfigs(); configs.add(pipeline); groups.add(configs); } groups.update(groupName, pipelineName...
Enumeration of classes somewhere within the config hierarchy that should not be cloned
update
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public boolean exist(int pipelineIndex) { return pipelineIndex < pipelinesFromAllGroups().size(); }
Enumeration of classes somewhere within the config hierarchy that should not be cloned
exist
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public boolean hasPipeline() { return pipelinesFromAllGroups().isEmpty(); }
Enumeration of classes somewhere within the config hierarchy that should not be cloned
hasPipeline
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public PipelineConfig find(String groupName, int pipelineIndex) { return groups.findPipeline(groupName, pipelineIndex); }
Enumeration of classes somewhere within the config hierarchy that should not be cloned
find
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@TestOnly @Override public int numberOfPipelines() { return pipelinesFromAllGroups().size(); }
Enumeration of classes somewhere within the config hierarchy that should not be cloned
numberOfPipelines
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public int numbersOfPipeline(String groupName) { return pipelines(groupName).size(); }
Enumeration of classes somewhere within the config hierarchy that should not be cloned
numbersOfPipeline
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public void groups(List<String> allGroup) { for (PipelineConfigs group : groups) { group.add(allGroup); } }
Enumeration of classes somewhere within the config hierarchy that should not be cloned
groups
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public boolean exist(String groupName, String pipelineName) { PipelineConfigs configs = groups.findGroup(groupName); PipelineConfig pipelineConfig = configs.findBy(new CaseInsensitiveString(pipelineName)); return pipelineConfig != null; }
Enumeration of classes somewhere within the config hierarchy that should not be cloned
exist
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public List<Task> tasksForJob(String pipelineName, String stageName, String jobName) { return jobConfigByName(pipelineName, stageName, jobName, true).tasks(); }
Enumeration of classes somewhere within the config hierarchy that should not be cloned
tasksForJob
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public boolean isSmtpEnabled() { MailHost mailHost = server().mailHost(); return mailHost != null && !mailHost.equals(new MailHost(new GoCipher())); }
Enumeration of classes somewhere within the config hierarchy that should not be cloned
isSmtpEnabled
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public boolean isInFirstGroup(final CaseInsensitiveString pipelineName) { if (groups.isEmpty()) { throw new IllegalStateException("No pipeline group defined yet!"); } return groups.first().hasPipeline(pipelineName); }
Enumeration of classes somewhere within the config hierarchy that should not be cloned
isInFirstGroup
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public boolean hasMultiplePipelineGroups() { return groups.size() > 1; }
Enumeration of classes somewhere within the config hierarchy that should not be cloned
hasMultiplePipelineGroups
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public void accept(PipelineGroupVisitor visitor) { groups.accept(visitor); }
Enumeration of classes somewhere within the config hierarchy that should not be cloned
accept
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public boolean isSecurityEnabled() { return server().isSecurityEnabled(); }
Enumeration of classes somewhere within the config hierarchy that should not be cloned
isSecurityEnabled
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public void setServerConfig(ServerConfig serverConfig) { this.serverConfig = serverConfig; }
Enumeration of classes somewhere within the config hierarchy that should not be cloned
setServerConfig
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public String adminEmail() { if (isSmtpEnabled()) { return server().mailHost().getAdminMail(); } else { return null; } }
Enumeration of classes somewhere within the config hierarchy that should not be cloned
adminEmail
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public boolean hasPipelineGroup(String groupName) { return groups.hasGroup(groupName); }
Enumeration of classes somewhere within the config hierarchy that should not be cloned
hasPipelineGroup
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public PipelineConfigs findGroup(String groupName) { return groups.findGroup(groupName); }
Enumeration of classes somewhere within the config hierarchy that should not be cloned
findGroup
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public boolean isMailHostConfigured() { return !(new MailHost(new GoCipher()).equals(mailHost()) || mailHost() == null); }
Enumeration of classes somewhere within the config hierarchy that should not be cloned
isMailHostConfigured
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public List<PipelineConfig> getAllPipelineConfigs() { if (allPipelineConfigs == null) { AllPipelineConfigs configs = new AllPipelineConfigs(); PipelineGroups groups = getGroups(); for (PipelineConfigs group : groups) { for (PipelineConfig pipelin...
Enumeration of classes somewhere within the config hierarchy that should not be cloned
getAllPipelineConfigs
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public Map<CaseInsensitiveString, PipelineConfig> pipelineConfigsAsMap() { return getAllPipelineConfigs().stream().collect(toMap(PipelineConfig::name, Function.identity())); }
Enumeration of classes somewhere within the config hierarchy that should not be cloned
pipelineConfigsAsMap
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public List<CaseInsensitiveString> getAllPipelineNames() { List<CaseInsensitiveString> names = new ArrayList<>(); for (PipelineConfig config : getAllPipelineConfigs()) { names.add(config.name()); } return names; }
Enumeration of classes somewhere within the config hierarchy that should not be cloned
getAllPipelineNames
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public boolean isAdministrator(String username) { return hasAdminPrivileges(new AdminUser(new CaseInsensitiveString(username))); }
Enumeration of classes somewhere within the config hierarchy that should not be cloned
isAdministrator
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
private boolean hasAdminPrivileges(Admin admin) { return server().security().isAdmin(admin); }
Enumeration of classes somewhere within the config hierarchy that should not be cloned
hasAdminPrivileges
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public void setEnvironments(EnvironmentsConfig environments) { this.environments = environments; }
Enumeration of classes somewhere within the config hierarchy that should not be cloned
setEnvironments
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public Set<MaterialConfig> getAllUniqueMaterialsBelongingToAutoPipelines() { return getUniqueMaterials(true, true); }
Enumeration of classes somewhere within the config hierarchy that should not be cloned
getAllUniqueMaterialsBelongingToAutoPipelines
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public Set<MaterialConfig> getAllUniqueMaterialsBelongingToAutoPipelinesAndConfigRepos() { return getUniqueMaterials(true, false); }
Enumeration of classes somewhere within the config hierarchy that should not be cloned
getAllUniqueMaterialsBelongingToAutoPipelinesAndConfigRepos
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public Set<MaterialConfig> getAllUniqueMaterials() { return getUniqueMaterials(false, true); }
Enumeration of classes somewhere within the config hierarchy that should not be cloned
getAllUniqueMaterials
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public Set<MaterialConfig> getAllUniqueMaterialsOfPipelinesAndConfigRepos() { return getUniqueMaterials(false, false); }
Enumeration of classes somewhere within the config hierarchy that should not be cloned
getAllUniqueMaterialsOfPipelinesAndConfigRepos
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
private Set<MaterialConfig> getUniqueMaterials(boolean ignoreManualPipelines, boolean ignoreConfigRepos) { Set<MaterialConfig> materialConfigs = new HashSet<>(); Set<Map<String, Object>> uniqueMaterials = new HashSet<>(); for (PipelineConfig pipelineConfig : pipelinesFromAllGroups()) { ...
Enumeration of classes somewhere within the config hierarchy that should not be cloned
getUniqueMaterials
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
private Set<MaterialConfig> getUniqueMaterialConfigs() { Set<MaterialConfig> materialConfigs = new HashSet<>(); Set<Map<String, Object>> uniqueMaterials = new HashSet<>(); for (PipelineConfig pipelineConfig : pipelinesFromAllGroups()) { for (MaterialConfig materialConfig : pipelineCo...
Enumeration of classes somewhere within the config hierarchy that should not be cloned
getUniqueMaterialConfigs
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public Set<StageConfig> getStagesUsedAsMaterials(PipelineConfig pipelineConfig) { Set<String> stagesUsedAsMaterials = new HashSet<>(); for (MaterialConfig materialConfig : getAllUniqueMaterials()) { if (materialConfig instanceof DependencyMaterialConfig dep) { s...
Enumeration of classes somewhere within the config hierarchy that should not be cloned
getStagesUsedAsMaterials
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public EnvironmentConfig addEnvironment(String environmentName) { BasicEnvironmentConfig environmentConfig = new BasicEnvironmentConfig(new CaseInsensitiveString(environmentName)); this.addEnvironment(environmentConfig); return environmentConfig; }
Enumeration of classes somewhere within the config hierarchy that should not be cloned
addEnvironment
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public void addEnvironment(BasicEnvironmentConfig config) { environments.add(config); }
Enumeration of classes somewhere within the config hierarchy that should not be cloned
addEnvironment
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public Boolean isPipelineLockable(String pipelineName) { PipelineConfig pipelineConfig = pipelineConfigByName(new CaseInsensitiveString(pipelineName)); if (pipelineConfig.hasExplicitLock()) { return pipelineConfig.explicitLock(); } return false; }
Enumeration of classes somewhere within the config hierarchy that should not be cloned
isPipelineLockable
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public boolean isPipelineUnlockableWhenFinished(String pipelineName) { return pipelineConfigByName(new CaseInsensitiveString(pipelineName)).isPipelineUnlockableWhenFinished(); }
Enumeration of classes somewhere within the config hierarchy that should not be cloned
isPipelineUnlockableWhenFinished
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public Set<ResourceConfig> getAllResources() { final HashSet<ResourceConfig> resourceConfigs = new HashSet<>(); accept((pipelineConfig, stageConfig, jobConfig) -> resourceConfigs.addAll(jobConfig.resourceConfigs())); return resourceConfigs; }
Enumeration of classes somewhere within the config hierarchy that should not be cloned
getAllResources
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public TemplatesConfig getTemplates() { return templatesConfig; }
Enumeration of classes somewhere within the config hierarchy that should not be cloned
getTemplates
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public PipelineTemplateConfig findTemplate(CaseInsensitiveString templateName) { for (PipelineTemplateConfig config : templatesConfig) { if (templateName.equals(config.name())) { return config; } } return null; }
Enumeration of classes somewhere within the config hierarchy that should not be cloned
findTemplate
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public void addTemplate(PipelineTemplateConfig pipelineTemplate) { templatesConfig.add(pipelineTemplate); }
Enumeration of classes somewhere within the config hierarchy that should not be cloned
addTemplate
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public PipelineTemplateConfig getTemplateByName(CaseInsensitiveString templateName) { PipelineTemplateConfig template = getTemplates().templateByName(templateName); if (template == null) { throw new RecordNotFoundException(Template, templateName); } return templ...
Enumeration of classes somewhere within the config hierarchy that should not be cloned
getTemplateByName
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public void setTemplates(TemplatesConfig templates) { this.templatesConfig = templates; }
Enumeration of classes somewhere within the config hierarchy that should not be cloned
setTemplates
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public Iterable<PipelineConfig> getDownstreamPipelines(String pipelineName) { List<PipelineConfig> configs = new ArrayList<>(); for (PipelineConfig pipelineConfig : pipelinesFromAllGroups()) { if (pipelineConfig.dependsOn(new CaseInsensitiveString(pipelineName))) { ...
Enumeration of classes somewhere within the config hierarchy that should not be cloned
getDownstreamPipelines
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public boolean hasVariableInScope(String pipelineName, String variableName) { EnvironmentConfig environmentConfig = environments.findEnvironmentForPipeline(new CaseInsensitiveString(pipelineName)); if (environmentConfig != null) { if (environmentConfig.hasVariable(variableName)...
Enumeration of classes somewhere within the config hierarchy that should not be cloned
hasVariableInScope
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public EnvironmentVariablesConfig variablesFor(String pipelineName) { EnvironmentVariablesConfig pipelineVariables = pipelineConfigByName(new CaseInsensitiveString(pipelineName)).getVariables(); EnvironmentConfig environment = this.environments.findEnvironmentForPipeline(new CaseInsensitiv...
Enumeration of classes somewhere within the config hierarchy that should not be cloned
variablesFor
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public boolean isGroupAdministrator(final CaseInsensitiveString userName) { final List<Role> roles = server().security().memberRoleFor(userName); FindPipelineGroupAdminstrator finder = new FindPipelineGroupAdminstrator(userName, roles); groups.accept(finder); return finder....
Enumeration of classes somewhere within the config hierarchy that should not be cloned
isGroupAdministrator
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public String getMd5() { return md5; }
Enumeration of classes somewhere within the config hierarchy that should not be cloned
getMd5
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public List<ConfigErrors> getAllErrors() { return ErrorCollector.getAllErrors(this); }
Enumeration of classes somewhere within the config hierarchy that should not be cloned
getAllErrors
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public List<ConfigErrors> getAllErrorsExceptFor(Validatable skipValidatable) { List<ConfigErrors> all = getAllErrors(); if (skipValidatable != null) { all.removeAll(ErrorCollector.getAllErrors(skipValidatable)); } return all; }
Enumeration of classes somewhere within the config hierarchy that should not be cloned
getAllErrorsExceptFor
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public List<ConfigErrors> validateAfterPreprocess() { final List<ConfigErrors> allErrors = new ArrayList<>(); new GoConfigGraphWalker(this).walk(new ErrorCollectingHandler(allErrors) { @Override public void handleValidation(Validatable validatable, ValidationContext...
Enumeration of classes somewhere within the config hierarchy that should not be cloned
validateAfterPreprocess
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public void handleValidation(Validatable validatable, ValidationContext context) { validatable.validate(context); }
Enumeration of classes somewhere within the config hierarchy that should not be cloned
handleValidation
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public void copyErrorsTo(CruiseConfig to) { copyErrors(this, to); }
Enumeration of classes somewhere within the config hierarchy that should not be cloned
copyErrorsTo
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
public static <T> void copyErrors(T from, T to) { GoConfigParallelGraphWalker walker = new GoConfigParallelGraphWalker(from, to); walker.walk((rawObject, objectWithErrors) -> rawObject.errors().addAll(objectWithErrors.errors())); }
Enumeration of classes somewhere within the config hierarchy that should not be cloned
copyErrors
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
public static void clearErrors(Validatable obj) { GoConfigGraphWalker walker = new GoConfigGraphWalker(obj); walker.walk((validatable, ctx) -> validatable.errors().clear()); }
Enumeration of classes somewhere within the config hierarchy that should not be cloned
clearErrors
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public PipelineConfigs findGroupOfPipeline(PipelineConfig pipelineConfig) { String groupName = getGroups().findGroupNameByPipeline(pipelineConfig.name()); return findGroup(groupName); }
Enumeration of classes somewhere within the config hierarchy that should not be cloned
findGroupOfPipeline
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public Map<CaseInsensitiveString, List<PipelineConfig>> generatePipelineVsDownstreamMap() { List<PipelineConfig> pipelineConfigs = getAllPipelineConfigs(); Map<CaseInsensitiveString, List<PipelineConfig>> result = new HashMap<>(); for (PipelineConfig currentPipeline : pipelineConf...
Enumeration of classes somewhere within the config hierarchy that should not be cloned
generatePipelineVsDownstreamMap
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public List<PipelineConfig> pipelinesForFetchArtifacts(String pipelineName) { PipelineConfig currentPipeline = pipelineConfigByName(new CaseInsensitiveString(pipelineName)); List<PipelineConfig> pipelinesForFetchArtifact = currentPipeline.allFirstLevelUpstreamPipelines(this); pipel...
Enumeration of classes somewhere within the config hierarchy that should not be cloned
pipelinesForFetchArtifacts
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public Map<CaseInsensitiveString, Map<CaseInsensitiveString, Authorization>> templatesWithAssociatedPipelines() { if (allTemplatesWithAssociatedPipelines == null) { allTemplatesWithAssociatedPipelines = new AllTemplatesWithAssociatedPipelines(); for (PipelineTemplateConfig ...
Enumeration of classes somewhere within the config hierarchy that should not be cloned
templatesWithAssociatedPipelines
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public List<CaseInsensitiveString> pipelinesAssociatedWithTemplate(CaseInsensitiveString templateName) { List<CaseInsensitiveString> pipelines = new ArrayList<>(); if (templateName != null) { for (PipelineConfig pipelineConfig : getAllPipelineConfigs()) { if (pi...
Enumeration of classes somewhere within the config hierarchy that should not be cloned
pipelinesAssociatedWithTemplate
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public List<PipelineConfig> pipelineConfigsAssociatedWithTemplate(CaseInsensitiveString templateName) { List<PipelineConfig> pipelines = new ArrayList<>(); if (templateName != null) { for (PipelineConfig pipelineConfig : getAllPipelineConfigs()) { if (pipelineCo...
Enumeration of classes somewhere within the config hierarchy that should not be cloned
pipelineConfigsAssociatedWithTemplate
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public boolean isArtifactCleanupProhibited(String pipelineName, String stageName) { if (!hasStageConfigNamed(new CaseInsensitiveString(pipelineName), new CaseInsensitiveString(stageName), true)) { return false; } StageConfig stageConfig = stageConfigByName(new CaseInsen...
Enumeration of classes somewhere within the config hierarchy that should not be cloned
isArtifactCleanupProhibited
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public MaterialConfig materialConfigFor(String fingerprint) { for (MaterialConfig materialConfig : getUniqueMaterialConfigs()) { if (materialConfig.getFingerprint().equals(fingerprint)) { return materialConfig; } } return null; }
Enumeration of classes somewhere within the config hierarchy that should not be cloned
materialConfigFor
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public MaterialConfig materialConfigFor(CaseInsensitiveString pipelineName, String fingerprint) { PipelineConfig pipelineConfig = pipelineConfigByName(pipelineName); MaterialConfigs materialConfigs = pipelineConfig.materialConfigs(); for (MaterialConfig materialConfig : materialCon...
Enumeration of classes somewhere within the config hierarchy that should not be cloned
materialConfigFor
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public String sanitizedGroupName(String name) { return BasicPipelineConfigs.sanitizedGroupName(name); }
Enumeration of classes somewhere within the config hierarchy that should not be cloned
sanitizedGroupName
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public void removePackageRepository(String id) { packageRepositories.removePackageRepository(id); }
Enumeration of classes somewhere within the config hierarchy that should not be cloned
removePackageRepository
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public PackageRepositories getPackageRepositories() { return packageRepositories; }
Enumeration of classes somewhere within the config hierarchy that should not be cloned
getPackageRepositories
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public void savePackageRepository(final PackageRepository packageRepository) { packageRepository.clearEmptyConfigurations(); if (StringUtils.isBlank(packageRepository.getRepoId())) { packageRepository.setId(UUID.randomUUID().toString()); } PackageRepository exis...
Enumeration of classes somewhere within the config hierarchy that should not be cloned
savePackageRepository
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public void savePackageDefinition(PackageDefinition packageDefinition) { packageDefinition.clearEmptyConfigurations(); PackageRepository packageRepository = packageRepositories.find(packageDefinition.getRepository().getId()); packageDefinition.setId(UUID.randomUUID().toString()); ...
Enumeration of classes somewhere within the config hierarchy that should not be cloned
savePackageDefinition
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public void setPackageRepositories(PackageRepositories packageRepositories) { this.packageRepositories = packageRepositories; }
Enumeration of classes somewhere within the config hierarchy that should not be cloned
setPackageRepositories
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public SCMs getSCMs() { return scms; }
Enumeration of classes somewhere within the config hierarchy that should not be cloned
getSCMs
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public void setSCMs(SCMs scms) { this.scms = scms; }
Enumeration of classes somewhere within the config hierarchy that should not be cloned
setSCMs
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public boolean canDeletePackageRepository(PackageRepository repository) { return groups.canDeletePackageRepository(repository); }
Enumeration of classes somewhere within the config hierarchy that should not be cloned
canDeletePackageRepository
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public boolean canDeletePluggableSCMMaterial(SCM scmConfig) { return groups.canDeletePluggableSCMMaterial(scmConfig); }
Enumeration of classes somewhere within the config hierarchy that should not be cloned
canDeletePluggableSCMMaterial
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public List<PipelineConfig> pipelinesAssociatedWithPluggableSCM(SCM scmConfig) { List<PipelineConfig> pipelines = new ArrayList<>(); if (scmConfig != null) { for (PipelineConfig pipelineConfig : getAllPipelineConfigs()) { for (PluggableSCMMaterialConfig pluggabl...
Enumeration of classes somewhere within the config hierarchy that should not be cloned
pipelinesAssociatedWithPluggableSCM
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public List<PipelineConfig> pipelinesAssociatedWithPackage(PackageDefinition packageDefinition) { return getAllPipelineConfigs().stream() .filter(pipeline -> pipeline.packageMaterialConfigs().stream() .anyMatch(materialConfig -> materialConfig.getPackageId()...
Enumeration of classes somewhere within the config hierarchy that should not be cloned
pipelinesAssociatedWithPackage
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public List<PipelineConfig> pipelinesAssociatedWithPackageRepository(PackageRepository packageRepository) { return getAllPipelineConfigs().stream() .filter(pipeline -> pipeline.packageMaterialConfigs().stream() .anyMatch(materialConfig -> materialConfig.getP...
Enumeration of classes somewhere within the config hierarchy that should not be cloned
pipelinesAssociatedWithPackageRepository
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public void setPartials(List<PartialConfig> partials) { this.partials = partials; }
Enumeration of classes somewhere within the config hierarchy that should not be cloned
setPartials
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public List<PartialConfig> getPartials() { return partials; }
Enumeration of classes somewhere within the config hierarchy that should not be cloned
getPartials
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public List<PipelineConfig> getAllLocalPipelineConfigs(boolean excludeMembersOfRemoteEnvironments) { return strategy.getAllLocalPipelineConfigs(excludeMembersOfRemoteEnvironments); }
Enumeration of classes somewhere within the config hierarchy that should not be cloned
getAllLocalPipelineConfigs
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public boolean isLocal() { return this.strategy.isLocal(); }
Enumeration of classes somewhere within the config hierarchy that should not be cloned
isLocal
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public ConfigOrigin getOrigin() { return strategy.getOrigin(); }
Enumeration of classes somewhere within the config hierarchy that should not be cloned
getOrigin
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public void setOrigins(ConfigOrigin origins) { this.strategy.setOrigins(origins); }
Enumeration of classes somewhere within the config hierarchy that should not be cloned
setOrigins
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public void visit(PipelineConfigs pipelineConfigs) { if (pipelineConfigs.getAuthorization().isUserAnAdmin(username, roles)) { isGroupAdmin = true; } }
Enumeration of classes somewhere within the config hierarchy that should not be cloned
visit
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public ArtifactStores getArtifactStores() { return artifactStores; }
Enumeration of classes somewhere within the config hierarchy that should not be cloned
getArtifactStores
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public void setArtifactStores(ArtifactStores artifactStores) { this.artifactStores = artifactStores; }
Enumeration of classes somewhere within the config hierarchy that should not be cloned
setArtifactStores
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public void encryptSecureProperties(CruiseConfig preprocessed) { for (PipelineTemplateConfig template : getTemplates()) { template.encryptSecureProperties(preprocessed, preprocessed.getTemplateByName(template.name())); } for (PipelineConfig pipelineConfig : getAllPipel...
Enumeration of classes somewhere within the config hierarchy that should not be cloned
encryptSecureProperties
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof BasicCruiseConfig that)) return false; if (serverConfig != null ? !serverConfig.equals(that.serverConfig) : that.serverConfig != null) return false; if (elasticConfig != null ? !elasticConfig....
Enumeration of classes somewhere within the config hierarchy that should not be cloned
equals
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public int hashCode() { int result = serverConfig != null ? serverConfig.hashCode() : 0; result = 31 * result + (elasticConfig != null ? elasticConfig.hashCode() : 0); result = 31 * result + (artifactStores != null ? artifactStores.hashCode() : 0); result = 31 * result + (g...
Enumeration of classes somewhere within the config hierarchy that should not be cloned
hashCode
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicCruiseConfig.java
Apache-2.0
@Override public void validate(ValidationContext validationContext) { // each of these references is defined in this.origin for (EnvironmentPipelineConfig pipelineRefConfig : this.pipelines) { ConfigReposConfig configRepos = validationContext.getConfigRepos(); PipelineConfig ...
Understands the current persistent information related to a logical grouping of machines
validate
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicEnvironmentConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicEnvironmentConfig.java
Apache-2.0
@Override public boolean validateTree(ConfigSaveValidationContext validationContext, CruiseConfig preprocessedConfig) { validate(validationContext); preprocessedConfig.getEnvironments().validate(validationContext); boolean isValid = ErrorCollector.getAllErrors(this).isEmpty(); Vali...
Understands the current persistent information related to a logical grouping of machines
validateTree
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicEnvironmentConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicEnvironmentConfig.java
Apache-2.0
@Override public Optional<ConfigOrigin> originForAgent(String agentUuid) { if (this.hasAgent(agentUuid)) { return Optional.of(this.getOrigin()); } return Optional.empty(); }
Understands the current persistent information related to a logical grouping of machines
originForAgent
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicEnvironmentConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicEnvironmentConfig.java
Apache-2.0
private String displayNameFor(ConfigOrigin origin) { return origin != null ? origin.displayName() : "cruise-config.xml"; }
Understands the current persistent information related to a logical grouping of machines
displayNameFor
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicEnvironmentConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicEnvironmentConfig.java
Apache-2.0
@Override public ConfigErrors errors() { return configErrors; }
Understands the current persistent information related to a logical grouping of machines
errors
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicEnvironmentConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicEnvironmentConfig.java
Apache-2.0
@Override public void addError(String fieldName, String message) { configErrors.add(fieldName, message); }
Understands the current persistent information related to a logical grouping of machines
addError
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicEnvironmentConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicEnvironmentConfig.java
Apache-2.0
@Override public EnvironmentPipelineMatcher createMatcher() { return new EnvironmentPipelineMatcher(name, agents.getUuids(), pipelines); }
Understands the current persistent information related to a logical grouping of machines
createMatcher
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicEnvironmentConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicEnvironmentConfig.java
Apache-2.0
@Override public boolean hasAgent(String uuid) { return agents.stream().anyMatch(agent -> agent.hasUuid(uuid)); }
Understands the current persistent information related to a logical grouping of machines
hasAgent
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicEnvironmentConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicEnvironmentConfig.java
Apache-2.0
@Override public boolean validateContainsAgentUUIDsFrom(Set<String> uuids) { return agents.stream().allMatch(agent -> agent.validateUuidPresent(name, uuids)); }
Understands the current persistent information related to a logical grouping of machines
validateContainsAgentUUIDsFrom
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicEnvironmentConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicEnvironmentConfig.java
Apache-2.0
@Override public boolean containsPipeline(final CaseInsensitiveString pipelineName) { return pipelines.containsPipelineNamed(pipelineName); }
Understands the current persistent information related to a logical grouping of machines
containsPipeline
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicEnvironmentConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicEnvironmentConfig.java
Apache-2.0
@Override public void addAgent(String uuid) { agents.add(new EnvironmentAgentConfig(uuid)); }
Understands the current persistent information related to a logical grouping of machines
addAgent
java
gocd/gocd
config/config-api/src/main/java/com/thoughtworks/go/config/BasicEnvironmentConfig.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/BasicEnvironmentConfig.java
Apache-2.0