Class CredentialsProviderTypeRestriction.Includes.DescriptorImpl
java.lang.Object
hudson.model.Descriptor<CredentialsProviderTypeRestriction>
com.cloudbees.plugins.credentials.CredentialsProviderTypeRestrictionDescriptor
com.cloudbees.plugins.credentials.CredentialsProviderTypeRestriction.Includes.DescriptorImpl
- Enclosing class:
- CredentialsProviderTypeRestriction.Includes
@Extension
public static class CredentialsProviderTypeRestriction.Includes.DescriptorImpl
extends CredentialsProviderTypeRestrictionDescriptor
Our descriptor
- Since:
- 2.0
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
-
Field Summary
Fields inherited from class hudson.model.Descriptor
clazz
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the list box for provider selection.Returns the list box for type selection.boolean
filter
(List<CredentialsProviderTypeRestriction> restrictions, CredentialsProvider provider, CredentialsDescriptor type) Computes the effectiveCredentialsProviderTypeRestriction.filter(CredentialsProvider, CredentialsDescriptor)
result from the sublist of allCredentialsProviderTypeRestriction
instances that use thisinstance
.Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, configure, doHelp, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
DescriptorImpl
public DescriptorImpl()
-
-
Method Details
-
filter
public boolean filter(List<CredentialsProviderTypeRestriction> restrictions, CredentialsProvider provider, CredentialsDescriptor type) Computes the effectiveCredentialsProviderTypeRestriction.filter(CredentialsProvider, CredentialsDescriptor)
result from the sublist of allCredentialsProviderTypeRestriction
instances that use thisinstance
. Each implementation can determine the policy to follow, typically implementations will from two styles:- Require at least one
CredentialsProviderTypeRestriction.filter(CredentialsProvider, CredentialsDescriptor)
returningtrue
- Require no
CredentialsProviderTypeRestriction.filter(CredentialsProvider, CredentialsDescriptor)
returningfalse
- Specified by:
filter
in classCredentialsProviderTypeRestrictionDescriptor
- Parameters:
restrictions
- the sublist ofCredentialsProviderManager.getRestrictions()
that returnthis
fromCredentialsProviderTypeRestriction.getDescriptor()
provider
- theCredentialsProvider
to check.type
- theCredentialsDescriptor
to check.- Returns:
true
if and only if the suppliedCredentialsDescriptor
is permitted in the scope of the suppliedCredentialsProvider
- Require at least one
-
getDisplayName
- Overrides:
getDisplayName
in classDescriptor<CredentialsProviderTypeRestriction>
-
doFillProviderItems
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public ListBoxModel doFillProviderItems()Returns the list box for provider selection.- Returns:
- the list box for provider selection.
-
doFillTypeItems
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public ListBoxModel doFillTypeItems()Returns the list box for type selection.- Returns:
- the list box for type selection.
-