Class Identity
java.lang.Object
org.exoplatform.social.core.identity.model.Identity
- All Implemented Interfaces:
Cloneable,CacheEntry
- Direct Known Subclasses:
IdentityWithRelationship
Represents persons or objects relevant to the social system.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleangetId()Gets the id.Gets the profile.Gets the provider id.Gets the remote id.inthashCode()booleanChecks whether this corresponding identity exists or not by the remote identity provider.booleanisEnable()booleanbooleanisSpace()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) voidSets 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.toString()Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.exoplatform.social.core.CacheEntry
getCacheTime, setCacheTime
-
Constructor Details
-
Identity
public Identity() -
Identity
Instantiates a new identity.- Parameters:
id- the id
-
Identity
Instantiates a new identity- Parameters:
providerId- the provider id of identityremoteId- the remote id of identity
-
Identity
-
-
Method Details
-
getId
Gets the id.- Returns:
- the id
-
setId
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
Gets the profile.- Returns:
- the profile
-
setProfile
Sets the profile.- Parameters:
profile- the new profile
-
setProfileLoader
Sets the profile loader.- Parameters:
profileLoader- the new profile loader
-
getRemoteId
Gets the remote id.- Returns:
- the remote id
-
setRemoteId
Sets the remote id.- Parameters:
remoteId- the new remote id
-
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
-
isExternal
public boolean isExternal() -
setProviderId
Sets the provider id.- Parameters:
providerId- the new provider id
-
toString
-
getGlobalId
- Returns:
- global id of identity
-
hashCode
public int hashCode() -
equals
-
clone
-