hudson.plugins.clearcase
Class ClearCaseSCM.ClearCaseScmDescriptor

java.lang.Object
  extended by hudson.model.Descriptor<hudson.scm.SCM>
      extended by hudson.scm.SCMDescriptor<ClearCaseSCM>
          extended by hudson.plugins.clearcase.ClearCaseSCM.ClearCaseScmDescriptor
All Implemented Interfaces:
hudson.model.ModelObject, hudson.model.Saveable
Enclosing class:
ClearCaseSCM

public static final class ClearCaseSCM.ClearCaseScmDescriptor
extends hudson.scm.SCMDescriptor<ClearCaseSCM>
implements hudson.model.ModelObject

ClearCase SCM descriptor

Author:
Erik Ramfelt

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
protected ClearCaseSCM.ClearCaseScmDescriptor()
           
 
Method Summary
 boolean configure(org.kohsuke.stapler.StaplerRequest req)
           
 void doCleartoolExeCheck(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
          Checks if cleartool executable exists.
 void doConfigSpecCheck(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
           
 void doExcludedRegionsCheck(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
          Validates the excludedRegions Regex
 void doListViews(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
           
 void doMandatoryCheck(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
          Raises an error if the parameter value isnt set.
 void doVersion(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
          Displays "cleartool -version" for trouble shooting.
 java.lang.String getCleartoolExe()
           
 java.lang.String getDisplayName()
           
 int getLogMergeTimeWindow()
           
 hudson.scm.SCM newInstance(org.kohsuke.stapler.StaplerRequest req)
           
 
Methods inherited from class hudson.scm.SCMDescriptor
getBrowserDescriptors, isApplicable, isBrowserReusable
 
Methods inherited from class hudson.model.Descriptor
configure, configure, convert, doHelp, find, find, getCheckUrl, getConfigPage, getGlobalConfigPage, getHelpFile, getHelpFile, getJsonSafeClassName, getPropertyType, getViewPage, isInstance, load, 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

ClearCaseSCM.ClearCaseScmDescriptor

protected ClearCaseSCM.ClearCaseScmDescriptor()
Method Detail

getLogMergeTimeWindow

public int getLogMergeTimeWindow()

getCleartoolExe

public java.lang.String getCleartoolExe()

getDisplayName

public java.lang.String getDisplayName()
Specified by:
getDisplayName in interface hudson.model.ModelObject
Specified by:
getDisplayName in class hudson.model.Descriptor<hudson.scm.SCM>

configure

public boolean configure(org.kohsuke.stapler.StaplerRequest req)
Overrides:
configure in class hudson.model.Descriptor<hudson.scm.SCM>

newInstance

public hudson.scm.SCM newInstance(org.kohsuke.stapler.StaplerRequest req)
                           throws hudson.model.Descriptor.FormException
Overrides:
newInstance in class hudson.model.Descriptor<hudson.scm.SCM>
Throws:
hudson.model.Descriptor.FormException

doCleartoolExeCheck

public void doCleartoolExeCheck(org.kohsuke.stapler.StaplerRequest req,
                                org.kohsuke.stapler.StaplerResponse rsp)
                         throws java.io.IOException,
                                javax.servlet.ServletException
Checks if cleartool executable exists.

Throws:
java.io.IOException
javax.servlet.ServletException

doExcludedRegionsCheck

public void doExcludedRegionsCheck(org.kohsuke.stapler.StaplerRequest req,
                                   org.kohsuke.stapler.StaplerResponse rsp)
                            throws java.io.IOException,
                                   javax.servlet.ServletException
Validates the excludedRegions Regex

Throws:
java.io.IOException
javax.servlet.ServletException

doConfigSpecCheck

public void doConfigSpecCheck(org.kohsuke.stapler.StaplerRequest req,
                              org.kohsuke.stapler.StaplerResponse rsp)
                       throws java.io.IOException,
                              javax.servlet.ServletException
Throws:
java.io.IOException
javax.servlet.ServletException

doMandatoryCheck

public void doMandatoryCheck(org.kohsuke.stapler.StaplerRequest req,
                             org.kohsuke.stapler.StaplerResponse rsp)
                      throws java.io.IOException,
                             javax.servlet.ServletException
Raises an error if the parameter value isnt set.

Parameters:
req - containing the parameter value and the errorText to display if the value isnt set
rsp -
Throws:
java.io.IOException
javax.servlet.ServletException

doVersion

public void doVersion(org.kohsuke.stapler.StaplerRequest req,
                      org.kohsuke.stapler.StaplerResponse rsp)
               throws java.io.IOException,
                      javax.servlet.ServletException,
                      java.lang.InterruptedException
Displays "cleartool -version" for trouble shooting.

Throws:
java.io.IOException
javax.servlet.ServletException
java.lang.InterruptedException

doListViews

public void doListViews(org.kohsuke.stapler.StaplerRequest req,
                        org.kohsuke.stapler.StaplerResponse rsp)
                 throws java.io.IOException,
                        javax.servlet.ServletException,
                        java.lang.InterruptedException
Throws:
java.io.IOException
javax.servlet.ServletException
java.lang.InterruptedException


Copyright © 2009. All Rights Reserved.