Class OsAuthDescriptor<DESCRIBABLE extends Describable<DESCRIBABLE>>
java.lang.Object
hudson.model.Descriptor<DESCRIBABLE>
jenkins.plugins.openstack.compute.OsAuthDescriptor<DESCRIBABLE>
- Direct Known Subclasses:
BootSource.BootSourceDescriptor
,SlaveOptionsDescriptor
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public abstract class OsAuthDescriptor<DESCRIBABLE extends Describable<DESCRIBABLE>>
extends Descriptor<DESCRIBABLE>
Helper descriptor abstraction for classes with AJAX methods depending on OS auth parameters.
- Author:
- ogondza.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic @interface
Method annotation to denote AJAX method accepts OS auth parameters.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 TypeMethodDescriptionfinal void
calcFillSettings
(String field, Map<String, Object> attributes) Add dependencies on credentials for methods annotated withOsAuthDescriptor.InjectOsAuth
annotation.Get relativefillDependsOn
offsets to apply.static String
getDefault
(String d1, Object d2) protected static boolean
hasValue
(ListBoxModel m, String value) protected static boolean
haveAuthDetails
(String endPointUrl, OpenstackCredential openstackCredential, String zone) Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, 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
-
OsAuthDescriptor
public OsAuthDescriptor() -
OsAuthDescriptor
-
-
Method Details
-
getAuthFieldsOffsets
Get relativefillDependsOn
offsets to apply. -
hasValue
-
calcFillSettings
Add dependencies on credentials for methods annotated withOsAuthDescriptor.InjectOsAuth
annotation.- Overrides:
calcFillSettings
in classDescriptor<DESCRIBABLE extends Describable<DESCRIBABLE>>
-
haveAuthDetails
protected static boolean haveAuthDetails(String endPointUrl, OpenstackCredential openstackCredential, String zone) -
getDefault
-