public interface ArtifactRepository
| 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)
Deprecated.
|
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
|
List<RepositoryConfigParameter> |
getParameters()
Get the list of configuration parameters specific for each Repository.
|
String |
getRepositoryType()
Get the Repository Type of the Synchronizer
|
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 filePathToUpdate,
int depth)
Deprecated.
|
void init(int tenantId) throws DeploymentSynchronizerException
tenantId - ID of the tenant to which the synchronizer/repository belongsDeploymentSynchronizerException - If an error occurs while initializing the repositoryboolean commit(int tenantId,
String filePath)
throws DeploymentSynchronizerException
tenantId - tenant IdfilePath - File path of the local repositoryDeploymentSynchronizerException - on errorboolean checkout(int tenantId,
String filePath)
throws DeploymentSynchronizerException
tenantId - tenant IdfilePath - File path of the local repositoryDeploymentSynchronizerException - on errorvoid initAutoCheckout(boolean useEventing)
throws DeploymentSynchronizerException
useEventing - If eventing based auto checkout has been requestedDeploymentSynchronizerException - on errorvoid cleanupAutoCheckout()
String getRepositoryType()
List<RepositoryConfigParameter> getParameters()
@Deprecated boolean checkout(int tenantId, String filePath, int depth) throws DeploymentSynchronizerException
checkout(int, String)
method.DeploymentSynchronizerException@Deprecated boolean update(int tenantId, String rootPath, String filePathToUpdate, int depth) throws DeploymentSynchronizerException
checkout(int, String, int) for more information.DeploymentSynchronizerExceptionvoid cleanupTenantContext(int tenantId)
tenantId - tenant IdCopyright © 2019 WSO2. All rights reserved.