Examples of TenantManagementException


Examples of org.apache.stratos.tenant.mgt.exception.TenantManagementException

            RealmConfiguration realmConfig = tenant.getRealmConfig();
            String value = realmConfig.getUserStoreProperties().get(
                            UserCoreConstants.RealmConfig.PROPERTY_EXTERNAL_IDP);

            if (value == null) {
                throw new TenantManagementException(
                        "This domain has been already registered as a non-Google App domain");
            }

            if (value.equals(GOOGLE_APPS_IDP_NAME)) {
                return true;
            }
           
            throw new TenantManagementException(
                    "This domain has been already registered with a different External IdP");
        } catch (UserStoreException e) {
            log.error(e.getMessage(), e);
            throw new TenantManagementException("System error occured while connecting user store");
        }
    }
View Full Code Here

Examples of org.apache.stratos.tenant.mgt.exception.TenantManagementException

            TenantMgtServiceComponent.getRealmService().getTenantManager().activateTenant(tenantId);
            return true;
        } catch (Exception e) {
            log.error("Error creating tenant for GooogleApp market place implementation", e);
            throw new TenantManagementException(
                    "Error creating tenant for GooogleApp market place implementation", e);
        }
    }
View Full Code Here

Examples of org.apache.stratos.tenant.mgt.exception.TenantManagementException

            RealmConfiguration realmConfig = tenant.getRealmConfig();
            String value = realmConfig.getUserStoreProperties().get(
                            UserCoreConstants.RealmConfig.PROPERTY_EXTERNAL_IDP);

            if (value == null) {
                throw new TenantManagementException(
                        "This domain has been already registered as a non-Google App domain");
            }

            if (value.equals(GOOGLE_APPS_IDP_NAME)) {
                return true;
            }
           
            throw new TenantManagementException(
                    "This domain has been already registered with a different External IdP");
        } catch (UserStoreException e) {
            log.error(e.getMessage(), e);
            throw new TenantManagementException("System error occured while connecting user store");
        }
    }
View Full Code Here

Examples of org.apache.stratos.tenant.mgt.exception.TenantManagementException

            TenantMgtServiceComponent.getRealmService().getTenantManager().activateTenant(tenantId);
            return true;
        } catch (Exception e) {
            log.error("Error creating tenant for GooogleApp market place implementation", e);
            throw new TenantManagementException(
                    "Error creating tenant for GooogleApp market place implementation", 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.