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 TenantInfo
getTenantInfo()
static TenantInfo
getTenantInfo(boolean onlyVisible)
static Map<String,String>
getTenants()
static Map<String,String>
getTenants(boolean onlyVisible)
String
resolveCurrentTenantIdentifier()
static void
setCurrentTenant(String tenantId, String tenantHost)
boolean
validateExistingCurrentSessions()
-
-
-
Method Detail
-
currentTenantIdentifier
public static String currentTenantIdentifier()
-
currentTenantHost
public static String currentTenantHost()
-
getTenantInfo
public static TenantInfo getTenantInfo()
-
getTenantInfo
public static TenantInfo getTenantInfo(boolean onlyVisible)
-
resolveCurrentTenantIdentifier
public String resolveCurrentTenantIdentifier()
- Specified by:
resolveCurrentTenantIdentifier
in interfaceCurrentTenantIdentifierResolver
-
validateExistingCurrentSessions
public boolean validateExistingCurrentSessions()
- Specified by:
validateExistingCurrentSessions
in interfaceCurrentTenantIdentifierResolver
-
-