Package com.axelor.db.tenants
Class TenantResolver
- java.lang.Object
-
- com.axelor.db.tenants.TenantResolver
-
- All Implemented Interfaces:
CurrentTenantIdentifierResolver
public class TenantResolver extends Object implements CurrentTenantIdentifierResolver
The tenant identifier resolver.
-
-
Constructor Summary
Constructors Constructor Description TenantResolver()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static String
currentTenantHost()
static String
currentTenantIdentifier()
static boolean
isCurrentTenantSession(javax.servlet.http.HttpSession session)
String
resolveCurrentTenantIdentifier()
static void
setCurrentTenant(String tenantId, String tenantHost)
boolean
validateExistingCurrentSessions()
-
-
-
Method Detail
-
currentTenantIdentifier
public static String currentTenantIdentifier()
-
currentTenantHost
public static String currentTenantHost()
-
isCurrentTenantSession
public static boolean isCurrentTenantSession(javax.servlet.http.HttpSession session)
-
resolveCurrentTenantIdentifier
public String resolveCurrentTenantIdentifier()
- Specified by:
resolveCurrentTenantIdentifier
in interfaceCurrentTenantIdentifierResolver
-
validateExistingCurrentSessions
public boolean validateExistingCurrentSessions()
- Specified by:
validateExistingCurrentSessions
in interfaceCurrentTenantIdentifierResolver
-
-