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
static class PerforceSCM.PerforceSCMDescriptor.ItemListenerImpl
           
 
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(String value)
          Checks if the value is a valid Perforce project path.
 hudson.util.FormValidation doCheckViewMask(org.kohsuke.stapler.StaplerRequest req)
           
 hudson.util.FormValidation doValidateClientSpec(org.kohsuke.stapler.StaplerRequest req)
          Checks to see if the specified ClientSpec is valid.
 hudson.util.FormValidation doValidateExcludedFiles(org.kohsuke.stapler.StaplerRequest req)
          Checks if the value is a valid file path/regex file pattern.
 hudson.util.FormValidation doValidateExcludedUsers(org.kohsuke.stapler.StaplerRequest req)
          Checks if the value is a valid user name/regex pattern.
 hudson.util.FormValidation doValidateForceSync(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, String counter)
          Performs syntactical and permissions check on the P4Counter
 hudson.util.FormValidation doValidateP4Label(org.kohsuke.stapler.StaplerRequest req, String label)
          Performs syntactical check on the P4Label
 hudson.util.FormValidation doValidateP4UpstreamProject(org.kohsuke.stapler.StaplerRequest req, String project)
          Checks to see if the specified project exists and has p4 info.
 hudson.util.FormValidation doValidatePerforceLogin(org.kohsuke.stapler.StaplerRequest req)
          Checks if the perforce login credentials are good.
 hudson.util.FormValidation doValidateStream(org.kohsuke.stapler.StaplerRequest req)
          Checks if the specified stream is valid.
 List<String> getAllLineEndChoices()
           
 String getAppName()
           
protected  Depot getDepotFromRequest(org.kohsuke.stapler.StaplerRequest request)
           
 String getDisplayName()
           
 List<PerforceToolInstallation> getP4Tools()
          List available tool installations.
 String isValidProjectPath(String path)
           
 hudson.scm.SCM newInstance(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData)
           
 
Methods inherited from class hudson.scm.SCMDescriptor
getBrowserDescriptors, getGeneration, isApplicable, isBrowserReusable, load
 
Methods inherited from class hudson.model.Descriptor
calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, getCheckUrl, getConfigFile, getConfigPage, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getPropertyType, getPropertyType, getViewPage, isInstance, isSubTypeOf, newInstance, newInstancesFromHeteroList, 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 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

getP4Tools

public List<PerforceToolInstallation> getP4Tools()
List available tool installations.

Returns:
list of available p4 tool installations

isValidProjectPath

public String isValidProjectPath(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
                                                    String label)
                                             throws IOException,
                                                    javax.servlet.ServletException
Performs syntactical check on the P4Label

Throws:
IOException
javax.servlet.ServletException

doValidateP4Counter

public hudson.util.FormValidation doValidateP4Counter(org.kohsuke.stapler.StaplerRequest req,
                                                      @QueryParameter
                                                      String counter)
Performs syntactical and permissions check on the P4Counter


doValidateP4UpstreamProject

public hudson.util.FormValidation doValidateP4UpstreamProject(org.kohsuke.stapler.StaplerRequest req,
                                                              @QueryParameter
                                                              String project)
                                                       throws IOException,
                                                              javax.servlet.ServletException
Checks to see if the specified project exists and has p4 info.

Throws:
IOException
javax.servlet.ServletException

doValidateClientSpec

public hudson.util.FormValidation doValidateClientSpec(org.kohsuke.stapler.StaplerRequest req)
                                                throws IOException,
                                                       javax.servlet.ServletException
Checks to see if the specified ClientSpec is valid.

Throws:
IOException
javax.servlet.ServletException

doValidateStream

public hudson.util.FormValidation doValidateStream(org.kohsuke.stapler.StaplerRequest req)
                                            throws IOException,
                                                   javax.servlet.ServletException
Checks if the specified stream is valid.

Throws:
IOException
javax.servlet.ServletException

doCheckProjectPath

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

Throws:
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


doValidateExcludedUsers

public hudson.util.FormValidation doValidateExcludedUsers(org.kohsuke.stapler.StaplerRequest req)
Checks if the value is a valid user name/regex pattern.


doValidateExcludedFiles

public hudson.util.FormValidation doValidateExcludedFiles(org.kohsuke.stapler.StaplerRequest req)
Checks if the value is a valid file path/regex file pattern.


doValidateForceSync

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

getAllLineEndChoices

public List<String> getAllLineEndChoices()

getAppName

public String getAppName()


Copyright © 2004-2012 Hudson. All Rights Reserved.