net.praqma.hudson.scm
Class PucmScm.PucmScmDescriptor

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

@Extension
public static class PucmScm.PucmScmDescriptor
extends hudson.scm.SCMDescriptor<PucmScm>
implements hudson.model.ModelObject

This class is used to describe the plugin to Hudson

Author:
Troels Selch S�rensen, Margit Bennetzen

Nested Class Summary
 
Nested classes/interfaces inherited from class hudson.model.Descriptor
hudson.model.Descriptor.FormException, hudson.model.Descriptor.PropertyType
 
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
PucmScm.PucmScmDescriptor()
           
 
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 doExecutableCheck(java.lang.String value)
          This method is called by the scm/Pucm/global.jelly to validate the input without reloading the global configuration page
 java.lang.String getCleartool()
          Called by Hudson.
 java.lang.String getDisplayName()
          This is called by Hudson to discover the plugin name
 java.util.List<java.lang.String> getLevels()
          Used by Hudson to display a list of valid promotion levels to build from.
 java.util.List<java.lang.String> getLoadModules()
          Used by Hudson to display a list of loadModules (whether to poll all or only modifiable elements
 java.lang.String getMultiSiteFrequency()
           
 int getMultiSiteFrequencyAsInt()
           
 
Methods inherited from class hudson.scm.SCMDescriptor
getBrowserDescriptors, isApplicable, isBrowserReusable, load
 
Methods inherited from class hudson.model.Descriptor
calcFillSettings, configure, doHelp, find, find, getCheckUrl, getConfigPage, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getJsonSafeClassName, getPropertyType, getPropertyType, getViewPage, isInstance, isSubTypeOf, newInstance, newInstance, newInstancesFromHeteroList, save, toArray, toList, toMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PucmScm.PucmScmDescriptor

public PucmScm.PucmScmDescriptor()
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

getDisplayName

public java.lang.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
                                                    java.lang.String value)
This method is called by the scm/Pucm/global.jelly to validate the input without reloading the global configuration page

Parameters:
value -
Returns:

getCleartool

public java.lang.String getCleartool()
Called by Hudson. If the user does not input a command for Hudson to use when polling, default value is returned

Returns:

getMultiSiteFrequency

public java.lang.String getMultiSiteFrequency()

getMultiSiteFrequencyAsInt

public int getMultiSiteFrequencyAsInt()

getLevels

public java.util.List<java.lang.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 java.util.List<java.lang.String> getLoadModules()
Used by Hudson to display a list of loadModules (whether to poll all or only modifiable elements

Returns:


Copyright © 2011. All Rights Reserved.