Package io.jmix.multitenancy.core.impl
Class TenantEntityOperationImpl
java.lang.Object
io.jmix.multitenancy.core.impl.TenantEntityOperationImpl
- All Implemented Interfaces:
TenantEntityOperation
@Component("mten_TenantEntityOperation")
public class TenantEntityOperationImpl
extends Object
implements TenantEntityOperation
Helper for working with tenant entity.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfindTenantProperty
(Class<?> entityClass) Returns MetaProperty of Tenant Id for some classvoid
Set the Tenant Id for some entity
-
Constructor Details
-
TenantEntityOperationImpl
-
-
Method Details
-
findTenantProperty
Returns MetaProperty of Tenant Id for some class- Specified by:
findTenantProperty
in interfaceTenantEntityOperation
- Parameters:
entityClass
- entity class- Returns:
- MetaProperty instance. Return if not found.
-
setTenant
Set the Tenant Id for some entity- Specified by:
setTenant
in interfaceTenantEntityOperation
- Parameters:
entity
- instancetenantId
- tenant id
-