org.exoplatform.social.client.core.model
Class RestLikeImpl

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap
          extended by org.json.simple.JSONObject
              extended by org.exoplatform.social.client.core.model.ModelImpl
                  extended by 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 Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
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>
 
Field Summary
 
Fields inherited from class org.exoplatform.social.client.core.model.ModelImpl
propertyChanges
 
Constructor Summary
RestLikeImpl()
          Constructor without param.
RestLikeImpl(String activityId, String identityId)
          Constructor.
 
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 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 class java.util.AbstractMap
equals, hashCode
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
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
 

Constructor Detail

RestLikeImpl

public RestLikeImpl()
Constructor without param.


RestLikeImpl

public RestLikeImpl(String activityId,
                    String identityId)
Constructor.

Parameters:
activityId - the activity id
identityId - the identity id
Method Detail

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 eXo Platform. All Rights Reserved.