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

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

public class RestIdentityImpl
extends ModelImpl
implements RestIdentity

Implementation of RestIdentity.

Since:
May 25, 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.RestIdentity
RestIdentity.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
RestIdentityImpl()
          Constructor without any param.
RestIdentityImpl(String id, String providerId, String remoteId, RestProfile restProfile)
          Constructor.
 
Method Summary
 String getId()
          Gets the identity id.
 RestProfile getProfile()
          Gets the profile associated with this identity.
 String getProviderId()
          Gets identity provider id.
 String getRemoteId()
          Gets the remote identity id.
 void setId(String id)
          Sets the identity id.
 void setProfile(RestProfile newRestProfile)
          Sets the profile associated with this identity.
 void setProviderId(String providerId)
          Sets identity provider id.
 void setRemoteId(String remoteId)
          Sets the remote 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

RestIdentityImpl

public RestIdentityImpl()
Constructor without any param.


RestIdentityImpl

public RestIdentityImpl(String id,
                        String providerId,
                        String remoteId,
                        RestProfile restProfile)
Constructor.

Parameters:
id - the identity id
providerId - the identity provider id
remoteId - the remote id
Method Detail

getId

public String getId()
Gets the identity id.

Specified by:
getId in interface RestIdentity
Returns:
the identity id

setId

public void setId(String id)
Sets the identity id.

Specified by:
setId in interface RestIdentity
Parameters:
id - the identity id

getProviderId

public String getProviderId()
Gets identity provider id.

Specified by:
getProviderId in interface RestIdentity
Returns:
the provider id

setProviderId

public void setProviderId(String providerId)
Sets identity provider id.

Specified by:
setProviderId in interface RestIdentity
Parameters:
providerId - the provider id

getRemoteId

public String getRemoteId()
Gets the remote identity id.

Specified by:
getRemoteId in interface RestIdentity
Returns:
the remote id

setRemoteId

public void setRemoteId(String remoteId)
Sets the remote identity id.

Specified by:
setRemoteId in interface RestIdentity
Parameters:
remoteId - the remote id

getProfile

public RestProfile getProfile()
Gets the profile associated with this identity.

Specified by:
getProfile in interface RestIdentity
Returns:
the associated profile.

setProfile

public void setProfile(RestProfile newRestProfile)
Sets the profile associated with this identity.

Specified by:
setProfile in interface RestIdentity
Parameters:
newRestProfile - the associated profile.


Copyright © 2011 eXo Platform. All Rights Reserved.