public interface Category extends BaseResource, DomainResource<Category>
Modifier and Type | Method and Description |
---|---|
static CategoryBuilder |
builder() |
static CategoryBuilder |
builder(Category template) |
@NotNull @Valid List<CategoryReference> |
getAncestors()
Contains the parent path towards the root category.
|
@Valid List<Asset> |
getAssets()
Can be used to store images, icons or movies related to this category.
|
@NotNull ZonedDateTime |
getCreatedAt() |
@Valid CreatedBy |
getCreatedBy()
Present on resources created after 1/02/2019 except for events not tracked.
|
@Valid CustomFields |
getCustom() |
@Valid LocalizedString |
getDescription() |
String |
getExternalId() |
@NotNull String |
getId()
The unique ID of the category.
|
String |
getKey()
User-specific unique identifier for the category.
|
@NotNull ZonedDateTime |
getLastModifiedAt() |
@Valid LastModifiedBy |
getLastModifiedBy()
Present on resources updated after 1/02/2019 except for events not tracked.
|
@Valid LocalizedString |
getMetaDescription() |
@Valid LocalizedString |
getMetaKeywords() |
@Valid LocalizedString |
getMetaTitle() |
@NotNull @Valid LocalizedString |
getName() |
@NotNull String |
getOrderHint()
An attribute as base for a custom category order in one level.
|
@Valid CategoryReference |
getParent()
A category that is the parent of this category in the category tree.
|
@NotNull @Valid LocalizedString |
getSlug()
human-readable identifiers usually used as deep-link URL to the related category.
|
@NotNull Long |
getVersion()
The current version of the category.
|
static Category |
of() |
static Category |
of(Category template) |
void |
setAncestors(CategoryReference... ancestors) |
void |
setAncestors(List<CategoryReference> ancestors) |
void |
setAssets(Asset... assets) |
void |
setAssets(List<Asset> assets) |
void |
setCreatedAt(ZonedDateTime createdAt) |
void |
setCreatedBy(CreatedBy createdBy) |
void |
setCustom(CustomFields custom) |
void |
setDescription(LocalizedString description) |
void |
setExternalId(String externalId) |
void |
setId(String id) |
void |
setKey(String key) |
void |
setLastModifiedAt(ZonedDateTime lastModifiedAt) |
void |
setLastModifiedBy(LastModifiedBy lastModifiedBy) |
void |
setMetaDescription(LocalizedString metaDescription) |
void |
setMetaKeywords(LocalizedString metaKeywords) |
void |
setMetaTitle(LocalizedString metaTitle) |
void |
setName(LocalizedString name) |
void |
setOrderHint(String orderHint) |
void |
setParent(CategoryReference parent) |
void |
setSlug(LocalizedString slug) |
void |
setVersion(Long version) |
default <T> T |
withCategory(Function<Category,T> helper) |
withBaseResource
get
@NotNull @NotNull String getId()
The unique ID of the category.
getId
in interface BaseResource
getId
in interface DomainResource<Category>
@NotNull @NotNull Long getVersion()
The current version of the category.
getVersion
in interface BaseResource
getVersion
in interface DomainResource<Category>
@NotNull @NotNull ZonedDateTime getCreatedAt()
getCreatedAt
in interface BaseResource
@NotNull @NotNull ZonedDateTime getLastModifiedAt()
getLastModifiedAt
in interface BaseResource
@Valid @Valid LastModifiedBy getLastModifiedBy()
Present on resources updated after 1/02/2019 except for events not tracked.
@Valid @Valid CreatedBy getCreatedBy()
Present on resources created after 1/02/2019 except for events not tracked.
@NotNull @Valid @NotNull @Valid LocalizedString getName()
@NotNull @Valid @NotNull @Valid LocalizedString getSlug()
human-readable identifiers usually used as deep-link URL to the related category. Each slug is unique across a project, but a category can have the same slug for different languages.
@Valid @Valid LocalizedString getDescription()
@NotNull @Valid @NotNull @Valid List<CategoryReference> getAncestors()
Contains the parent path towards the root category.
@Valid @Valid CategoryReference getParent()
A category that is the parent of this category in the category tree.
@NotNull @NotNull String getOrderHint()
An attribute as base for a custom category order in one level.
String getExternalId()
@Valid @Valid LocalizedString getMetaTitle()
@Valid @Valid LocalizedString getMetaDescription()
@Valid @Valid LocalizedString getMetaKeywords()
@Valid @Valid CustomFields getCustom()
@Valid @Valid List<Asset> getAssets()
Can be used to store images, icons or movies related to this category.
String getKey()
User-specific unique identifier for the category.
void setId(String id)
setId
in interface BaseResource
void setVersion(Long version)
setVersion
in interface BaseResource
void setCreatedAt(ZonedDateTime createdAt)
setCreatedAt
in interface BaseResource
void setLastModifiedAt(ZonedDateTime lastModifiedAt)
setLastModifiedAt
in interface BaseResource
void setLastModifiedBy(LastModifiedBy lastModifiedBy)
void setCreatedBy(CreatedBy createdBy)
void setName(LocalizedString name)
void setSlug(LocalizedString slug)
void setDescription(LocalizedString description)
void setAncestors(CategoryReference... ancestors)
void setAncestors(List<CategoryReference> ancestors)
void setParent(CategoryReference parent)
void setOrderHint(String orderHint)
void setExternalId(String externalId)
void setMetaTitle(LocalizedString metaTitle)
void setMetaDescription(LocalizedString metaDescription)
void setMetaKeywords(LocalizedString metaKeywords)
void setCustom(CustomFields custom)
void setAssets(Asset... assets)
void setKey(String key)
static Category of()
static CategoryBuilder builder()
static CategoryBuilder builder(Category template)