org.exoplatform.social.client.api.model
Interface RestComment

All Superinterfaces:
org.json.simple.JSONAware, org.json.simple.JSONStreamAware, Map, Model
All Known Implementing Classes:
RestCommentImpl

public interface RestComment
extends Model

The RestComment model.

Since:
May 19, 2011
Author:
hoatle (hoatlevan at gmail dot com)

Nested Class Summary
static class RestComment.Field
          The fields that represent the RestComment object in json form.
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Method Summary
 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()
          Gets the identity who commented.
 String getIdentityId()
          Gets identity id who posted this comment.
 Long getPostedTime()
          Gets the posted time of this comment as timestamp value.
 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 identidyId)
          Sets identity id who posted this comment.
 void setPostedTime(Long postedTime)
          Sets the posted time of this comment as timestamp value.
 void setText(String content)
          Sets the comment content.
 
Methods inherited from interface org.exoplatform.social.client.api.model.Model
addPropertyChangeListener, addToListField, findPropertyChangeListeners, getField, getFieldAsList, getFieldAsMap, getFieldAsString, getFieldNames, hasField, isFieldMultikeyed, isFieldMultivalued, removePropertyChangeListener, setField
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from interface org.json.simple.JSONAware
toJSONString
 
Methods inherited from interface org.json.simple.JSONStreamAware
writeJSONString
 

Method Detail

getId

String getId()
Gets the comment id.

Returns:
the comment id

setId

void setId(String id)
Sets the comment id.

Parameters:
id - the comment id

getIdentityId

String getIdentityId()
Gets identity id who posted this comment.

Returns:
the identity id

setIdentityId

void setIdentityId(String identidyId)
Sets identity id who posted this comment.

Parameters:
identidyId - the identity id

getActivityId

String getActivityId()
Gets the activity id which is associated with this comment.

Returns:
the activity id.

setActivityId

void setActivityId(String activityId)
Sets the activity which is associated with this comment.

Parameters:
activityId - the activity id

getText

String getText()
Gets the comment content.

Returns:
the comment content.

setText

void setText(String content)
Sets the comment content.

Parameters:
content - the comment content

getPostedTime

Long getPostedTime()
Gets the posted time of this comment as timestamp value.

Returns:
the posted time of this comment

setPostedTime

void setPostedTime(Long postedTime)
Sets the posted time of this comment as timestamp value.

Parameters:
postedTime - the posted time of this comment.

getCreatedAt

String getCreatedAt()
Gets the created at of this comment as a time string value.

Returns:
the time string value

setCreatedAt

void setCreatedAt(String createdAt)
Sets the created at of this comment as a time string value.

Parameters:
createdAt - the time string value

getActivity

RestActivity getActivity()
Gets the activity is associated with this comment. This must be lazy loading for better performance.

Returns:
the activity

getIdentity

RestIdentity getIdentity()
Gets the identity who commented. This must be lazy loading for better performance.

Returns:
the identity


Copyright © 2011 eXo Platform. All Rights Reserved.