Examples of TenantServiceClient


Examples of org.wso2.carbon.tenant.mgt.ui.clients.TenantServiceClient

    public static void activateTenant(HttpServletRequest request, ServletConfig config,
                                      HttpSession session) throws Exception {
        String tenantDomain = "";
        try {
            tenantDomain = request.getParameter("activate.domain");
            TenantServiceClient serviceClient = new TenantServiceClient(config, session);
            serviceClient.activateTenant(tenantDomain);
        } catch (Exception e) {
            String msg = "Failed to activate the tenant:" + tenantDomain;
            log.error(msg, e);
            throw new Exception(msg, e);
        }
View Full Code Here

Examples of org.wso2.carbon.tenant.mgt.ui.clients.TenantServiceClient

    public static void deactivateTenant(HttpServletRequest request, ServletConfig config,
                                        HttpSession session) throws Exception {
        String tenantDomain = "";
        try {
            tenantDomain = request.getParameter("activate.domain");
            TenantServiceClient serviceClient = new TenantServiceClient(config, session);
            serviceClient.deactivateTenant(tenantDomain);
        } catch (Exception e) {
            String msg = "Failed to deactivate the tenant:" + tenantDomain;
            log.error(msg, e);
            throw new Exception(msg, e);
        }
View Full Code Here

Examples of org.wso2.stratos.esb.login.ui.clients.TenantServiceClient


    public static boolean checkDomainAvaialability(
            String domain, ServletConfig config, HttpSession session) throws Exception {
        try {
            TenantServiceClient serviceClient = new TenantServiceClient(config, session);
            return serviceClient.checkDomainAvailability(domain);
        } catch (Exception e) {
            String msg = "Failed to check the domain availability:" + domain + ".";
            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.