Class CredentialsProviderTypeRestriction.Excludes.DescriptorImpl
- java.lang.Object
-
- hudson.model.Descriptor<CredentialsProviderTypeRestriction>
-
- com.cloudbees.plugins.credentials.CredentialsProviderTypeRestrictionDescriptor
-
- com.cloudbees.plugins.credentials.CredentialsProviderTypeRestriction.Excludes.DescriptorImpl
-
- Enclosing class:
- CredentialsProviderTypeRestriction.Excludes
@Extension public static class CredentialsProviderTypeRestriction.Excludes.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
Constructors Constructor Description DescriptorImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListBoxModel
doFillProviderItems()
Returns the list box for provider selection.ListBoxModel
doFillTypeItems()
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
.String
getDisplayName()
-
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, 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, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
-
-
-
Method Detail
-
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
@NonNull public String 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.
-
-