Examples of TenantRegAgentServiceStub


Examples of org.wso2.carbon.tenant.reg.agent.stub.TenantRegAgentServiceStub

    public static TenantRegAgentServiceStub getTenantRegAgentServiceStub(
            String serverUrl,
            String userName,
            String password) throws Exception {
        TenantRegAgentServiceStub stub =
                new TenantRegAgentServiceStub(DataHolder.getInstance().getClientConfigContext(),
                                              serverUrl + "TenantRegAgentService");
        ServiceClient client = stub._getServiceClient();
        Options option = client.getOptions();
        option.setManageSession(true);
        String cookie = login(serverUrl, userName, password);
        option.setProperty(
                org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING,
View Full Code Here

Examples of org.wso2.carbon.tenant.reg.agent.stub.TenantRegAgentServiceStub

                for (TenantRegListenerServer server : listenerServers) {
                    final String serverUrl = server.getServerUrl();
                    final String userName = server.getUserName();
                    final String password = server.getPassword();
                    try {
                        TenantRegAgentServiceStub stub =
                                getTenantRegAgentServiceStub(serverUrl, userName, password);

                        stub.addTenant(tenantId);
                    } catch (Exception e) {
                        String msg = "Error in triggering the tenant update, tenant id: "
                                     + tenantId + ".";
                        log.error(msg, e);
                    }
View Full Code Here

Examples of org.wso2.carbon.tenant.reg.agent.stub.TenantRegAgentServiceStub

                    final String serverUrl = server.getServerUrl();
                    final String userName = server.getUserName();
                    final String password = server.getPassword();
                    try {
                        TenantRegAgentServiceStub stub =
                                getTenantRegAgentServiceStub(serverUrl, userName, password);

                        stub.updateTenant(tenantId);
                    } catch (Exception e) {
                        String msg = "Error in triggering the tenant update, tenant id: "
                                     + tenantId + ".";
                        log.error(msg, e);
                    }
View Full Code Here

Examples of org.wso2.carbon.tenant.reg.agent.stub.TenantRegAgentServiceStub

                    final String serverUrl = server.getServerUrl();
                    final String userName = server.getUserName();
                    final String password = server.getPassword();
                    try {
                        TenantRegAgentServiceStub stub =
                                getTenantRegAgentServiceStub(serverUrl, userName, password);

                        stub.renameTenant(tenantId, oldName, newName);
                    } catch (Exception e) {
                        String msg = "Error in triggering the tenant update, tenant id: "
                                     + tenantId + ".";
                        log.error(msg, e);
                    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.