Class HudsonNotificationPropertyDescriptor
- java.lang.Object
-
- hudson.model.Descriptor<JobProperty<?>>
-
- hudson.model.JobPropertyDescriptor
-
- com.tikal.hudson.plugins.notification.HudsonNotificationPropertyDescriptor
-
@Extension public final class HudsonNotificationPropertyDescriptor extends JobPropertyDescriptor
-
-
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 Constructor Description HudsonNotificationPropertyDescriptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData)
FormValidation
doCheckPublicUrl(String publicUrl, String protocolParameter)
FormValidation
doCheckSecretUrl(String publicUrl, String protocolParameter)
ListBoxModel
doFillSecretUrlItems(Item owner, String secretUrl)
String
getDefaultBranch()
int
getDefaultRetries()
int
getDefaultTimeout()
String
getDisplayName()
List<Endpoint>
getTargets()
boolean
isApplicable(Class<? extends Job> jobType)
boolean
isEnabled()
HudsonNotificationProperty
newInstance(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData)
void
setEndpoints(List<Endpoint> endpoints)
-
Methods inherited from class hudson.model.JobPropertyDescriptor
all, getPropertyDescriptors
-
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, 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, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
-
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
-
isApplicable
public boolean isApplicable(Class<? extends Job> jobType)
- Overrides:
isApplicable
in classJobPropertyDescriptor
-
getDisplayName
@Nonnull public String getDisplayName()
- Overrides:
getDisplayName
in classDescriptor<JobProperty<?>>
-
getDefaultBranch
public String getDefaultBranch()
-
getDefaultTimeout
public int getDefaultTimeout()
-
getDefaultRetries
public int getDefaultRetries()
-
newInstance
public HudsonNotificationProperty newInstance(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData) throws Descriptor.FormException
- Overrides:
newInstance
in classJobPropertyDescriptor
- Throws:
Descriptor.FormException
-
doCheckPublicUrl
public FormValidation doCheckPublicUrl(@QueryParameter(value="publicUrl",fixEmpty=true) String publicUrl, @RelativePath("..") @QueryParameter("protocol") String protocolParameter)
-
doCheckSecretUrl
public FormValidation doCheckSecretUrl(@QueryParameter(value="secretUrl",fixEmpty=true) String publicUrl, @RelativePath("..") @QueryParameter("protocol") String protocolParameter)
-
doFillSecretUrlItems
public ListBoxModel doFillSecretUrlItems(@AncestorInPath Item owner, @QueryParameter String secretUrl)
-
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData)
- Overrides:
configure
in classDescriptor<JobProperty<?>>
-
-