Package com.axelor.db.tenants
Class TenantInfo
- java.lang.Object
-
- com.axelor.db.tenants.TenantInfo
-
public class TenantInfo extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetHostTenant()Gets the host-resolved tenant ID, if applicable.Map<String,String>getTenants()Gets the map of tenant IDs to tenant names that are available.static TenantInfomultiple(Map<String,String> tenants)static TenantInfosingle(String tenant)
-
-
-
Method Detail
-
single
public static TenantInfo single(String tenant)
-
multiple
public static TenantInfo multiple(Map<String,String> tenants)
-
getHostTenant
@Nullable public String getHostTenant()
Gets the host-resolved tenant ID, if applicable.- Returns:
- tenant ID or null
-
-