public abstract class TenantContext
extends java.lang.Object
Constructor and Description |
---|
TenantContext() |
Modifier and Type | Method and Description |
---|---|
abstract java.lang.String |
getCurrentPartitionName()
Gets the current partition name or "DOMAIN" if it's not available.
|
abstract Tenant |
getCurrentTenant()
Gets current platform tenant.
|
abstract java.util.UUID |
getServiceUUID()
Gets the service UUID of current request.
|
abstract java.lang.String |
getTopLevelDir()
Gets top level dir of tenant mapping.
|
abstract boolean |
isGlobal()
Tests global tenancy.
|
public abstract Tenant getCurrentTenant()
On WebLogic the tenant is null if tenants are not mapped in lifecycle-config.xml.
public abstract java.lang.String getTopLevelDir()
public abstract java.lang.String getCurrentPartitionName()
java.lang.IllegalStateException
- on WebLogic in case of failurepublic abstract java.util.UUID getServiceUUID()
public abstract boolean isGlobal()
true
if tenant is global, else false