org.jenkinsci.plugins.gcm.im
Class GcmPublisherDescriptor
java.lang.Object
hudson.model.Descriptor<T>
hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>
org.jenkinsci.plugins.gcm.im.GcmPublisherDescriptor
- All Implemented Interfaces:
- hudson.model.Saveable, hudson.plugins.im.IMPublisherDescriptor
public class GcmPublisherDescriptor
- extends hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>
- implements hudson.plugins.im.IMPublisherDescriptor
| Nested classes/interfaces inherited from class hudson.model.Descriptor |
hudson.model.Descriptor.FormException, hudson.model.Descriptor.PropertyType, hudson.model.Descriptor.Self |
| Fields inherited from class hudson.model.Descriptor |
clazz |
| Fields inherited from interface hudson.model.Saveable |
NOOP |
| Methods inherited from class hudson.tasks.BuildStepDescriptor |
filter |
| Methods inherited from class hudson.model.Descriptor |
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, getCheckUrl, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PARAM_PROJECT_NUMBER
public static final String PARAM_PROJECT_NUMBER
- See Also:
- Constant Field Values
PARAM_API_KEY
public static final String PARAM_API_KEY
- See Also:
- Constant Field Values
PARAM_TARGETS
public static final String PARAM_TARGETS
- See Also:
- Constant Field Values
PARAMETERVALUE_STRATEGY_VALUES
public static final String[] PARAMETERVALUE_STRATEGY_VALUES
PARAMETERVALUE_STRATEGY_DEFAULT
public static final String PARAMETERVALUE_STRATEGY_DEFAULT
GcmPublisherDescriptor
public GcmPublisherDescriptor()
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName in class hudson.model.Descriptor<hudson.tasks.Publisher>
getPluginDescription
public String getPluginDescription()
- Specified by:
getPluginDescription in interface hudson.plugins.im.IMPublisherDescriptor
isEnabled
public boolean isEnabled()
- Specified by:
isEnabled in interface hudson.plugins.im.IMPublisherDescriptor
getProjectNumber
public String getProjectNumber()
- Returns the globally-configured Google APIs project number.
- Returns:
- Project number from the Google API console, or
null if not set.
getApiKey
public String getApiKey()
- Returns the globally-configured server API key for this project.
- Returns:
- Server API key from the Google API console, or
null if not set.
newInstance
public GcmPublisher newInstance(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData)
throws hudson.model.Descriptor.FormException
- Overrides:
newInstance in class hudson.model.Descriptor<hudson.tasks.Publisher>
- Throws:
hudson.model.Descriptor.FormException
doAutoCompleteTargets
public hudson.model.AutoCompletionCandidates doAutoCompleteTargets(@QueryParameter
String value)
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject json)
throws hudson.model.Descriptor.FormException
- Overrides:
configure in class hudson.model.Descriptor<hudson.tasks.Publisher>
- Throws:
hudson.model.Descriptor.FormException
isApplicable
public boolean isApplicable(Class<? extends hudson.model.AbstractProject> jobType)
- Specified by:
isApplicable in class hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>
getIMMessageTargetConverter
public hudson.plugins.im.IMMessageTargetConverter getIMMessageTargetConverter()
- Specified by:
getIMMessageTargetConverter in interface hudson.plugins.im.IMPublisherDescriptor
getDefaultTargets
public List<hudson.plugins.im.IMMessageTarget> getDefaultTargets()
- Specified by:
getDefaultTargets in interface hudson.plugins.im.IMPublisherDescriptor
getParamNames
public hudson.plugins.im.config.ParameterNames getParamNames()
- Specified by:
getParamNames in interface hudson.plugins.im.IMPublisherDescriptor
isExposePresence
public boolean isExposePresence()
- Specified by:
isExposePresence in interface hudson.plugins.im.IMPublisherDescriptor
getHost
public String getHost()
- Specified by:
getHost in interface hudson.plugins.im.IMPublisherDescriptor
getHostname
public String getHostname()
- Specified by:
getHostname in interface hudson.plugins.im.IMPublisherDescriptor
getPort
public int getPort()
- Specified by:
getPort in interface hudson.plugins.im.IMPublisherDescriptor
getHudsonUserName
public String getHudsonUserName()
- Specified by:
getHudsonUserName in interface hudson.plugins.im.IMPublisherDescriptor
getUserName
public String getUserName()
- Specified by:
getUserName in interface hudson.plugins.im.IMPublisherDescriptor
getPassword
public String getPassword()
- Specified by:
getPassword in interface hudson.plugins.im.IMPublisherDescriptor
getCommandPrefix
public String getCommandPrefix()
- Specified by:
getCommandPrefix in interface hudson.plugins.im.IMPublisherDescriptor
getDefaultIdSuffix
public String getDefaultIdSuffix()
- Specified by:
getDefaultIdSuffix in interface hudson.plugins.im.IMPublisherDescriptor
Copyright © 2004-2012. All Rights Reserved.