hudson.plugins.perforce
Class PerforceSCM.PerforceSCMDescriptor

java.lang.Object
  extended by hudson.model.Descriptor<hudson.scm.SCM>
      extended by hudson.scm.SCMDescriptor<PerforceSCM>
          extended by hudson.plugins.perforce.PerforceSCM.PerforceSCMDescriptor
All Implemented Interfaces:
hudson.model.Saveable
Enclosing class:
PerforceSCM

@Extension
public static final class PerforceSCM.PerforceSCMDescriptor
extends hudson.scm.SCMDescriptor<PerforceSCM>


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
PerforceSCM.PerforceSCMDescriptor()
           
 
Method Summary
 hudson.util.FormValidation doCheckChangeList(org.kohsuke.stapler.StaplerRequest req)
          Checks if the change list entered exists
 hudson.util.FormValidation doCheckProjectPath(java.lang.String value)
          Checks if the value is a valid Perforce project path.
 hudson.util.FormValidation doCheckViewMask(org.kohsuke.stapler.StaplerRequest req)
           
 hudson.util.FormValidation doValidateP4Client(org.kohsuke.stapler.StaplerRequest req)
          Checks to see if the specified workspace is valid.
 hudson.util.FormValidation doValidateP4Counter(org.kohsuke.stapler.StaplerRequest req, java.lang.String counter)
          Performs syntactical and permissions check on the P4Counter
 hudson.util.FormValidation doValidateP4Label(org.kohsuke.stapler.StaplerRequest req, java.lang.String label)
          Performs syntactical check on the P4Label
 hudson.util.FormValidation doValidatePerforceLogin(org.kohsuke.stapler.StaplerRequest req)
          Checks if the perforce login credentials are good.
protected  Depot getDepotFromRequest(org.kohsuke.stapler.StaplerRequest request)
           
 java.lang.String getDisplayName()
           
 java.lang.String isValidProjectPath(java.lang.String path)
           
 hudson.scm.SCM 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
configure, configure, configure, convert, 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

PerforceSCM.PerforceSCMDescriptor

public PerforceSCM.PerforceSCMDescriptor()
Method Detail

getDisplayName

public java.lang.String getDisplayName()
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

isValidProjectPath

public java.lang.String isValidProjectPath(java.lang.String path)

getDepotFromRequest

protected Depot getDepotFromRequest(org.kohsuke.stapler.StaplerRequest request)

doValidatePerforceLogin

public hudson.util.FormValidation doValidatePerforceLogin(org.kohsuke.stapler.StaplerRequest req)
Checks if the perforce login credentials are good.


doValidateP4Client

public hudson.util.FormValidation doValidateP4Client(org.kohsuke.stapler.StaplerRequest req)
Checks to see if the specified workspace is valid.


doValidateP4Label

public hudson.util.FormValidation doValidateP4Label(org.kohsuke.stapler.StaplerRequest req,
                                                    @QueryParameter
                                                    java.lang.String label)
                                             throws java.io.IOException,
                                                    javax.servlet.ServletException
Performs syntactical check on the P4Label

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

doValidateP4Counter

public hudson.util.FormValidation doValidateP4Counter(org.kohsuke.stapler.StaplerRequest req,
                                                      @QueryParameter
                                                      java.lang.String counter)
                                               throws java.io.IOException,
                                                      javax.servlet.ServletException
Performs syntactical and permissions check on the P4Counter

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

doCheckProjectPath

public hudson.util.FormValidation doCheckProjectPath(@QueryParameter
                                                     java.lang.String value)
                                              throws java.io.IOException,
                                                     javax.servlet.ServletException
Checks if the value is a valid Perforce project path.

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

doCheckViewMask

public hudson.util.FormValidation doCheckViewMask(org.kohsuke.stapler.StaplerRequest req)

doCheckChangeList

public hudson.util.FormValidation doCheckChangeList(org.kohsuke.stapler.StaplerRequest req)
Checks if the change list entered exists



Copyright © 2010. All Rights Reserved.