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
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionfindTenantProperty(Class<?> entityClass) Returns MetaProperty of Tenant Id for some classvoidSet the Tenant Id for some entity 
- 
Constructor Details
- 
TenantEntityOperationImpl
 
 - 
 - 
Method Details
- 
findTenantProperty
Returns MetaProperty of Tenant Id for some class- Specified by:
 findTenantPropertyin interfaceTenantEntityOperation- Parameters:
 entityClass- entity class- Returns:
 - MetaProperty instance. Return if not found.
 
 - 
setTenant
Set the Tenant Id for some entity- Specified by:
 setTenantin interfaceTenantEntityOperation- Parameters:
 entity- instancetenantId- tenant id
 
 -