hudson.plugins.scm_sync_configuration
Class ScmSyncConfigurationPlugin

java.lang.Object
  extended by hudson.Plugin
      extended by hudson.plugins.scm_sync_configuration.ScmSyncConfigurationPlugin
All Implemented Interfaces:
hudson.model.Saveable

public class ScmSyncConfigurationPlugin
extends hudson.Plugin


Nested Class Summary
 
Nested classes/interfaces inherited from class hudson.Plugin
hudson.Plugin.DummyImpl
 
Field Summary
static ScmSyncStrategy[] AVAILABLE_STRATEGIES
           
 
Fields inherited from interface hudson.model.Saveable
NOOP
 
Constructor Summary
ScmSyncConfigurationPlugin()
           
 
Method Summary
 void configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData)
           
 ScmContext createScmContext()
           
 void deleteHierarchy(java.io.File rootHierarchy)
           
 void doHelpForRepositoryUrl(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse res)
           
 void doSubmitComment(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse res)
           
 hudson.model.Descriptor<? extends hudson.scm.SCM> getDescriptorForSCM(java.lang.String scmName)
           
static ScmSyncConfigurationPlugin getInstance()
           
 SCM getSCM()
           
 java.lang.String getScmRepositoryUrl()
           
 SCM[] getScms()
           
 java.lang.String getScmUrl()
           
 ScmSyncStrategy getStrategyForSaveable(hudson.model.Saveable s, java.io.File f)
           
 ScmSyncStrategy getStrategyForURL(java.lang.String url)
           
 void init()
           
 boolean isScmSelected(SCM _scm)
           
 void renameHierarchy(java.io.File oldDir, java.io.File newDir)
           
 void setBusiness(ScmSyncConfigurationBusiness business)
           
 boolean shouldDecorationOccursOnURL(java.lang.String url)
           
 void start()
           
 void stop()
           
 void synchronizeFile(java.io.File modifiedFile)
           
 
Methods inherited from class hudson.Plugin
configure, doDynamic, getConfigXml, load, postInitialize, save, setServletContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AVAILABLE_STRATEGIES

public static final transient ScmSyncStrategy[] AVAILABLE_STRATEGIES
Constructor Detail

ScmSyncConfigurationPlugin

public ScmSyncConfigurationPlugin()
Method Detail

start

public void start()
           throws java.lang.Exception
Overrides:
start in class hudson.Plugin
Throws:
java.lang.Exception

init

public void init()

stop

public void stop()
          throws java.lang.Exception
Overrides:
stop in class hudson.Plugin
Throws:
java.lang.Exception

configure

public void configure(org.kohsuke.stapler.StaplerRequest req,
                      net.sf.json.JSONObject formData)
               throws java.io.IOException,
                      javax.servlet.ServletException,
                      hudson.model.Descriptor.FormException
Overrides:
configure in class hudson.Plugin
Throws:
java.io.IOException
javax.servlet.ServletException
hudson.model.Descriptor.FormException

doSubmitComment

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

doHelpForRepositoryUrl

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

deleteHierarchy

public void deleteHierarchy(java.io.File rootHierarchy)

renameHierarchy

public void renameHierarchy(java.io.File oldDir,
                            java.io.File newDir)

synchronizeFile

public void synchronizeFile(java.io.File modifiedFile)

getInstance

public static ScmSyncConfigurationPlugin getInstance()

getStrategyForSaveable

public ScmSyncStrategy getStrategyForSaveable(hudson.model.Saveable s,
                                              java.io.File f)

createScmContext

public ScmContext createScmContext()

shouldDecorationOccursOnURL

public boolean shouldDecorationOccursOnURL(java.lang.String url)

getStrategyForURL

public ScmSyncStrategy getStrategyForURL(java.lang.String url)

getScms

public SCM[] getScms()

setBusiness

public void setBusiness(ScmSyncConfigurationBusiness business)

getScmRepositoryUrl

public java.lang.String getScmRepositoryUrl()

isScmSelected

public boolean isScmSelected(SCM _scm)

getSCM

public SCM getSCM()

getScmUrl

public java.lang.String getScmUrl()

getDescriptorForSCM

public hudson.model.Descriptor<? extends hudson.scm.SCM> getDescriptorForSCM(java.lang.String scmName)


Copyright © 2011. All Rights Reserved.