public class RestComment extends Model
| Modifier and Type | Class and Description |
|---|---|
static class |
RestComment.Field
The fields that represent the RestComment object in json form.
|
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>propertyChanges| Constructor and Description |
|---|
RestComment()
Constructor without any params.
|
RestComment(String id,
String identityId,
String activityId,
Long postedTime,
String createdAt)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
RestActivity |
getActivity()
Gets the activity is associated with this comment.
|
String |
getActivityId()
Gets the activity id which is associated with this comment.
|
String |
getCreatedAt()
Gets the created at of this comment as a time string value.
|
String |
getId()
Gets the comment id.
|
RestIdentity |
getIdentity()
Deprecated.
only use with v1-alpha1
|
String |
getIdentityId()
Deprecated.
only use with v1-alpha1
|
Long |
getPostedTime()
Gets the posted time of this comment as timestamp value.
|
RestIdentity |
getPosterIdentity()
Gets the identity who commented.
|
String |
getText()
Gets the comment content.
|
void |
setActivityId(String activityId)
Sets the activity which is associated with this comment.
|
void |
setCreatedAt(String createdAt)
Sets the created at of this comment as a time string value.
|
void |
setId(String id)
Sets the comment id.
|
void |
setIdentityId(String identityId)
Deprecated.
only use with v1-alpha1
|
void |
setPostedTime(Long postedTime)
Sets the posted time of this comment as timestamp value.
|
void |
setPosterIdentity(RestIdentity restIdentity)
Sets the identity who commented.
|
void |
setText(String content)
Sets the comment content.
|
addPropertyChangeListener, addToListField, findPropertyChangeListeners, getField, getFieldAsList, getFieldAsMap, getFieldAsString, getFieldNames, hasField, isFieldMultikeyed, isFieldMultivalued, removePropertyChangeListener, setFieldescape, toJSONString, toJSONString, toString, toString, writeJSONString, writeJSONStringclear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, valuesequals, hashCodefinalize, getClass, notify, notifyAll, wait, wait, waitpublic String getId()
public void setId(String id)
id - the comment idpublic String getIdentityId()
public void setIdentityId(String identityId)
identityId - the identity idpublic String getActivityId()
public void setActivityId(String activityId)
activityId - the activity idpublic String getText()
public void setText(String content)
content - the comment contentpublic Long getPostedTime()
public void setPostedTime(Long postedTime)
postedTime - the posted time of this comment.public String getCreatedAt()
public void setCreatedAt(String createdAt)
createdAt - the time string valuepublic RestActivity getActivity()
public RestIdentity getIdentity()
public RestIdentity getPosterIdentity()
public void setPosterIdentity(RestIdentity restIdentity)
restIdentity - Copyright © 2011–2015 eXo Platform SAS. All rights reserved.