public final class TenantId extends BaseId
Modifier and Type | Field and Description |
---|---|
static TenantId |
UNDEFINED
A type-safe and null-safe undefined tenant id.
|
UNDEFINED_VALUE
Modifier and Type | Method and Description |
---|---|
static TenantId |
from(Id id)
Returns a type-safe tenant id for the specified id or null if the given id is null.
|
static TenantId |
from(Identifiable<?> identifiable)
Returns a type-safe tenant id derived from the id of the specified identifiable or null if the id of the identifiable is null.
|
static TenantId |
get(String value)
Returns a type-safe tenant id for the specified value.
|
static TenantId |
nullSafeGet(String value)
Returns a type-safe tenant id for the specified value or null if the given value is null.
|
TenantId |
withValue(String value)
Returns a new tenant-id with the given value.
|
public static final TenantId UNDEFINED
public static TenantId get(String value)
value
- the value that represents the tenant idpublic static TenantId nullSafeGet(String value)
value
- the value that represents the tenant id or nullpublic static TenantId from(Id id)
id
- the id from which to derive the tenant idpublic static TenantId from(Identifiable<?> identifiable)
identifiable
- the identifiable whose id is taken to derive the tenant idCopyright © 2010 - 2018 edorasware ag. All Rights Reserved.