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 Details

    • IdentityWithRelationship

      public IdentityWithRelationship(String id)
    • IdentityWithRelationship

      public IdentityWithRelationship(Identity identity)
  • Method Details

    • getRelationship

      public Relationship getRelationship()
    • setRelationship

      public void setRelationship(Relationship relationship)
    • getGlobalId

      public GlobalId getGlobalId()
      Overrides:
      getGlobalId in class Identity
      Returns:
      global id of identity
    • getId

      public String getId()
      Description copied from class: Identity
      Gets the id.
      Overrides:
      getId in class Identity
      Returns:
      the id
    • getProfile

      public Profile getProfile()
      Description copied from class: Identity
      Gets the profile.
      Overrides:
      getProfile in class Identity
      Returns:
      the profile
    • getRemoteId

      public String getRemoteId()
      Description copied from class: Identity
      Gets the remote id.
      Overrides:
      getRemoteId in class Identity
      Returns:
      the remote id
    • getProviderId

      public String getProviderId()
      Description copied from class: Identity
      Gets the provider id.
      Overrides:
      getProviderId in class Identity
      Returns:
      the provider id
    • isDeleted

      public boolean isDeleted()
      Description copied from class: Identity
      Checks whether this corresponding identity exists or not by the remote identity provider.
      Overrides:
      isDeleted in class Identity
      Returns:
      true if this corresponding identity is indicated as deleted by the remote identity provider.
    • isEnable

      public boolean isEnable()
      Overrides:
      isEnable in class Identity
      Returns:
      the isEnable
    • setDeleted

      public void setDeleted(boolean isDeleted)
      Description copied from class: Identity
      Sets the isDeleted property to indicate if this identity is deleted or not by the remote identity provider.
      Overrides:
      setDeleted in class Identity
      Parameters:
      isDeleted - new value to set this identity is deleted or not.
    • setEnable

      public void setEnable(boolean isEnable)
      Overrides:
      setEnable in class Identity
      Parameters:
      isEnable - the isEnable to set
    • setId

      public void setId(String id)
      Description copied from class: Identity
      Sets the id.
      Overrides:
      setId in class Identity
      Parameters:
      id - the new id
    • setProfile

      public void setProfile(Profile profile)
      Description copied from class: Identity
      Sets the profile.
      Overrides:
      setProfile in class Identity
      Parameters:
      profile - the new profile
    • setProfileLoader

      public void setProfileLoader(ProfileLoader profileLoader)
      Description copied from class: Identity
      Sets the profile loader.
      Overrides:
      setProfileLoader in class Identity
      Parameters:
      profileLoader - the new profile loader
    • setProviderId

      public void setProviderId(String providerId)
      Description copied from class: Identity
      Sets the provider id.
      Overrides:
      setProviderId in class Identity
      Parameters:
      providerId - the new provider id
    • setRemoteId

      public void setRemoteId(String remoteId)
      Description copied from class: Identity
      Sets the remote id.
      Overrides:
      setRemoteId in class Identity
      Parameters:
      remoteId - the new remote id
    • toString

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

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

      public int hashCode()
      Overrides:
      hashCode in class Identity