public class TenantPersistor extends Object
Constructor and Description |
---|
TenantPersistor() |
Modifier and Type | Method and Description |
---|---|
protected void |
copyUIPermissions(int tenantId)
Authorize the role
|
int |
persistTenant(org.wso2.carbon.user.core.tenant.Tenant tenant)
Persists the given tenant
|
int |
persistTenant(org.wso2.carbon.user.core.tenant.Tenant tenant,
boolean checkDomainValidation,
String successKey,
String originatedService,
boolean isSkeleton)
Persists the given tenant
|
protected void |
setActivationFlags(int tenantId,
String originalService) |
protected void |
storeDomainValidationFlagToRegistry(org.wso2.carbon.user.core.tenant.Tenant tenant)
Store the domain validation flag in the registry if the domain has been
validated.
|
public int persistTenant(org.wso2.carbon.user.core.tenant.Tenant tenant, boolean checkDomainValidation, String successKey, String originatedService, boolean isSkeleton) throws Exception
tenant
- - tenant to be persistedcheckDomainValidation
- - true, if domain is validated.successKey
- - successKeyoriginatedService
- - The Service that the tenant registration was originated.Exception,
- if persisting tenant failed.Exception
protected void storeDomainValidationFlagToRegistry(org.wso2.carbon.user.core.tenant.Tenant tenant) throws org.wso2.carbon.registry.core.exceptions.RegistryException
tenant
- - the tenantRegistryException,
- if storing the domain validation flag failed.org.wso2.carbon.registry.core.exceptions.RegistryException
protected void copyUIPermissions(int tenantId) throws Exception
tenantId
- - tenant idException
- - UserStoreExceptionprotected void setActivationFlags(int tenantId, String originalService) throws Exception
Exception
Copyright © 2019 WSO2. All rights reserved.