Class CredentialsTypeFilterDescriptor
java.lang.Object
hudson.model.Descriptor<CredentialsTypeFilter>
com.cloudbees.plugins.credentials.CredentialsTypeFilterDescriptor
- Direct Known Subclasses:
CredentialsTypeFilter.Excludes.DescriptorImpl
,CredentialsTypeFilter.Includes.DescriptorImpl
,CredentialsTypeFilter.None.DescriptorImpl
The base
Descriptor
class for all CredentialsTypeFilter
instances.- 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 TypeMethodDescriptionboolean
filter
(CredentialsDescriptor type) Helper method that returns the currentCredentialsTypeFilter
effective state for the suppliedCredentialsDescriptor
.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, getDisplayName, 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
-
Constructor Details
-
CredentialsTypeFilterDescriptor
public CredentialsTypeFilterDescriptor()
-
-
Method Details
-
filter
Helper method that returns the currentCredentialsTypeFilter
effective state for the suppliedCredentialsDescriptor
. Used to ensure that when changing implementation the initial config is equivalent to the current.- Parameters:
type
- theCredentialsDescriptor
to check.- Returns:
true
if and only if the currentCredentialsTypeFilter
returnstrue
for the suppliedCredentialsDescriptor
.
-