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

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

public interface RestLike
extends Model

The like item of an activity.

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

Nested Class Summary
static class RestLike.Field
          The fields that represent the RestLike object in json form.
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Method Summary
 RestActivity getActivity()
          Gets the activity associated with this like.
 String getActivityId()
          Gets the activity id.
 RestIdentity getIdentity()
          Gets the identity associated with this like.
 String getIdentityId()
          Gets the identity id.
 void setActivityId(String activityId)
          Sets the activity id.
 void setIdentityId(String identityId)
          Sets the identity id.
 
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

getActivityId

String getActivityId()
Gets the activity id.

Returns:
the activity id

setActivityId

void setActivityId(String activityId)
Sets the activity id.

Parameters:
activityId - the activity id

getIdentityId

String getIdentityId()
Gets the identity id.

Returns:
the identity id

setIdentityId

void setIdentityId(String identityId)
Sets the identity id.

Parameters:
identityId - the identity id

getActivity

RestActivity getActivity()
Gets the activity associated with this like.

This method must be lazy loading.

Returns:
the activity

getIdentity

RestIdentity getIdentity()
Gets the identity associated with this like.

This method must be lazy loading.

Returns:
the identity


Copyright © 2011 eXo Platform. All Rights Reserved.