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