Class IdentityWithRelationship
- java.lang.Object
-
- org.exoplatform.social.core.identity.model.Identity
-
- org.exoplatform.social.core.identity.model.IdentityWithRelationship
-
- All Implemented Interfaces:
Cloneable,CacheEntry
public class IdentityWithRelationship extends Identity
DTO of identity of a person or a space with relationShip with current viewer user's identity.
-
-
Constructor Summary
Constructors Constructor Description IdentityWithRelationship(String id)IdentityWithRelationship(Identity identity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)GlobalIdgetGlobalId()StringgetId()Gets the id.ProfilegetProfile()Gets the profile.StringgetProviderId()Gets the provider id.RelationshipgetRelationship()StringgetRemoteId()Gets the remote id.inthashCode()booleanisDeleted()Checks whether this corresponding identity exists or not by the remote identity provider.booleanisEnable()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.voidsetRelationship(Relationship relationship)voidsetRemoteId(String remoteId)Sets the remote id.StringtoString()-
Methods inherited from class org.exoplatform.social.core.identity.model.Identity
clone, isSpace, isUser
-
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
-
-
-
-
Method Detail
-
getRelationship
public Relationship getRelationship()
-
setRelationship
public void setRelationship(Relationship relationship)
-
getGlobalId
public GlobalId getGlobalId()
- Overrides:
getGlobalIdin classIdentity- Returns:
- global id of identity
-
getProfile
public Profile getProfile()
Description copied from class:IdentityGets the profile.- Overrides:
getProfilein classIdentity- Returns:
- the profile
-
getRemoteId
public String getRemoteId()
Description copied from class:IdentityGets the remote id.- Overrides:
getRemoteIdin classIdentity- Returns:
- the remote id
-
getProviderId
public String getProviderId()
Description copied from class:IdentityGets the provider id.- Overrides:
getProviderIdin classIdentity- Returns:
- the provider id
-
isDeleted
public boolean isDeleted()
Description copied from class:IdentityChecks whether this corresponding identity exists or not by the remote identity provider.
-
setDeleted
public void setDeleted(boolean isDeleted)
Description copied from class:IdentitySets the isDeleted property to indicate if this identity is deleted or not by the remote identity provider.- Overrides:
setDeletedin classIdentity- Parameters:
isDeleted- new value to set this identity is deleted or not.
-
setEnable
public void setEnable(boolean isEnable)
-
setProfile
public void setProfile(Profile profile)
Description copied from class:IdentitySets the profile.- Overrides:
setProfilein classIdentity- Parameters:
profile- the new profile
-
setProfileLoader
public void setProfileLoader(ProfileLoader profileLoader)
Description copied from class:IdentitySets the profile loader.- Overrides:
setProfileLoaderin classIdentity- Parameters:
profileLoader- the new profile loader
-
setProviderId
public void setProviderId(String providerId)
Description copied from class:IdentitySets the provider id.- Overrides:
setProviderIdin classIdentity- Parameters:
providerId- the new provider id
-
setRemoteId
public void setRemoteId(String remoteId)
Description copied from class:IdentitySets the remote id.- Overrides:
setRemoteIdin classIdentity- Parameters:
remoteId- the new remote id
-
toString
public String toString()
-
-