Java Code Examples for hudson.model.DescriptorVisibilityFilter#apply()
The following examples show how to use
hudson.model.DescriptorVisibilityFilter#apply() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: KubernetesCloud.java From kubernetes-plugin with Apache License 2.0 | 5 votes |
@SuppressWarnings("unused") // used by jelly public List<Descriptor<PodRetention>> getAllowedPodRetentions() { Jenkins jenkins = Jenkins.getInstanceOrNull(); if (jenkins == null) { return new ArrayList<>(0); } return DescriptorVisibilityFilter.apply(this, jenkins.getDescriptorList(PodRetention.class)); }
Example 2
Source File: ContainerTemplate.java From kubernetes-plugin with Apache License 2.0 | 4 votes |
@SuppressWarnings("unused") // Used by jelly @Restricted(DoNotUse.class) // Used by jelly public List<? extends Descriptor> getEnvVarsDescriptors() { return DescriptorVisibilityFilter.apply(null, Jenkins.getInstance().getDescriptorList(TemplateEnvVar.class)); }
Example 3
Source File: PodTemplate.java From kubernetes-plugin with Apache License 2.0 | 4 votes |
@SuppressWarnings("unused") // Used by jelly @Restricted(DoNotUse.class) // Used by jelly public List<? extends Descriptor> getEnvVarsDescriptors() { return DescriptorVisibilityFilter.apply(null, Jenkins.getInstance().getDescriptorList(TemplateEnvVar.class)); }