Package io.dialob.security.tenant
Interface CurrentTenant
-
- All Known Implementing Classes:
FixedCurrentTenant,TenantContextHolderCurrentTenant
public interface CurrentTenant
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Tenantget()default StringgetId()booleanisInTenantScope()
-
-
-
Method Detail
-
get
Tenant get()
- Returns:
- current scope tenant
- Throws:
NoTenantInScopeException- when there is not tenant in scope
-
getId
default String getId()
-
isInTenantScope
boolean isInTenantScope()
-
-