hudson.scm
Class CVSSCM.DescriptorImpl

java.lang.Object
  extended by hudson.model.Descriptor<hudson.scm.SCM>
      extended by hudson.scm.SCMDescriptor<CVSSCM>
          extended by hudson.scm.CVSSCM.DescriptorImpl
All Implemented Interfaces:
hudson.model.ModelObject, hudson.model.Saveable
Enclosing class:
CVSSCM

@Extension
public static final class CVSSCM.DescriptorImpl
extends hudson.scm.SCMDescriptor<CVSSCM>
implements hudson.model.ModelObject


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
CVSSCM.DescriptorImpl()
           
 
Method Summary
 boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject o)
           
protected  void convert(java.util.Map<java.lang.String,java.lang.Object> oldPropertyBag)
           
 hudson.util.FormValidation doCheckBranch(java.lang.String value)
          Checks the correctness of the branch name.
 hudson.util.FormValidation doCheckCvsExe(java.lang.String value)
          Checks if cvs executable exists.
 hudson.util.FormValidation doCheckCvspassFile(java.lang.String value)
           
 hudson.util.FormValidation doCheckCvsRoot(java.lang.String value)
          Checks the entry to the CVSROOT field.
 hudson.util.FormValidation doCheckExcludeRegions(java.lang.String value)
          Validates the excludeRegions Regex
 void doPostPassword(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
          Runs cvs login command.
 void doVersion(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
          Displays "cvs --version" for trouble shooting.
 java.util.Set<java.lang.String> getAllCvsRoots()
          Returns all CVSROOT strings used in the current Hudson installation.
 java.lang.String getCvsExe()
           
 java.lang.String getCvsExeOrDefault()
           
 java.lang.String getCvspassFile()
           
 java.lang.String getDisplayName()
           
 boolean isBrowserReusable(CVSSCM x, CVSSCM y)
           
 boolean isNoCompression()
           
 hudson.scm.SCM newInstance(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData)
           
 void setCvsExe(java.lang.String value)
           
 void setCvspassFile(java.lang.String value)
           
 
Methods inherited from class hudson.scm.SCMDescriptor
getBrowserDescriptors, isApplicable, load
 
Methods inherited from class hudson.model.Descriptor
configure, configure, doHelp, find, find, getCheckUrl, getConfigPage, getGlobalConfigPage, getHelpFile, getHelpFile, getJsonSafeClassName, getPropertyType, getViewPage, isInstance, isSubTypeOf, 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

CVSSCM.DescriptorImpl

public CVSSCM.DescriptorImpl()
Method Detail

convert

protected void convert(java.util.Map<java.lang.String,java.lang.Object> oldPropertyBag)
Overrides:
convert in class hudson.model.Descriptor<hudson.scm.SCM>

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>

newInstance

public hudson.scm.SCM 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

getCvspassFile

public java.lang.String getCvspassFile()

getCvsExe

public java.lang.String getCvsExe()

setCvsExe

public void setCvsExe(java.lang.String value)

getCvsExeOrDefault

public java.lang.String getCvsExeOrDefault()

setCvspassFile

public void setCvspassFile(java.lang.String value)

isNoCompression

public boolean isNoCompression()

configure

public boolean configure(org.kohsuke.stapler.StaplerRequest req,
                         net.sf.json.JSONObject o)
Overrides:
configure in class hudson.model.Descriptor<hudson.scm.SCM>

isBrowserReusable

public boolean isBrowserReusable(CVSSCM x,
                                 CVSSCM y)
Overrides:
isBrowserReusable in class hudson.scm.SCMDescriptor<CVSSCM>

getAllCvsRoots

public java.util.Set<java.lang.String> getAllCvsRoots()
Returns all CVSROOT strings used in the current Hudson installation.


doCheckCvspassFile

public hudson.util.FormValidation doCheckCvspassFile(@QueryParameter
                                                     java.lang.String value)

doCheckCvsExe

public hudson.util.FormValidation doCheckCvsExe(@QueryParameter
                                                java.lang.String value)
Checks if cvs executable exists.


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 "cvs --version" for trouble shooting.

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

doCheckBranch

public hudson.util.FormValidation doCheckBranch(@QueryParameter
                                                java.lang.String value)
Checks the correctness of the branch name.


doCheckCvsRoot

public hudson.util.FormValidation doCheckCvsRoot(@QueryParameter
                                                 java.lang.String value)
                                          throws java.io.IOException
Checks the entry to the CVSROOT field.

Also checks if .cvspass file contains the entry for this.

Throws:
java.io.IOException

doCheckExcludeRegions

public hudson.util.FormValidation doCheckExcludeRegions(@QueryParameter
                                                        java.lang.String value)
Validates the excludeRegions Regex


doPostPassword

public void doPostPassword(org.kohsuke.stapler.StaplerRequest req,
                           org.kohsuke.stapler.StaplerResponse rsp)
                    throws java.io.IOException,
                           java.lang.InterruptedException
Runs cvs login command. TODO: this apparently doesn't work. Probably related to the fact that cvs does some tty magic to disable echo back or whatever.

Throws:
java.io.IOException
java.lang.InterruptedException


Copyright © 2010. All Rights Reserved.