@Extension public static class PaneStatusProperties.DescriptorImpl extends UserPropertyDescriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Selfclazz| Constructor and Description |
|---|
DescriptorImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isEnabled()
Whether or not the described property is enabled in the current context.
|
UserProperty |
newInstance(User user)
Creates a default instance of
UserProperty to be associated
with User object that wasn't created from a persisted XML data. |
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, findByDescribableClassName, findById, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMappublic UserProperty newInstance(User user)
UserPropertyDescriptorUserProperty to be associated
with User object that wasn't created from a persisted XML data.
See User class javadoc for more details about the life cycle
of User and when this method is invoked.
newInstance in class UserPropertyDescriptorpublic boolean isEnabled()
UserPropertyDescriptor
Returning false from this method essentially has the same effect of
making Hudson behaves as if this UserPropertyDescriptor is
not a part of UserProperty.all().
This mechanism is useful if the availability of the property is contingent of some other settings.
isEnabled in class UserPropertyDescriptorCopyright © 2019. All rights reserved.