org.wso2.carbon.ldap.server.tenant
Class LDAPTenantManagerService
java.lang.Object
org.wso2.carbon.ldap.server.tenant.LDAPTenantManagerService
- All Implemented Interfaces:
- org.wso2.carbon.user.core.tenant.LDAPTenantManager
public class LDAPTenantManagerService
- extends Object
- implements org.wso2.carbon.user.core.tenant.LDAPTenantManager
|
Method Summary |
void |
addPartitionToTenant(org.wso2.carbon.user.core.tenant.Tenant tenant)
When initializing HybridLDAPTenantManager, the existing partitions for tenants are
initialized. |
int |
addTenant(org.wso2.carbon.user.core.tenant.Tenant tenant)
Add a new partition for a tenant when a new tenant is created. |
void |
deleteTenant(int i)
|
void |
updateTenant(org.wso2.carbon.user.core.tenant.Tenant tenant)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LDAPTenantManagerService
public LDAPTenantManagerService(PartitionManager partitionManager)
LDAPTenantManagerService
public LDAPTenantManagerService(PartitionManager partitionManager,
LDAPConfigurationBuilder ldapConfiguration)
- This constructor is used to pass both partition manager and tenant manager references at the
creation of LDAPTenantManagerService.
- Parameters:
partitionManager - ldapConfiguration -
addTenant
public int addTenant(org.wso2.carbon.user.core.tenant.Tenant tenant)
throws org.wso2.carbon.user.core.UserStoreException
- Add a new partition for a tenant when a new tenant is created.
- Specified by:
addTenant in interface org.wso2.carbon.user.core.tenant.LDAPTenantManager
- Parameters:
tenant - object
- Returns:
- tenant id
- Throws:
org.wso2.carbon.user.core.UserStoreException
updateTenant
public void updateTenant(org.wso2.carbon.user.core.tenant.Tenant tenant)
throws org.wso2.carbon.user.core.UserStoreException
- Specified by:
updateTenant in interface org.wso2.carbon.user.core.tenant.LDAPTenantManager
- Throws:
org.wso2.carbon.user.core.UserStoreException
deleteTenant
public void deleteTenant(int i)
throws org.wso2.carbon.user.core.UserStoreException
- Specified by:
deleteTenant in interface org.wso2.carbon.user.core.tenant.LDAPTenantManager
- Throws:
org.wso2.carbon.user.core.UserStoreException
addPartitionToTenant
public void addPartitionToTenant(org.wso2.carbon.user.core.tenant.Tenant tenant)
throws org.wso2.carbon.user.core.UserStoreException
- When initializing HybridLDAPTenantManager, the existing partitions for tenants are
initialized. This method adds existing partition to each tenant.
- Specified by:
addPartitionToTenant in interface org.wso2.carbon.user.core.tenant.LDAPTenantManager
- Parameters:
tenant - object
- Throws:
org.wso2.carbon.user.core.UserStoreException
Copyright © 2015 WSO2. All rights reserved.