hudson.plugins.skype.im.transport
Class SkypePublisherDescriptor

java.lang.Object
  extended by hudson.model.Descriptor<T>
      extended by hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>
          extended by hudson.plugins.skype.im.transport.SkypePublisherDescriptor
All Implemented Interfaces:
hudson.model.Saveable, hudson.plugins.im.IMPublisherDescriptor

public class SkypePublisherDescriptor
extends hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>
implements hudson.plugins.im.IMPublisherDescriptor


Nested Class Summary
 
Nested classes/interfaces inherited from class hudson.model.Descriptor
hudson.model.Descriptor.FormException, hudson.model.Descriptor.PropertyType
 
Field Summary
static String DEFAULT_COMMAND_PREFIX
           
static String PARAMETERNAME_COMMAND_PREFIX
           
static String PARAMETERNAME_DEFAULT_ID_SUFFIX
           
static String PARAMETERNAME_ENABLED
           
static String PARAMETERNAME_GROUP_NICKNAME
           
static String PARAMETERNAME_HUDSON_LOGIN
           
static String PARAMETERNAME_HUDSON_PASSWORD
           
static String PARAMETERNAME_INITIAL_GROUPCHATS
           
static String PARAMETERNAME_NOTIFY_CULPRITS
           
static String PARAMETERNAME_NOTIFY_FIXERS
           
static String PARAMETERNAME_NOTIFY_START
           
static String PARAMETERNAME_NOTIFY_SUSPECTS
           
static String PARAMETERNAME_NOTIFY_UPSTREAM_COMMITTERS
           
static String PARAMETERNAME_PORT
           
static String PARAMETERNAME_PRESENCE
           
static String PARAMETERNAME_STRATEGY
           
static String PARAMETERNAME_TARGETS
           
static String PARAMETERVALUE_STRATEGY_DEFAULT
           
static String[] PARAMETERVALUE_STRATEGY_VALUES
           
 
Fields inherited from class hudson.model.Descriptor
clazz
 
Fields inherited from interface hudson.model.Saveable
NOOP
 
Constructor Summary
SkypePublisherDescriptor()
           
 
Method Summary
 boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json)
          
 hudson.util.FormValidation doServerCheck(String hostname, String port)
          Validates the connection information.
 String getCommandPrefix()
           
 String getDefaultIdSuffix()
           
 List<hudson.plugins.im.IMMessageTarget> getDefaultTargets()
           
 String getDisplayName()
          This human readable name is used in the configuration screen.
 String getGroupChatNickname()
           
 String getHost()
           
 String getHostname()
          Deprecated. 
 String getHudsonPassword()
           
 String getHudsonUserName()
           
 hudson.plugins.im.IMMessageTargetConverter getIMMessageTargetConverter()
           
 String getInitialGroupChats()
          Gets the whitespace separated list of group chats to join, or null if nothing is configured.
 String getPassword()
           
 String getPluginDescription()
           
 int getPort()
           
 String getPortString()
          Returns the text to be put into the form field.
 String getSkypeId()
          Returns the jabber ID.
 String getUserName()
          Returns the skypeid.
 boolean isApplicable(Class<? extends hudson.model.AbstractProject> jobType)
          
 boolean isEnabled()
          
 boolean isEnableSASL()
           
 boolean isExposePresence()
           
 void load()
           
 SkypePublisher newInstance(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData)
          Creates a new instance of SkypePublisher from a submitted form.
 
Methods inherited from class hudson.tasks.BuildStepDescriptor
filter
 
Methods inherited from class hudson.model.Descriptor
calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, getCheckUrl, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getPropertyType, getPropertyType, getT, getViewPage, isInstance, isSubTypeOf, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, toArray, toList, toMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARAMETERNAME_ENABLED

public static final String PARAMETERNAME_ENABLED
See Also:
Constant Field Values

PARAMETERNAME_PORT

public static final String PARAMETERNAME_PORT
See Also:
Constant Field Values

PARAMETERNAME_PRESENCE

public static final String PARAMETERNAME_PRESENCE
See Also:
Constant Field Values

PARAMETERNAME_GROUP_NICKNAME

public static final String PARAMETERNAME_GROUP_NICKNAME
See Also:
Constant Field Values

PARAMETERNAME_TARGETS

public static final String PARAMETERNAME_TARGETS
See Also:
Constant Field Values

PARAMETERNAME_STRATEGY

public static final String PARAMETERNAME_STRATEGY
See Also:
Constant Field Values

PARAMETERNAME_NOTIFY_START

public static final String PARAMETERNAME_NOTIFY_START
See Also:
Constant Field Values

