org.wso2.carbon.deployment.synchronizer.subversion
Class SVNBasedArtifactRepository

java.lang.Object
  extended by org.wso2.carbon.deployment.synchronizer.subversion.SVNBasedArtifactRepository
All Implemented Interfaces:
org.wso2.carbon.deployment.synchronizer.ArtifactRepository

public class SVNBasedArtifactRepository
extends Object
implements org.wso2.carbon.deployment.synchronizer.ArtifactRepository

Subversion based artifact repository can be used in conjunction with the DeploymentSynchronizer to synchronize a local repository against a remote SVN repository. By default this implementation does not entertain SVN externals but it can be enabled if required. This is based on the Subclipse SVN client adapter which in turns support SVN Kit, Java HL and command line SVN client adapters.


Constructor Summary
SVNBasedArtifactRepository()
           
 
Method Summary
 boolean checkout(int tenantId, String filePath)
           
 boolean checkout(int tenantId, String filePath, int depth)
           
 void cleanupAutoCheckout()
           
 void cleanupTenantContext(int tenantId)
           
 boolean commit(int tenantId, String filePath)
           
 boolean equals(Object o)
           
 List<org.wso2.carbon.deployment.synchronizer.util.RepositoryConfigParameter> getParameters()
           
 String getRepositoryType()
           
 int hashCode()
           
 void init(int tenantId)
           
 void initAutoCheckout(boolean useEventing)
           
 List<String> processUnversionedWebappActions(org.tigris.subversion.svnclientadapter.ISVNStatus[] status)
           
 boolean update(int tenantId, String rootPath, String filePath, int depth)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SVNBasedArtifactRepository

public SVNBasedArtifactRepository()
Method Detail

init

public void init(int tenantId)
          throws org.wso2.carbon.deployment.synchronizer.DeploymentSynchronizerException
Specified by:
init in interface org.wso2.carbon.deployment.synchronizer.ArtifactRepository
Throws:
org.wso2.carbon.deployment.synchronizer.DeploymentSynchronizerException

commit

public boolean commit(int tenantId,
                      String filePath)
               throws org.wso2.carbon.deployment.synchronizer.DeploymentSynchronizerException
Specified by:
commit in interface org.wso2.carbon.deployment.synchronizer.ArtifactRepository
Throws:
org.wso2.carbon.deployment.synchronizer.DeploymentSynchronizerException

checkout

public boolean checkout(int tenantId,
                        String filePath)
                 throws org.wso2.carbon.deployment.synchronizer.DeploymentSynchronizerException
Specified by:
checkout in interface org.wso2.carbon.deployment.synchronizer.ArtifactRepository
Throws:
org.wso2.carbon.deployment.synchronizer.DeploymentSynchronizerException

initAutoCheckout

public void initAutoCheckout(boolean useEventing)
                      throws org.wso2.carbon.deployment.synchronizer.DeploymentSynchronizerException
Specified by:
initAutoCheckout in interface org.wso2.carbon.deployment.synchronizer.ArtifactRepository
Throws:
org.wso2.carbon.deployment.synchronizer.DeploymentSynchronizerException

cleanupAutoCheckout

public void cleanupAutoCheckout()
Specified by:
cleanupAutoCheckout in interface org.wso2.carbon.deployment.synchronizer.ArtifactRepository

getRepositoryType

public String getRepositoryType()
Specified by:
getRepositoryType in interface org.wso2.carbon.deployment.synchronizer.ArtifactRepository

getParameters

public List<org.wso2.carbon.deployment.synchronizer.util.RepositoryConfigParameter> getParameters()
Specified by:
getParameters in interface org.wso2.carbon.deployment.synchronizer.ArtifactRepository

checkout

public boolean checkout(int tenantId,
                        String filePath,
                        int depth)
                 throws org.wso2.carbon.deployment.synchronizer.DeploymentSynchronizerException
Specified by:
checkout in interface org.wso2.carbon.deployment.synchronizer.ArtifactRepository
Throws:
org.wso2.carbon.deployment.synchronizer.DeploymentSynchronizerException

update

public boolean update(int tenantId,
                      String rootPath,
                      String filePath,
                      int depth)
               throws org.wso2.carbon.deployment.synchronizer.DeploymentSynchronizerException
Specified by:
update in interface org.wso2.carbon.deployment.synchronizer.ArtifactRepository
Throws:
org.wso2.carbon.deployment.synchronizer.DeploymentSynchronizerException

cleanupTenantContext

public void cleanupTenantContext(int tenantId)
Specified by:
cleanupTenantContext in interface org.wso2.carbon.deployment.synchronizer.ArtifactRepository

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

processUnversionedWebappActions

public List<String> processUnversionedWebappActions(org.tigris.subversion.svnclientadapter.ISVNStatus[] status)


Copyright © 2015 WSO2. All rights reserved.