Package io.dialob.security.tenant
Class FixedCurrentTenant
- java.lang.Object
-
- io.dialob.security.tenant.FixedCurrentTenant
-
- All Implemented Interfaces:
CurrentTenant
public class FixedCurrentTenant extends Object implements CurrentTenant
-
-
Constructor Summary
Constructors Constructor Description FixedCurrentTenant(Tenant tenant)FixedCurrentTenant(String tenantId)FixedCurrentTenant(String tenantId, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tenantget()booleanisInTenantScope()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.dialob.security.tenant.CurrentTenant
getId
-
-
-
-
Method Detail
-
get
public Tenant get()
- Specified by:
getin interfaceCurrentTenant- Returns:
- current scope tenant
-
isInTenantScope
public boolean isInTenantScope()
- Specified by:
isInTenantScopein interfaceCurrentTenant
-
-