@Entity public class Post extends AbstractContent<PostAttribute,PostFacet>
AbstractContent.BIT_MASKS
bitmask, country, created, displayName, facets, id, language, launchDate, metaData, name, pagePath, status, statusDate, updated, variant
ATTRIB_HIERARCHY_STARTS_LIKE, ATTRIB_PRODUCT_PARENT, parentId
ROOT
Modifier and Type | Method and Description |
---|---|
Post |
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,PostAttribute> |
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. |
String |
getEngagementSummary()
JSON Summary of comments statistics, and other engagement Data
Note: The Post data model will not maintain references to various related data like comments etc. |
Post |
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,PostAttribute> attributes) |
void |
setEngagementSummary(String engagementSummary)
JSON Summary of comments statistics, and other engagement Data
Note: The Post data model will not maintain references to various related data like comments etc. |
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
public Post()
public Post(String name)
public Map<String,PostAttribute> getAttributes()
public void setAttributes(Map<String,PostAttribute> attributes)
public Post 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 String getEngagementSummary()
public void setEngagementSummary(String engagementSummary)
public Post clone() throws CloneNotSupportedException
clone
in interface Content<PostAttribute,PostFacet>
clone
in class AbstractContent<PostAttribute,PostFacet>
CloneNotSupportedException
Copyright © 2018. All rights reserved.