Class RepositoryInformationServiceClient
java.lang.Object
org.wso2.carbon.deployment.synchronizer.git.internal.RepositoryInformationServiceClient
Client for ReposioryInformationService. Used to get the git repo URL
for a given tenant Id and the cartridge type (short name)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetGitRepositoryUrl(int tenantId, String cartridgeType) Retrieves the Git Repository URL for the tenant and cartridge typeorg.wso2.carbon.adc.mgt.dao.xsd.RepositoryCredentialsgetJsonRepositoryInformation(int tenantId, String cartridgeType) Retrieves the repository url, username and password
-
Constructor Details
-
RepositoryInformationServiceClient
Constructor- Parameters:
epr- end point reference for the RepositoryInformationServiceClient- Throws:
org.apache.axis2.AxisFault
-
-
Method Details
-
getGitRepositoryUrl
public String getGitRepositoryUrl(int tenantId, String cartridgeType) throws RemoteException, org.wso2.carbon.adc.repository.information.RepositoryInformationServiceException Retrieves the Git Repository URL for the tenant and cartridge type- Parameters:
tenantId- id of the tenantcartridgeType- cartridge type tenant is subscribed to- Returns:
- valid repository url if exists
- Throws:
ExceptionRemoteExceptionorg.wso2.carbon.adc.repository.information.RepositoryInformationServiceException
-
getJsonRepositoryInformation
public org.wso2.carbon.adc.mgt.dao.xsd.RepositoryCredentials getJsonRepositoryInformation(int tenantId, String cartridgeType) throws RemoteException, org.wso2.carbon.adc.repository.information.RepositoryInformationServiceException Retrieves the repository url, username and password- Parameters:
tenantId- id of the tenantcartridgeType- cartridge type tenant is subscribed to- Returns:
- RepositoryCredentials
- Throws:
ExceptionRemoteExceptionorg.wso2.carbon.adc.repository.information.RepositoryInformationServiceException
-