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

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.RestProfileImpl
All Implemented Interfaces:
Serializable, Cloneable, Map, Model, RestProfile, org.json.simple.JSONAware, org.json.simple.JSONStreamAware

public class RestProfileImpl
extends ModelImpl
implements RestProfile

Implementation of RestProfile.

Since:
Jun 29, 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.RestProfile
RestProfile.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
RestProfileImpl()
          Default constructor.
RestProfileImpl(String identityId, String fullName, String avatarUrl)
          Constructor to set values.
 
Method Summary
 String getAvatarUrl()
          Gets the avatar url of the associated identity.
 String getFullName()
          Gets the full name of the associated identity.
 String getIdentityId()
          Gets the identity id associated with this profile.
 void setAvatarUrl(String avatarUrl)
          Sets the avatar url of the associated identity.
 void setFullName(String fullName)
          Sets the full name of the associated identity.
 void setIdentityId(String identityId)
          Sets the identity id associated with this profile.
 
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

RestProfileImpl

public RestProfileImpl()
Default constructor.


RestProfileImpl

public RestProfileImpl(String identityId,
                       String fullName,
                       String avatarUrl)
Constructor to set values.

Parameters:
identityId - the identity id
fullName - the full name
avatarUrl - the avatar url
Method Detail

getIdentityId

public String getIdentityId()
Gets the identity id associated with this profile.

Specified by:
getIdentityId in interface RestProfile
Returns:
the identity id

setIdentityId

public void setIdentityId(String identityId)
Sets the identity id associated with this profile.

Specified by:
setIdentityId in interface RestProfile
Parameters:
identityId - the identity id

getFullName

public String getFullName()
Gets the full name of the associated identity.

Specified by:
getFullName in interface RestProfile
Returns:
the full name

setFullName

public void setFullName(String fullName)
Sets the full name of the associated identity.

Specified by:
setFullName in interface RestProfile
Parameters:
fullName - the full name

getAvatarUrl

public String getAvatarUrl()
Gets the avatar url of the associated identity.

Specified by:
getAvatarUrl in interface RestProfile
Returns:
the avatar url

setAvatarUrl

public void setAvatarUrl(String avatarUrl)
Sets the avatar url of the associated identity.

Specified by:
setAvatarUrl in interface RestProfile
Parameters:
avatarUrl - the avatar url


Copyright © 2011-2012 eXo Platform. All Rights Reserved.