@Entity public class ContentDescriber extends AbstractContent<ContentAttribute,ContentFacet>
AbstractContent.name
however it can have different copied for each of the following:
AbstractContent.status
AbstractContent.language
, AbstractContent.country
, AbstractContent.variant
AbstractContent.BIT_MASKS
Modifier and Type | Field and Description |
---|---|
protected Map<String,ContentAttribute> |
attributes
The difference between properties and facets is that properties are loaded with the Content Object, while facets are lazy and
represent larger content usually.
|
bitmask, country, created, displayName, facets, id, language, launchDate, metaData, name, pagePath, status, statusDate, updated, variant
ATTRIB_HIERARCHY_STARTS_LIKE, ATTRIB_PRODUCT_PARENT, parentId
ROOT
Constructor and Description |
---|
ContentDescriber() |
ContentDescriber(String name) |
Modifier and Type | Method and Description |
---|---|
ContentDescriber |
clone() |
Collection<String> |
getAttributeNames()
Page may have additional attributes with it; like meta data, Get the value for the param.
Note this is NOT to be confused with an HTTP Requests parameters or Attributes. |
Map<String,ContentAttribute> |
getAttributes() |
String |
getAttributeValue(String name)
Page may have additional attributes with it; like meta data, Get the value for the param.
Note this is NOT to be confused with an HTTP Requests parameters or Attributes. |
ContentDescriber |
setAttribute(String name,
String value)
This method encapsulates the responsibility of ensuring the @link Attribute} can be set into the entity,
including null checks, initializations, any relations between
Attributes and Attribute . |
void |
setAttributes(Map<String,ContentAttribute> attributes) |
getBitmask, getCountry, getCreated, getDisplayName, getFacets, getFlowStatus, getId, getLanguage, getLaunchDate, getLocale, getMetaData, getName, getPagePath, getRegion, getStatus, getStatusDate, getUpdated, getVariant, isBitOn, safeDisplayName, setBitmask, setCreated, setDisplayName, setFacets, setId, setLaunchDate, setLocale, setMetaData, setName, setPagePath, setStatus, setStatusDate, setUpdated
equals, getHierarchy, getParentId, hashCode, setHierarchy, setParentId, toString
protected Map<String,ContentAttribute> attributes
public ContentDescriber()
public ContentDescriber(String name)
public Map<String,ContentAttribute> getAttributes()
public void setAttributes(Map<String,ContentAttribute> attributes)
public ContentDescriber setAttribute(String name, String value)
Attributes
Attributes
and Attribute
.name
- as Stringvalue
- as public String getAttributeValue(String name)
PageIdentifier
AbstractContentAttribute.ATTRIBUTE_TEMPLATE
name
- of the Attributepublic Collection<String> getAttributeNames()
PageIdentifier
public ContentDescriber clone() throws CloneNotSupportedException
clone
in interface Content<ContentAttribute,ContentFacet>
clone
in class AbstractContent<ContentAttribute,ContentFacet>
CloneNotSupportedException
Copyright © 2018. All rights reserved.