if (d.getGlobalConfigPage()==null) continue;
@CheckForNull @Override public CNode describe(GlobalConfigurationCategory instance, ConfigurationContext context) { final Mapping mapping = new Mapping(); Jenkins.getInstance().getExtensionList(Descriptor.class).stream() .filter(d -> d.getCategory() == category) .filter(d -> d.getGlobalConfigPage() != null) .forEach(d -> describe(d, mapping, context)); return mapping; }
@Override public Set describe() { return (Set) Jenkins.getInstance().getExtensionList(Descriptor.class).stream() .filter(d -> d.getCategory() == category) .filter(d -> d.getGlobalConfigPage() != null) .map(d -> new DescriptorConfigurator(d)) .filter(GlobalConfigurationCategoryConfigurator::reportDescriptorWithoutSetters) .map(c -> new Attribute<GlobalConfigurationCategory, Object>(c.getName(), c.getTarget()).setter(NOP)) .collect(Collectors.toSet()); }
public String superGetGlobalConfigPage() { return super.getGlobalConfigPage(); }
/** * Gets all the descriptors sorted by their inheritance tree of {@link Describable} * so that descriptors of similar types come nearby. */ public static Collection<Descriptor> getSortedDescriptorsForGlobalConfig() { Map<String,Descriptor> r = new TreeMap<String, Descriptor>(); for (Descriptor<?> d : Hudson.getInstance().getExtensionList(Descriptor.class)) { if (globalConfigIgnoredDescriptors.contains(d.getClass().getName())) { continue; } if (d.getGlobalConfigPage()==null) continue; r.put(buildSuperclassHierarchy(d.clazz, new StringBuilder()).toString(),d); } return r.values(); }
/** * Gets all the descriptors sorted by their inheritance tree of {@link Describable} * so that descriptors of similar types come nearby. */ public static Collection<Descriptor> getSortedDescriptorsForGlobalConfig() { Map<String,Descriptor> r = new TreeMap<String, Descriptor>(); for (Descriptor<?> d : Hudson.getInstance().getExtensionList(Descriptor.class)) { if (globalConfigIgnoredDescriptors.contains(d.getClass().getName())) { continue; } if (d.getGlobalConfigPage()==null) continue; r.put(buildSuperclassHierarchy(d.clazz, new StringBuilder()).toString(),d); } return r.values(); }
/** * Gets all the descriptors sorted by their inheritance tree of {@link Describable} * so that descriptors of similar types come nearby. */ public static Collection<Descriptor> getSortedDescriptorsForGlobalConfig() { Map<String,Descriptor> r = new TreeMap<String, Descriptor>(); for (Descriptor<?> d : Hudson.getInstance().getExtensionList(Descriptor.class)) { if (globalConfigIgnoredDescriptors.contains(d.getClass().getName())) { continue; } if (d.getGlobalConfigPage()==null) continue; r.put(buildSuperclassHierarchy(d.clazz, new StringBuilder()).toString(),d); } return r.values(); }
/** * Gets all the descriptors sorted by their inheritance tree of * {@link Describable} so that descriptors of similar types come nearby. */ public static Collection<Descriptor> getSortedDescriptorsForGlobalConfig() { Map<String, Descriptor> r = new TreeMap<String, Descriptor>(); for (Descriptor<?> d : Hudson.getInstance().getExtensionList(Descriptor.class)) { if (globalConfigIgnoredDescriptors.contains(d.getClass().getName())) { continue; } if (d.getGlobalConfigPage() == null) { continue; } r.put(buildSuperclassHierarchy(d.clazz, new StringBuilder()).toString(), d); } return r.values(); }
@CheckForNull @Override public CNode describe(GlobalConfigurationCategory instance, ConfigurationContext context) { final Mapping mapping = new Mapping(); Jenkins.getInstance().getExtensionList(Descriptor.class).stream() .filter(d -> d.getCategory() == category) .filter(d -> d.getGlobalConfigPage() != null) .forEach(d -> describe(d, mapping, context)); return mapping; }
@Override public String getGlobalConfigPage() { initPython(); if (pexec.isImplemented(20)) { return (String) pexec.execPython("get_global_config_page"); } else { return super.getGlobalConfigPage(); } }
@Override public Set describe() { return (Set) Jenkins.getInstance().getExtensionList(Descriptor.class).stream() .filter(d -> d.getCategory() == category) .filter(d -> d.getGlobalConfigPage() != null) .map(d -> new DescriptorConfigurator(d)) .filter(GlobalConfigurationCategoryConfigurator::reportDescriptorWithoutSetters) .map(c -> new Attribute<GlobalConfigurationCategory, Object>(c.getName(), c.getTarget()).setter(NOP)) .collect(Collectors.toSet()); }
if (d.getGlobalConfigPage()==null) continue;