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 Details

    • 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 identity
      remoteId - the remote id of identity
    • Identity

      public Identity(String id, String remoteId, String providerId, boolean isDeleted, boolean isEnable, Profile profile, ProfileLoader profileLoader, GlobalId globalId)
  • Method Details

    • 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
    • isExternal

      public boolean isExternal()
    • setProviderId

      public void setProviderId(String providerId)
      Sets the provider id.
      Parameters:
      providerId - the new provider id
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Returns:
      the global id string of identity
    • getGlobalId

      public GlobalId getGlobalId()
      Returns:
      global id of identity
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • clone

      public Identity clone()
      Overrides:
      clone in class Object