public class RegistryBasedArtifactRepository extends Object implements ArtifactRepository
| Constructor and Description |
|---|
RegistryBasedArtifactRepository() |
RegistryBasedArtifactRepository(org.wso2.carbon.registry.core.session.UserRegistry registry,
String registryPath,
String basePath) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkout(int tenantId,
String filePath)
Checkout all or updated artifacts from the remote repository to the local file system
|
boolean |
checkout(int tenantId,
String filePath,
int depth)
Checkout artifacts from the remote repository with given depth to the local file system
|
void |
cleanupAutoCheckout()
Clean up any actions taken during initializing auto checkout
|
void |
cleanupTenantContext(int tenantId)
Cleanup the cached tenant context for the tenant specified by tenantId
|
boolean |
commit(int tenantId,
String filePath)
Commit the artifacts in the local repository to the remote repository
|
boolean |
equals(Object o) |
List<RepositoryConfigParameter> |
getParameters()
Get the list of configuration parameters specific for each Repository.
|
String |
getRepositoryType()
Get the Repository Type of the Synchronizer
|
int |
hashCode() |
void |
init(int tenantId)
Initializes the remote artifact repository and prepare to synchronize the local
repository against it.
|
void |
initAutoCheckout(boolean useEventing)
Setup the remote repository for auto checkouts
|
boolean |
update(int tenantId,
String rootPath,
String filePath,
int depth)
Invoke the update operation on the specified file in the repository, with given depth
|
public void init(int tenantId)
throws DeploymentSynchronizerException
ArtifactRepositoryinit in interface ArtifactRepositorytenantId - ID of the tenant to which the synchronizer/repository belongsDeploymentSynchronizerException - If an error occurs while initializing the repositorypublic boolean commit(int tenantId,
String filePath)
throws DeploymentSynchronizerException
ArtifactRepositorycommit in interface ArtifactRepositorytenantId - tenant IdfilePath - File path of the local repositoryDeploymentSynchronizerException - on errorpublic boolean checkout(int tenantId,
String filePath)
throws DeploymentSynchronizerException
ArtifactRepositorycheckout in interface ArtifactRepositorytenantId - tenant IdfilePath - File path of the local repositoryDeploymentSynchronizerException - on errorpublic void initAutoCheckout(boolean useEventing)
throws DeploymentSynchronizerException
ArtifactRepositoryinitAutoCheckout in interface ArtifactRepositoryuseEventing - If eventing based auto checkout has been requestedDeploymentSynchronizerException - on errorpublic void cleanupAutoCheckout()
ArtifactRepositorycleanupAutoCheckout in interface ArtifactRepositorypublic String getRepositoryType()
ArtifactRepositorygetRepositoryType in interface ArtifactRepositorypublic List<RepositoryConfigParameter> getParameters()
ArtifactRepositorygetParameters in interface ArtifactRepositorypublic boolean checkout(int tenantId,
String filePath,
int depth)
throws DeploymentSynchronizerException
ArtifactRepositorycheckout in interface ArtifactRepositorytenantId - tenant IdfilePath - File path of the local repositorydepth - - given depth to get the updateDeploymentSynchronizerException - on errorpublic boolean update(int tenantId,
String rootPath,
String filePath,
int depth)
throws DeploymentSynchronizerException
ArtifactRepositoryupdate in interface ArtifactRepositorytenantId - tenant IdrootPath - - root path of the repository of which the dep-sychronizer is registeredfilePath - - location of the file in the repositorydepth - Depth given to update, (eg 0 - empty, 3 - infinite)DeploymentSynchronizerException - on errorpublic void cleanupTenantContext(int tenantId)
ArtifactRepositorycleanupTenantContext in interface ArtifactRepositorytenantId - tenant IdCopyright © 2015 WSO2. All rights reserved.