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()booleanGives the account kind stored on this identity's profile, for display purposes.getId()Gets the id.longGets 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 interface CacheEntry
getCacheTime, setCacheTime
-
Constructor Details
-
Identity
public Identity() -
Identity
-
Identity
-
Identity
-
-
Method Details
-
getId
-
getIdentityId
public long getIdentityId() -
setId
-
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
-
setProfile
-
setProfileLoader
Sets the profile loader.- Parameters:
profileLoader- the new profile loader
-
getRemoteId
-
setRemoteId
Sets the remote id.- Parameters:
remoteId- the new remote id
-
getProviderId
-
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() -
getAccountKind
Gives the account kind stored on this identity's profile, for display purposes. The kind mirrors a group membership; a permission or login decision reads that membership instead.- Returns:
- the profile property
Profile.ACCOUNT_KIND, null when the identity has no profile or the profile no kind
-
setProviderId
Sets the provider id.- Parameters:
providerId- the new provider id
-
toString
-
getGlobalId
- Returns:
- global id of identity
-
hashCode
-
equals
-
clone
-