org.pentaho.platform.engine.services.connection.datasource.dbcp.tenantaware
Class TenantAwareLoginParsingDatasourceService
java.lang.Object
org.pentaho.platform.engine.services.connection.datasource.dbcp.BaseDatasourceService
org.pentaho.platform.engine.services.connection.datasource.dbcp.PooledOrJndiDatasourceService
org.pentaho.platform.engine.services.connection.datasource.dbcp.tenantaware.AbstractTenantAwareDatasourceService
org.pentaho.platform.engine.services.connection.datasource.dbcp.tenantaware.TenantAwareLoginParsingDatasourceService
- All Implemented Interfaces:
- IDatasourceService, org.springframework.beans.factory.InitializingBean
public class TenantAwareLoginParsingDatasourceService
- extends AbstractTenantAwareDatasourceService
- implements org.springframework.beans.factory.InitializingBean
This reference implementation parses the users' login name to
derive the Tenant ID. This can come in two forms:
1- Tenant First - for example, tenantid\mbatchelor (an LDAP-like ID)
2- Tenant Last - for example: mbatchelor@pentaho.com (an e-mail like ID)
- Author:
- mbatchelor
Methods inherited from interface org.springframework.beans.factory.InitializingBean |
afterPropertiesSet |
TenantAwareLoginParsingDatasourceService
public TenantAwareLoginParsingDatasourceService()
getTenantId
public String getTenantId()
- Description copied from class:
AbstractTenantAwareDatasourceService
- This abstract method must be implemented by subclasses - this should return a
string containing the tenant's ID.
- Specified by:
getTenantId
in class AbstractTenantAwareDatasourceService
- Returns:
- String ID of the Tenant
setTenantOnLeft
public void setTenantOnLeft(boolean value)
- Getters and Setters
isTenantOnLeft
public boolean isTenantOnLeft()
setTenantSeparator
public void setTenantSeparator(String value)
getTenantSeparator
public String getTenantSeparator()