@Entity public class Comment extends AbstractContent<CommentAttribute,CommentFacet>
Modifier and Type | Class and Description |
---|---|
static class |
Comment.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 |
---|---|
Comment |
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,CommentAttribute> |
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 |
getText() |
String |
getTopic()
Topic the Comment belongs to / Artifact the comment was made on
|
String |
getTopicType()
The topic can be a Article, an Order etc.
Ideally, this is the entity type (class name) or a category to identify the topic |
User |
getUser() |
String |
getUserId()
Deprecated.
Use
getUser() instead |
Comment |
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,CommentAttribute> attributes) |
void |
setText(String text) |
void |
setTopic(String topic)
Topic the Comment belongs to / Artifact the comment was made on
|
void |
setTopicType(String topicType)
The topic can be a Article, an Order etc.
Ideally, this is the entity type (class name) or a category to identify the topic |
void |
setUser(User user) |
void |
setUserId(String userId)
Deprecated.
User
setUser(User) instead |
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 Comment()
public Comment(String name)
public Map<String,CommentAttribute> getAttributes()
public void setAttributes(Map<String,CommentAttribute> attributes)
public Comment 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 Comment clone() throws CloneNotSupportedException
clone
in interface Content<CommentAttribute,CommentFacet>
clone
in class AbstractContent<CommentAttribute,CommentFacet>
CloneNotSupportedException
public String getTopic()
public void setTopic(String topic)
public String getTopicType()
public void setTopicType(String topicType)
public String getText()
public void setText(String text)
public User getUser()
public void setUser(User user)
public String getUserId()
getUser()
insteadpublic void setUserId(String userId)
setUser(User)
insteadCopyright © 2018. All rights reserved.