Class GlobalId
- 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 implementsSerializableso that it can be used as key cache forExoCache- Version:
- $Revision$
- Author:
- Patrice Lamarque
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GlobalIdcreate(String providerId, String remoteId)creates a global id based on provider and remote idbooleanequals(Object obj)StringgetDomain()StringgetLocalId()inthashCode()static booleanisValid(String id)StringtoString()
-
-
-
Field Detail
-
SEPARATOR
public static final String SEPARATOR
the ':' separator character- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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 Detail
-
isValid
public static boolean isValid(String id)
-
getDomain
public String getDomain()
-
getLocalId
public String getLocalId()
-
create
public static GlobalId create(String providerId, String remoteId)
creates a global id based on provider and remote id- Parameters:
providerId-remoteId-- Returns:
-
-