java.lang.Object
org.exoplatform.social.core.identity.model.GlobalId
All Implemented Interfaces:
Serializable

public class GlobalId extends Object implements Serializable
A GlobalId according to the definition of OpenSocial. This class implements Serializable so that it can be used as key cache for ExoCache
See Also:
  • Field Details

  • Constructor Details

    • GlobalId

      public GlobalId(String id)
      Creates a new GlobalId
      Parameters:
      id - string representation of the global id. Must be of the form domain:localId
      Throws:
      IllegalArgumentException - if the id does not have the expected form
  • Method Details

    • isValid

      public static boolean isValid(String id)
    • getDomain

      public String getDomain()
    • getLocalId

      public String getLocalId()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • create

      public static GlobalId create(String providerId, String remoteId)
      creates a global id based on provider and remote id
      Parameters:
      providerId -
      remoteId -
      Returns:
    • hashCode

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

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