public class DefaultTenantAccess extends java.lang.Object implements ITenantAccess
ITenantAccess.
associateTenantWithCurrentSession(String). Internally
this tenant information is stored in the http session.
associateTenantWithCurrentThread(String).TENANT_UNDEFINED| Constructor and Description |
|---|
DefaultTenantAccess() |
| Modifier and Type | Method and Description |
|---|---|
static void |
associateTenantWithCurrentSession(HttpServletRequest request,
java.lang.String tenant)
Passes the tenant into the current session.
|
static void |
associateTenantWithCurrentSession(java.lang.String tenant)
Passes the tenant into the current session.
|
static void |
associateTenantWithCurrentThread(java.lang.String tenant) |
static void |
clearTenantWithCurrentSession() |
static void |
clearTenantWithCurrentThread() |
java.lang.String |
getCurrentTenant()
Get tenant that is associated with the current context.
|
java.lang.String |
getCurrentTenant(FacesContext context) |
public java.lang.String getCurrentTenant(FacesContext context)
getCurrentTenant in interface ITenantAccesspublic java.lang.String getCurrentTenant()
ITenantAccessgetCurrentTenant in interface ITenantAccesspublic static void associateTenantWithCurrentSession(java.lang.String tenant)
#associateTenantWithSession(HttpServletRequest, String).public static void associateTenantWithCurrentSession(HttpServletRequest request,
java.lang.String tenant)
public static void clearTenantWithCurrentSession()
public static void associateTenantWithCurrentThread(java.lang.String tenant)
public static void clearTenantWithCurrentThread()
Copyright © CaptainCasa Gmbh. All Rights Reserved.