@Extension @Symbol(value="paneStatus") public static class PaneStatusProperties.DescriptorImpl extends UserPropertyDescriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
clazz
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, 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
public UserProperty newInstance(User user)
UserPropertyDescriptor
UserProperty
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 UserPropertyDescriptor
public 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 UserPropertyDescriptor
Copyright © 2004–2022. All rights reserved.