Class FlexiblePublisher.FlexiblePublisherDescriptor
java.lang.Object
hudson.model.Descriptor<Publisher>
hudson.tasks.BuildStepDescriptor<Publisher>
org.jenkins_ci.plugins.flexible_publish.FlexiblePublisher.FlexiblePublisherDescriptor
- Enclosing class:
FlexiblePublisher
@Extension(ordinal=2.147483147E9)
public static class FlexiblePublisher.FlexiblePublisherDescriptor
extends BuildStepDescriptor<Publisher>
-
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 -
Method Summary
Modifier and TypeMethodDescriptionbooleanconfigure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json) booleanisApplicable(Class<? extends AbstractProject> aClass) newInstance(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData) Build a new instance from parameters a user input in a configuration page.Methods inherited from class hudson.tasks.BuildStepDescriptor
filterMethods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, 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, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
FlexiblePublisherDescriptor
-
FlexiblePublisherDescriptor
public FlexiblePublisherDescriptor()
-
-
Method Details
-
getAllPublisherDescriptorListers
public static DescriptorExtensionList<PublisherDescriptorLister,Descriptor<PublisherDescriptorLister>> getAllPublisherDescriptorListers() -
getPublisherLister
-
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json) throws Descriptor.FormException - Overrides:
configurein classDescriptor<Publisher>- Throws:
Descriptor.FormException
-
getDisplayName
- Overrides:
getDisplayNamein classDescriptor<Publisher>
-
isApplicable
- Specified by:
isApplicablein classBuildStepDescriptor<Publisher>
-
readResolve
-
newInstance
public FlexiblePublisher newInstance(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData) throws Descriptor.FormException Build a new instance from parameters a user input in a configuration page. Usually, it is done byStaplerRequest.bindJSON(Class, JSONObject), andDataBoundConstructorof classes of posted objects. But we have to useDescriptor.newInstance(StaplerRequest, JSONObject)for classes withoutDataBoundConstructor(such as old versions of hudson.tasks.Mailer) and classes withDescriptor.newInstance(StaplerRequest, JSONObject)doing different from their constructors withDataBoundConstructor(such asJUnitResultArchiver).- Overrides:
newInstancein classDescriptor<Publisher>- Parameters:
req-formData-- Returns:
- Throws:
Descriptor.FormException- See Also:
-