org.exoplatform.social.client.core.model
Class RestLikeImpl
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap
org.json.simple.JSONObject
org.exoplatform.social.client.core.model.ModelImpl
org.exoplatform.social.client.core.model.RestLikeImpl
- All Implemented Interfaces:
- Serializable, Cloneable, Map, Model, RestLike, org.json.simple.JSONAware, org.json.simple.JSONStreamAware
public class RestLikeImpl
- extends ModelImpl
- implements RestLike
Implementation of RestLike.
- Since:
- May 20, 2011
- Author:
- hoatle (hoatlevan at gmail dot com)
- See Also:
- Serialized Form
| Nested classes/interfaces inherited from interface org.exoplatform.social.client.api.model.RestLike |
RestLike.Field |
| Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
| Methods inherited from class org.exoplatform.social.client.core.model.ModelImpl |
addPropertyChangeListener, addToListField, findPropertyChangeListeners, getField, getFieldAsList, getFieldAsMap, getFieldAsString, getFieldNames, hasField, isFieldMultikeyed, isFieldMultivalued, removePropertyChangeListener, setField |
| Methods inherited from class org.json.simple.JSONObject |
escape, toJSONString, toJSONString, toString, toString, writeJSONString, writeJSONString |
| Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
| 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 |
RestLikeImpl
public RestLikeImpl()
- Constructor without param.
RestLikeImpl
public RestLikeImpl(String activityId,
String identityId)
- Constructor.
- Parameters:
activityId - the activity ididentityId - the identity id
getActivityId
public String getActivityId()
- Gets the activity id.
- Specified by:
getActivityId in interface RestLike
- Returns:
- the activity id
setActivityId
public void setActivityId(String activityId)
- Sets the activity id.
- Specified by:
setActivityId in interface RestLike
- Parameters:
activityId - the activity id
getIdentityId
public String getIdentityId()
- Gets the identity id.
- Specified by:
getIdentityId in interface RestLike
- Returns:
- the identity id
setIdentityId
public void setIdentityId(String identityId)
- Sets the identity id.
- Specified by:
setIdentityId in interface RestLike
- Parameters:
identityId - the identity id
getActivity
public RestActivity getActivity()
- Gets the activity associated with this like.
This method must be lazy loading.
- Specified by:
getActivity in interface RestLike
- Returns:
- the activity
getIdentity
public RestIdentity getIdentity()
- Gets the identity associated with this like.
This method must be lazy loading.
- Specified by:
getIdentity in interface RestLike
- Returns:
- the identity
Copyright © 2011-2012 eXo Platform. All Rights Reserved.