net.praqma.hudson.scm
Class CCUCMScm.CCUCMScmDescriptor

java.lang.Object
  extended by hudson.model.Descriptor<hudson.scm.SCM>
      extended by hudson.scm.SCMDescriptor<CCUCMScm>
          extended by net.praqma.hudson.scm.CCUCMScm.CCUCMScmDescriptor
All Implemented Interfaces:
hudson.model.ModelObject, hudson.model.Saveable
Enclosing class:
CCUCMScm

@Extension
public static class CCUCMScm.CCUCMScmDescriptor
extends hudson.scm.SCMDescriptor<CCUCMScm>
implements hudson.model.ModelObject

This class is used to describe the plugin to Hudson

Author:
Troels Selch, Margit Bennetzen

Nested Class Summary
 
Nested classes/interfaces inherited from class hudson.model.Descriptor
hudson.model.Descriptor.FormException, hudson.model.Descriptor.PropertyType, hudson.model.Descriptor.Self
 
Field Summary
 
Fields inherited from class hudson.scm.SCMDescriptor
generation, repositoryBrowser
 
Fields inherited from class hudson.model.Descriptor
clazz
 
Fields inherited from interface hudson.model.Saveable
NOOP
 
Constructor Summary
CCUCMScm.CCUCMScmDescriptor()
           
 
Method Summary
 boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json)
          This method is called, when the user saves the global Hudson configuration.
 hudson.util.FormValidation doCheckTemplate(String value)
           
 hudson.util.FormValidation doExecutableCheck(String value)
          This method is called by the scm/CCUCM/global.jelly to validate the input without reloading the global configuration page
 void doLevelCheck(String polling, String level)
           
 String getDisplayName()
          This is called by Hudson to discover the plugin name
 List<String> getLevels()
          Used by Hudson to display a list of valid promotion levels to build from.
 List<String> getLoadModules()
          Used by Hudson to display a list of loadModules (whether to poll all or only modifiable elements
 boolean getMultisitePolling()
           
 boolean getSlavePolling()
           
 CCUCMScm newInstance(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData)
           
 
Methods inherited from class hudson.scm.SCMDescriptor
getBrowserDescriptors, isApplicable, isBrowserReusable, load
 
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, getCheckUrl, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getPropertyType, getPropertyType, getT, getViewPage, isInstance, isSubTypeOf, 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
 

Constructor Detail

CCUCMScm.CCUCMScmDescriptor

public CCUCMScm.CCUCMScmDescriptor()
Method Detail

configure

public boolean configure(org.kohsuke.stapler.StaplerRequest req,
                         net.sf.json.JSONObject json)
                  throws hudson.model.Descriptor.FormException
This method is called, when the user saves the global Hudson configuration.

Overrides:
configure in class hudson.model.Descriptor<hudson.scm.SCM>
Throws:
hudson.model.Descriptor.FormException

getSlavePolling

public boolean getSlavePolling()

getMultisitePolling

public boolean getMultisitePolling()

getDisplayName

public String getDisplayName()
This is called by Hudson to discover the plugin name

Specified by:
getDisplayName in interface hudson.model.ModelObject
Specified by:
getDisplayName in class hudson.model.Descriptor<hudson.scm.SCM>

doExecutableCheck

public hudson.util.FormValidation doExecutableCheck(@QueryParameter
                                                    String value)
This method is called by the scm/CCUCM/global.jelly to validate the input without reloading the global configuration page

Parameters:
value -
Returns:

doCheckTemplate

public hudson.util.FormValidation doCheckTemplate(@QueryParameter
                                                  String value)
                                           throws hudson.util.FormValidation
Throws:
hudson.util.FormValidation

doLevelCheck

public void doLevelCheck(@QueryParameter
                         String polling,
                         @QueryParameter
                         String level)
                  throws hudson.util.FormValidation
Throws:
hudson.util.FormValidation

newInstance

public CCUCMScm newInstance(org.kohsuke.stapler.StaplerRequest req,
                            net.sf.json.JSONObject formData)
                     throws hudson.model.Descriptor.FormException
Overrides:
newInstance in class hudson.model.Descriptor<hudson.scm.SCM>
Throws:
hudson.model.Descriptor.FormException

getLevels

public List<String> getLevels()
Used by Hudson to display a list of valid promotion levels to build from. The list of promotion levels is hard coded in net.praqma.hudson.Config.java

Returns:

getLoadModules

public List<String> getLoadModules()
Used by Hudson to display a list of loadModules (whether to poll all or only modifiable elements

Returns:


Copyright © 2004-2012. All Rights Reserved.