Examples of updateTenant()


Examples of org.apache.stratos.tenant.mgt.ui.clients.TenantServiceClient.updateTenant()

            tenantInfoBean.setAdminPassword(request.getParameter("admin-password"));
            tenantInfoBean.setTenantDomain(request.getParameter("domain"));
            tenantInfoBean.setEmail(request.getParameter("admin-email"));
            tenantInfoBean.setUsagePlan(request.getParameter("usage-plan-name"));
            TenantServiceClient serviceClient = new TenantServiceClient(config, session);
            serviceClient.updateTenant(tenantInfoBean);
            //UsagePlanClient usagePlanClient = new UsagePlanClient(config, session);
            //update usage plan(subscription) per tenant
            //usagePlanClient.updateUsagePlan(tenantInfoBean);
        } catch (Exception e) {
            String msg = "Failed to update the tenant config. tenant-domain: "
View Full Code Here

Examples of org.wso2.carbon.tenant.mgt.ui.clients.TenantServiceClient.updateTenant()

            tenantInfoBean.setAdminPassword(request.getParameter("admin-password"));
            tenantInfoBean.setTenantDomain(request.getParameter("domain"));
            tenantInfoBean.setEmail(request.getParameter("admin-email"));
            tenantInfoBean.setUsagePlan(request.getParameter("usage-plan-name"));
            TenantServiceClient serviceClient = new TenantServiceClient(config, session);
            serviceClient.updateTenant(tenantInfoBean);
            //UsagePlanClient usagePlanClient = new UsagePlanClient(config, session);
            //update usage plan(subscription) per tenant
            //usagePlanClient.updateUsagePlan(tenantInfoBean);
        } catch (Exception e) {
            String msg = "Failed to update the tenant config. tenant-domain: "
View Full Code Here

Examples of org.wso2.carbon.tenant.reg.agent.stub.TenantRegAgentServiceStub.updateTenant()

                    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.user.core.tenant.TenantManager.updateTenant()

                tenantManager.getDomain(tenantId4));

        // check the update
        Tenant tenant4 = (Tenant) tenantManager.getTenant(tenantId4);
        tenant4.setDomain("WSO2.com");
        tenantManager.updateTenant(tenant4);

        // checking the updated values
        Tenant tenant5 = (Tenant) tenantManager.getTenant(tenantId4);
        assertEquals("tenant domain should be equal.", tenant5.getDomain(), "WSO2.com");
View Full Code Here

Examples of org.wso2.carbon.user.core.tenant.TenantManager.updateTenant()

            log.error(msg, e);
            throw new RegistryException(msg, e);
        }
        tenant.setEmail(email);
        try {
            tenantManager.updateTenant(tenant);
        } catch (UserStoreException e) {
            String msg =
                    "Error in updating the tenant information for the tenant id: " + tenantId + ".";
            log.error(msg, e);
            throw new RegistryException(msg, e);
View Full Code Here

Examples of org.wso2.carbon.user.core.tenant.TenantManager.updateTenant()

                throw new Exception(msg, e);
            }
        }

        try {
            tenantManager.updateTenant(tenant);
        } catch (UserStoreException e) {
            String msg = "Error in updating the tenant for tenant domain: " + tenantDomain + ".";
            log.error(msg, e);
            throw new Exception(msg, e);
        }
View Full Code Here

Examples of org.wso2.carbon.user.core.tenant.TenantManager.updateTenant()

            //Password should be empty since no password update done
            tenantInfoBean.setAdminPassword("");
        }

        try {
            tenantManager.updateTenant(tenant);
        } catch (UserStoreException e) {
            String msg = "Error in updating the tenant for tenant domain: " + tenantDomain + ".";
            log.error(msg, e);
            throw new Exception(msg, e);
        }
View Full Code Here

Examples of org.wso2.carbon.user.core.tenant.TenantManager.updateTenant()

        if (!CommonUtil.isTenantActivationModerated()) {
            tenant.setEmail(email);
        }

        try {
            tenantManager.updateTenant(tenant);
        } catch (UserStoreException e) {
            String msg =
                    "Error in updating the tenant information for the tenant id: " + tenantId + ".";
            log.error(msg, e);
            throw new RegistryException(msg, e);
View Full Code Here

Examples of org.wso2.carbon.user.core.tenant.TenantManager.updateTenant()

            //Password should be empty since no password update done
            tenantInfoBean.setAdminPassword("");
        }

        try {
            tenantManager.updateTenant(tenant);
        } catch (UserStoreException e) {
            String msg = "Error in updating the tenant for tenant domain: " + tenantDomain + ".";
            log.error(msg, e);
            throw new Exception(msg, e);
        }
View Full Code Here

Examples of org.wso2.carbon.user.core.tenant.TenantManager.updateTenant()

            //Password should be empty since no password update done
            tenantInfoBean.setAdminPassword("");
        }

        try {
            tenantManager.updateTenant(tenant);
        } catch (UserStoreException e) {
            String msg = "Error in updating the tenant for tenant domain: " + tenantDomain + ".";
            log.error(msg, e);
            throw new Exception(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.