public Collection<JobTemplate> getSuperTemplates() throws SpecNotFoundException, TemplateException { ensureTemplatesResolved(); return ImmutableList.copyOf(this.superTemplates); }
@Override public Config getRawTemplateConfig() throws SpecNotFoundException, TemplateException { ensureTemplatesResolved(); return getRawTemplateConfigHelper(Sets.<JobTemplate>newHashSet()); }
@Override public Config getResolvedConfig(Config userConfig) throws SpecNotFoundException, TemplateException { ensureTemplatesResolved(); return getResolvedConfigHelper(userConfig, Sets.<JobTemplate>newHashSet()); }
@Override public Collection<String> getRequiredConfigList() throws SpecNotFoundException, TemplateException { ensureTemplatesResolved(); Set<String> allRequired = getRequiredConfigListHelper(Sets.<JobTemplate>newHashSet()); final Config rawConfig = getRawTemplateConfig(); Set<String> filteredRequired = Sets.filter(allRequired, new Predicate<String>() { @Override public boolean apply(String input) { return !rawConfig.hasPath(input); } }); return filteredRequired; }
public Collection<JobTemplate> getSuperTemplates() throws SpecNotFoundException, TemplateException { ensureTemplatesResolved(); return ImmutableList.copyOf(this.superTemplates); }
@Override public Config getRawTemplateConfig() throws SpecNotFoundException, TemplateException { ensureTemplatesResolved(); return getRawTemplateConfigHelper(Sets.<JobTemplate>newHashSet()); }
@Override public Config getResolvedConfig(Config userConfig) throws SpecNotFoundException, TemplateException { ensureTemplatesResolved(); return getResolvedConfigHelper(userConfig, Sets.<JobTemplate>newHashSet()); }
@Override public Collection<String> getRequiredConfigList() throws SpecNotFoundException, TemplateException { ensureTemplatesResolved(); Set<String> allRequired = getRequiredConfigListHelper(Sets.<JobTemplate>newHashSet()); final Config rawConfig = getRawTemplateConfig(); Set<String> filteredRequired = Sets.filter(allRequired, new Predicate<String>() { @Override public boolean apply(String input) { return !rawConfig.hasPath(input); } }); return filteredRequired; }