Package org.wso2.carbon.common.listeners

Examples of org.wso2.carbon.common.listeners.TenantMgtListener.renameTenant()


            throws UserStoreException {
        Object[] tenantMgtListeners = tenantMgtListenerServiceTracker.getServices();

        for (Object tenantMgtListenerObj : tenantMgtListeners) {
            TenantMgtListener tenantMgtLister = (TenantMgtListener) tenantMgtListenerObj;
            tenantMgtLister.renameTenant(tenantId, oldName, newName);
        }
    }
}
View Full Code Here


                    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.