public class WSRealmTenantManager extends Object implements org.wso2.carbon.user.core.tenant.TenantManager
| Constructor and Description |
|---|
WSRealmTenantManager(String userName,
String password,
String url) |
| Modifier and Type | Method and Description |
|---|---|
void |
activateTenant(int tenantId) |
int |
addTenant(org.wso2.carbon.user.core.tenant.Tenant tenant) |
int |
addTenant(org.wso2.carbon.user.api.Tenant tenant) |
void |
deactivateTenant(int tenantId) |
void |
deleteTenant(int tenantId) |
void |
deleteTenant(int tenantId,
boolean removeFromPersistentStorage) |
org.wso2.carbon.user.core.tenant.Tenant[] |
getAllTenants() |
org.wso2.carbon.user.api.Tenant[] |
getAllTenantsForTenantDomainStr(String s) |
String |
getDomain(int tenantId) |
String |
getSuperTenantDomain() |
org.wso2.carbon.user.core.tenant.Tenant |
getTenant(int tenantId) |
int |
getTenantId(String domain) |
void |
initializeExistingPartitions()
This method was added to TenantManager interface to support tenant management with LDAP.
|
boolean |
isTenantActive(int tenantId) |
void |
setBundleContext(org.osgi.framework.BundleContext bundleContext) |
void |
updateTenant(org.wso2.carbon.user.api.Tenant tenant) |
void |
updateTenant(org.wso2.carbon.user.core.tenant.Tenant tenant) |
public void activateTenant(int tenantId)
throws org.wso2.carbon.user.core.UserStoreException
activateTenant in interface org.wso2.carbon.user.api.TenantManagerorg.wso2.carbon.user.core.UserStoreExceptionpublic int addTenant(org.wso2.carbon.user.core.tenant.Tenant tenant)
throws org.wso2.carbon.user.core.UserStoreException
org.wso2.carbon.user.core.UserStoreExceptionpublic void deactivateTenant(int tenantId)
throws org.wso2.carbon.user.core.UserStoreException
deactivateTenant in interface org.wso2.carbon.user.api.TenantManagerorg.wso2.carbon.user.core.UserStoreExceptionpublic void deleteTenant(int tenantId)
throws org.wso2.carbon.user.core.UserStoreException
deleteTenant in interface org.wso2.carbon.user.api.TenantManagerorg.wso2.carbon.user.core.UserStoreExceptionpublic void deleteTenant(int tenantId,
boolean removeFromPersistentStorage)
throws org.wso2.carbon.user.core.UserStoreException
deleteTenant in interface org.wso2.carbon.user.api.TenantManagerorg.wso2.carbon.user.core.UserStoreExceptionpublic org.wso2.carbon.user.core.tenant.Tenant[] getAllTenants()
throws org.wso2.carbon.user.core.UserStoreException
getAllTenants in interface org.wso2.carbon.user.api.TenantManagerorg.wso2.carbon.user.core.UserStoreExceptionpublic org.wso2.carbon.user.api.Tenant[] getAllTenantsForTenantDomainStr(String s) throws org.wso2.carbon.user.api.UserStoreException
getAllTenantsForTenantDomainStr in interface org.wso2.carbon.user.api.TenantManagerorg.wso2.carbon.user.api.UserStoreExceptionpublic String getDomain(int tenantId) throws org.wso2.carbon.user.core.UserStoreException
getDomain in interface org.wso2.carbon.user.api.TenantManagerorg.wso2.carbon.user.core.UserStoreExceptionpublic String getSuperTenantDomain() throws org.wso2.carbon.user.core.UserStoreException
getSuperTenantDomain in interface org.wso2.carbon.user.api.TenantManagerorg.wso2.carbon.user.core.UserStoreExceptionpublic int addTenant(org.wso2.carbon.user.api.Tenant tenant)
throws org.wso2.carbon.user.api.UserStoreException
addTenant in interface org.wso2.carbon.user.api.TenantManagerorg.wso2.carbon.user.api.UserStoreExceptionpublic void updateTenant(org.wso2.carbon.user.api.Tenant tenant)
throws org.wso2.carbon.user.api.UserStoreException
updateTenant in interface org.wso2.carbon.user.api.TenantManagerorg.wso2.carbon.user.api.UserStoreExceptionpublic org.wso2.carbon.user.core.tenant.Tenant getTenant(int tenantId)
throws org.wso2.carbon.user.core.UserStoreException
getTenant in interface org.wso2.carbon.user.api.TenantManagerorg.wso2.carbon.user.core.UserStoreExceptionpublic int getTenantId(String domain) throws org.wso2.carbon.user.core.UserStoreException
getTenantId in interface org.wso2.carbon.user.api.TenantManagerorg.wso2.carbon.user.core.UserStoreExceptionpublic boolean isTenantActive(int tenantId)
throws org.wso2.carbon.user.core.UserStoreException
isTenantActive in interface org.wso2.carbon.user.api.TenantManagerorg.wso2.carbon.user.core.UserStoreExceptionpublic void setBundleContext(org.osgi.framework.BundleContext bundleContext)
public void updateTenant(org.wso2.carbon.user.core.tenant.Tenant tenant)
throws org.wso2.carbon.user.core.UserStoreException
org.wso2.carbon.user.core.UserStoreExceptionpublic void initializeExistingPartitions()
Copyright © 2015 WSO2. All rights reserved.