public interface Channel extends Resource<Channel>, WithKey, Custom
A Customer can have custom fields.
| Modifier and Type | Method and Description |
|---|---|
Address |
getAddress()
The address of a channel.
|
CustomFields |
getCustom() |
LocalizedString |
getDescription()
Description of this channel.
|
GeoJSON |
getGeoLocation()
Returns the geo location of this channel.
|
String |
getKey()
Any arbitrary string key that unique identifies this channel within the project.
|
LocalizedString |
getName()
Name of this channel.
|
ReviewRatingStatistics |
getReviewRatingStatistics()
The
Review ratings of this channel. |
Set<ChannelRole> |
getRoles()
The roles of this channel.
|
static Reference<Channel> |
referenceOfId(String id)
Creates a reference for one item of this class by a known ID.
|
static String |
referenceTypeId()
A type hint for references which resource type is linked in a reference.
|
static String |
resourceTypeId()
An identifier for this resource which supports
CustomFields. |
default Reference<Channel> |
toReference()
Creates a reference to this resource, the reference may not be filled.
|
static com.fasterxml.jackson.core.type.TypeReference<Channel> |
typeReference()
Creates a container which contains the full Java type information to deserialize this class from JSON.
|
getCreatedAt, getId, getLastModifiedAt, getVersionhasSameIdAs, toResourceIdentifierString getKey()
@Nonnull Set<ChannelRole> getRoles()
SetRoles,
AddRoles,
RemoveRoles@Nullable LocalizedString getName()
ChangeName@Nullable LocalizedString getDescription()
ChangeDescription@Nullable ReviewRatingStatistics getReviewRatingStatistics()
Review ratings of this channel.Review,
ReviewDraft.getTarget()default Reference<Channel> toReference()
ReferenceabletoReference in interface Referenceable<Channel>toReference in interface Resource<Channel>static String referenceTypeId()
Reference.getTypeId()static com.fasterxml.jackson.core.type.TypeReference<Channel> typeReference()
static Reference<Channel> referenceOfId(String id)
An example for categories but this applies for other resources, too:
final String categoryIdFromFormOrSession = "84ac4271-0fec-49d0-9fee-55586c565c58"; final Reference<Category> categoryReference = Category.referenceOfId(categoryIdFromFormOrSession); assertThat(categoryReference.getId()).isEqualTo(categoryIdFromFormOrSession);See the test code.
If you already have a resource object, then use toReference() instead:
final Category category = getCategory1(); final Reference<Category> categoryReference = category.toReference(); assertThat(category.getId()).isEqualTo(categoryReference.getId());See the test code.
id - the ID of the resource which should be referenced.static String resourceTypeId()
CustomFields.TypeDraft.getResourceTypeIds(),
Custom@Nullable CustomFields getCustom()
@Nullable Address getAddress()
SetAddress