public abstract class RepositoryManager extends Object
| Modifier and Type | Field and Description |
|---|---|
protected RepositoryCreator |
repositoryCreator |
| Constructor and Description |
|---|
RepositoryManager()
Default constructor
|
RepositoryManager(RepositoryCreator repositoryCreator)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
addRepository(int tenantId,
String url)
Adds the already existing repository specified by tenant
|
abstract RepositoryInformation |
getCredentialsInformation(int tenantId)
Returns a RepositoryInformation instance populated with repository credentials for a tenant
|
abstract RepositoryInformation |
getUrlInformation(int tenantId)
Returns a RepositoryInformation instance populated with repository url for a tenant
|
abstract void |
provisionRepository(int tenantId)
Creates a repository for the tenant in the location specified, if it doesn't exist already
|
void |
setRepositoryCreator(RepositoryCreator repositoryCreator)
Sets the repository creator implementation
|
protected RepositoryCreator repositoryCreator
public RepositoryManager()
public RepositoryManager(RepositoryCreator repositoryCreator)
repositoryCreator - Repository creator instancepublic void setRepositoryCreator(RepositoryCreator repositoryCreator)
repositoryCreator - RepositoryCreator instancepublic abstract RepositoryInformation getUrlInformation(int tenantId) throws DeploymentSynchronizerException
tenantId - tenant IdDeploymentSynchronizerException - in case of an errorpublic abstract RepositoryInformation getCredentialsInformation(int tenantId) throws DeploymentSynchronizerException
tenantId - tenant IdDeploymentSynchronizerException - in case of an errorpublic abstract void provisionRepository(int tenantId)
throws DeploymentSynchronizerException
tenantId - tenant IdDeploymentSynchronizerException - in case of an errorpublic abstract void addRepository(int tenantId,
String url)
throws DeploymentSynchronizerException
tenantId - tenant Idurl - repository urlDeploymentSynchronizerExceptionCopyright © 2019 WSO2. All rights reserved.