PARAMETERNAME_NOTIFY_SUSPECTS

public static final String PARAMETERNAME_NOTIFY_SUSPECTS
See Also:
Constant Field Values

PARAMETERNAME_NOTIFY_CULPRITS

public static final String PARAMETERNAME_NOTIFY_CULPRITS
See Also:
Constant Field Values

PARAMETERNAME_NOTIFY_FIXERS

public static final String PARAMETERNAME_NOTIFY_FIXERS
See Also:
Constant Field Values

PARAMETERNAME_NOTIFY_UPSTREAM_COMMITTERS

public static final String PARAMETERNAME_NOTIFY_UPSTREAM_COMMITTERS
See Also:
Constant Field Values

PARAMETERNAME_INITIAL_GROUPCHATS

public static final String PARAMETERNAME_INITIAL_GROUPCHATS
See Also:
Constant Field Values

PARAMETERNAME_COMMAND_PREFIX

public static final String PARAMETERNAME_COMMAND_PREFIX
See Also:
Constant Field Values

PARAMETERNAME_DEFAULT_ID_SUFFIX

public static final String PARAMETERNAME_DEFAULT_ID_SUFFIX
See Also:
Constant Field Values

PARAMETERNAME_HUDSON_LOGIN

public static final String PARAMETERNAME_HUDSON_LOGIN
See Also:
Constant Field Values

PARAMETERNAME_HUDSON_PASSWORD

public static final String PARAMETERNAME_HUDSON_PASSWORD
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

DEFAULT_COMMAND_PREFIX

public static final String DEFAULT_COMMAND_PREFIX
See Also:
Constant Field Values
Constructor Detail

SkypePublisherDescriptor

public SkypePublisherDescriptor()
Method Detail

load

public void load()
Overrides:
load in class hudson.model.Descriptor<hudson.tasks.Publisher>

getDisplayName

public String getDisplayName()
This human readable name is used in the configuration screen.

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

getHostname

@Deprecated
public String getHostname()
Deprecated. 

Specified by:
getHostname in interface hudson.plugins.im.IMPublisherDescriptor

getSkypeId

public String getSkypeId()
Returns the jabber ID. The jabber ID may have the syntax [@[/

getPassword

public String getPassword()
Specified by:
getPassword in interface hudson.plugins.im.IMPublisherDescriptor

getGroupChatNickname

public String getGroupChatNickname()

getPort

public int getPort()
Specified by:
getPort in interface hudson.plugins.im.IMPublisherDescriptor

getPortString

public String getPortString()
Returns the text to be put into the form field. If the port is default, leave it empty.


isEnableSASL

public boolean isEnableSASL()

isExposePresence

public boolean isExposePresence()
Specified by:
isExposePresence in interface hudson.plugins.im.IMPublisherDescriptor

getInitialGroupChats

public String getInitialGroupChats()
Gets the whitespace separated list of group chats to join, or null if nothing is configured.


getDefaultIdSuffix

public String getDefaultIdSuffix()
Specified by:
getDefaultIdSuffix in interface hudson.plugins.im.IMPublisherDescriptor

getCommandPrefix

public String getCommandPrefix()
Specified by:
getCommandPrefix in interface hudson.plugins.im.IMPublisherDescriptor

newInstance

public SkypePublisher newInstance(org.kohsuke.stapler.StaplerRequest req,
                                  net.sf.json.JSONObject formData)
                           throws hudson.model.Descriptor.FormException
Creates a new instance of SkypePublisher from a submitted form.

Overrides:
newInstance in class hudson.model.Descriptor<hudson.tasks.Publisher>
Throws:
hudson.model.Descriptor.FormException

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

doServerCheck

public hudson.util.FormValidation doServerCheck(@QueryParameter
                                                String hostname,
                                                @QueryParameter
                                                String port)
Validates the connection information.


isApplicable

public boolean isApplicable(Class<? extends hudson.model.AbstractProject> jobType)

Specified by:
isApplicable in class hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>

getUserName

public String getUserName()
Returns the skypeid.

Specified by:
getUserName in interface hudson.plugins.im.IMPublisherDescriptor

getHudsonPassword

public String getHudsonPassword()
Specified by:
getHudsonPassword in interface hudson.plugins.im.IMPublisherDescriptor

getHudsonUserName

public String getHudsonUserName()
Specified by:
getHudsonUserName in interface hudson.plugins.im.IMPublisherDescriptor

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

getHost

public String getHost()
Specified by:
getHost in interface hudson.plugins.im.IMPublisherDescriptor


Copyright © 2004-2011. All Rights Reserved.