public class TenantSelfRegistrationService extends Object
Constructor and Description |
---|
TenantSelfRegistrationService() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkDomainAvailability(String domainName)
Check if the selected domain is available to register
|
org.wso2.carbon.captcha.mgt.beans.CaptchaInfoBean |
generateRandomCaptcha()
Generates a random Captcha
|
String |
registerTenant(org.wso2.carbon.stratos.common.beans.TenantInfoBean tenantInfoBean,
org.wso2.carbon.captcha.mgt.beans.CaptchaInfoBean captchaInfoBean)
Registers a tenant - Tenant Self Registration
|
String |
registerTenantForTrustedUser(org.wso2.carbon.stratos.common.beans.TenantInfoBean tenantInfoBean)
Registers a tenant - Tenant Self Registration For trusted User (users which were created first)
<
|
String |
validateOrSuggestDomain(String domain,
String successKey)
Validates or Suggests a domain.
|
public String registerTenant(org.wso2.carbon.stratos.common.beans.TenantInfoBean tenantInfoBean, org.wso2.carbon.captcha.mgt.beans.CaptchaInfoBean captchaInfoBean) throws Exception
tenantInfoBean
- - tenantInformationcaptchaInfoBean
- - captchaInformationException
- if the tenant registration fails.public String registerTenantForTrustedUser(org.wso2.carbon.stratos.common.beans.TenantInfoBean tenantInfoBean) throws Exception
tenantInfoBean
- - tenantInformationException
- if the tenant registration fails.public boolean checkDomainAvailability(String domainName) throws Exception
domainName
- domain nameException,
- if unable to get the tenant manager, or get the tenant id
from manager.Exception
public String validateOrSuggestDomain(String domain, String successKey) throws Exception
domain
- tenant domainsuccessKey
- success keyException
- if exception in validating or suggesting the tenant domain.Copyright © 2019 WSO2. All rights reserved.