public interface TenantAware
| Modifier and Type | Method and Description | 
|---|---|
default void | 
assertSameTenant(Supplier<String> fieldLabel,
                TenantAware other)
Asserts that the given object has the same tenant as this object. 
 | 
String | 
getTenantAsString()  | 
void | 
setCurrentTenant()  | 
String getTenantAsString()
default void assertSameTenant(Supplier<String> fieldLabel, TenantAware other)
fieldLabel - the field in which the referenced object would be stored - used to generate an appropriate
                   error messageother - the object to checkvoid setCurrentTenant()
Copyright © 2018. All rights reserved.