Class RepositoryInformationServiceClient
- java.lang.Object
-
- org.wso2.carbon.deployment.synchronizer.git.internal.RepositoryInformationServiceClient
-
public class RepositoryInformationServiceClient extends Object
Client for ReposioryInformationService. Used to get the git repo URL for a given tenant Id and the cartridge type (short name)
-
-
Constructor Summary
Constructors Constructor Description RepositoryInformationServiceClient(String epr)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetGitRepositoryUrl(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 Detail
-
RepositoryInformationServiceClient
public RepositoryInformationServiceClient(String epr) throws org.apache.axis2.AxisFault
Constructor- Parameters:
epr- end point reference for the RepositoryInformationServiceClient- Throws:
org.apache.axis2.AxisFault
-
-
Method Detail
-
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.RepositoryInformationServiceExceptionRetrieves 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
-
-