Class Identity
- java.lang.Object
-
- org.exoplatform.social.core.identity.model.Identity
-
- All Implemented Interfaces:
Cloneable,CacheEntry
- Direct Known Subclasses:
IdentityWithRelationship
public class Identity extends Object implements CacheEntry, Cloneable
Represents persons or objects relevant to the social system.
-
-
Constructor Summary
Constructors Constructor Description Identity()Identity(String id)Instantiates a new identity.Identity(String providerId, String remoteId)Instantiates a new identityIdentity(String id, String remoteId, String providerId, boolean isDeleted, boolean isEnable, Profile profile, ProfileLoader profileLoader, GlobalId globalId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Identityclone()booleanequals(Object obj)GlobalIdgetGlobalId()StringgetId()Gets the id.ProfilegetProfile()Gets the profile.StringgetProviderId()Gets the provider id.StringgetRemoteId()Gets the remote id.inthashCode()booleanisDeleted()Checks whether this corresponding identity exists or not by the remote identity provider.booleanisEnable()booleanisSpace()booleanisUser()voidsetDeleted(boolean isDeleted)Sets the isDeleted property to indicate if this identity is deleted or not by the remote identity provider.voidsetEnable(boolean isEnable)voidsetId(String id)Sets the id.voidsetProfile(Profile profile)Sets the profile.voidsetProfileLoader(ProfileLoader profileLoader)Sets the profile loader.voidsetProviderId(String providerId)Sets the provider id.voidsetRemoteId(String remoteId)Sets the remote id.StringtoString()-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.exoplatform.social.core.CacheEntry
getCacheTime, setCacheTime
-
-
-
-
Constructor Detail
-
Identity
public Identity()
-
Identity
public Identity(String id)
Instantiates a new identity.- Parameters:
id- the id
-
Identity
public Identity(String providerId, String remoteId)
Instantiates a new identity- Parameters:
providerId- the provider id of identityremoteId- the remote id of identity
-
-
Method Detail
-
getId
public String getId()
Gets the id.- Returns:
- the id
-
setId
public void setId(String id)
Sets the id.- Parameters:
id- the new id
-
isDeleted
public boolean isDeleted()
Checks whether this corresponding identity exists or not by the remote identity provider.- Returns:
- true if this corresponding identity is indicated as deleted by the remote identity provider.
- Since:
- 1.2.0-GA
-
setDeleted
public void setDeleted(boolean isDeleted)
Sets the isDeleted property to indicate if this identity is deleted or not by the remote identity provider.- Parameters:
isDeleted- new value to set this identity is deleted or not.- Since:
- 1.2.0-GA
-
isEnable
public boolean isEnable()
- Returns:
- the isEnable
-
setEnable
public void setEnable(boolean isEnable)
- Parameters:
isEnable- the isEnable to set
-
getProfile
public Profile getProfile()
Gets the profile.- Returns:
- the profile
-
setProfile
public void setProfile(Profile profile)
Sets the profile.- Parameters:
profile- the new profile
-
setProfileLoader
public void setProfileLoader(ProfileLoader profileLoader)
Sets the profile loader.- Parameters:
profileLoader- the new profile loader
-
getRemoteId
public String getRemoteId()
Gets the remote id.- Returns:
- the remote id
-
setRemoteId
public void setRemoteId(String remoteId)
Sets the remote id.- Parameters:
remoteId- the new remote id
-
getProviderId
public String getProviderId()
Gets the provider id.- Returns:
- the provider id
-
isSpace
public boolean isSpace()
- Returns:
- true if the providerId is about a space
-
isUser
public boolean isUser()
- Returns:
- true if the providerId is about a user
-
setProviderId
public void setProviderId(String providerId)
Sets the provider id.- Parameters:
providerId- the new provider id
-
toString
public String toString()
-
getGlobalId
public GlobalId getGlobalId()
- Returns:
- global id of identity
-
-