Class RepositoryManager
java.lang.Object
org.wso2.carbon.deployment.synchronizer.RepositoryManager
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorRepositoryManager(RepositoryCreator repositoryCreator) Constructor -
Method Summary
Modifier and TypeMethodDescriptionabstract voidaddRepository(int tenantId, String url) Adds the already existing repository specified by tenantabstract RepositoryInformationgetCredentialsInformation(int tenantId) Returns a RepositoryInformation instance populated with repository credentials for a tenantabstract RepositoryInformationgetUrlInformation(int tenantId) Returns a RepositoryInformation instance populated with repository url for a tenantabstract voidprovisionRepository(int tenantId) Creates a repository for the tenant in the location specified, if it doesn't exist alreadyvoidsetRepositoryCreator(RepositoryCreator repositoryCreator) Sets the repository creator implementation
-
Field Details
-
repositoryCreator
-
-
Constructor Details
-
RepositoryManager
public RepositoryManager()Default constructor -
RepositoryManager
Constructor- Parameters:
repositoryCreator- Repository creator instance
-
-
Method Details
-
setRepositoryCreator
Sets the repository creator implementation- Parameters:
repositoryCreator- RepositoryCreator instance
-
getUrlInformation
public abstract RepositoryInformation getUrlInformation(int tenantId) throws DeploymentSynchronizerException Returns a RepositoryInformation instance populated with repository url for a tenant- Parameters:
tenantId- tenant Id- Returns:
- RepositoryInformation instance if relevant details are found for tenant, else null
- Throws:
DeploymentSynchronizerException- in case of an error
-
getCredentialsInformation
public abstract RepositoryInformation getCredentialsInformation(int tenantId) throws DeploymentSynchronizerException Returns a RepositoryInformation instance populated with repository credentials for a tenant- Parameters:
tenantId- tenant Id- Returns:
- RepositoryInformation instance if relevant details are found for tenant, else null
- Throws:
DeploymentSynchronizerException- in case of an error
-
provisionRepository
Creates a repository for the tenant in the location specified, if it doesn't exist already- Parameters:
tenantId- tenant Id- Throws:
DeploymentSynchronizerException- in case of an error
-
addRepository
Adds the already existing repository specified by tenant- Parameters:
tenantId- tenant Idurl- repository url- Throws:
DeploymentSynchronizerException
-