Class IdentityProvider<T>
java.lang.Object
org.exoplatform.social.core.identity.IdentityProvider<T>
An identity provider represent a service that can serve identity it can be
eXo CS contact manager or a CRM tool for example.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract IdentitycreateIdentity(T remoteObject) Creates a new identity for a given remote objectabstract TfindByRemoteId(String remoteId) Finds the remote object for an identity by ID.Deprecated.Will be removed by 1.3.xgetIdentityByRemoteId(String remoteId) The identifier can be the URL of the profile or if it's a CS contact manager contact, it will be the UID of the contactabstract StringgetName()Name for this provider.voidonSaveIdentity(Identity identity) this method is called after the IdentityManager has saved the identity object.voidonSaveProfile(Profile profile) Deprecated.Will be removed by 1.3.xvoidonUpdateProfile(Profile profile) This method is called after the IdentityManager updated the profile object.abstract voidpopulateProfile(Profile profile, T remoteObject) Populate an identity profile for a given remote object
-
Constructor Details
-
IdentityProvider
public IdentityProvider()
-
-
Method Details
-
getIdentityByRemoteId
-
getName
Name for this provider. Must be unique among the registered providers.- Returns:
-
findByRemoteId
-
createIdentity
-
populateProfile
-
onSaveIdentity
this method is called after the IdentityManager has saved the identity object.- Parameters:
identity- the identity
-
onSaveProfile
Deprecated.Will be removed by 1.3.xThis method is called after the IdentityManager have saved the profile object.- Parameters:
profile-
-
onUpdateProfile
This method is called after the IdentityManager updated the profile object.- Parameters:
profile-- Since:
- 1.2.0-GA
-
getAllUserId
Deprecated.Will be removed by 1.3.xGets the list of string containing the remote ids.- Returns:
- the string list containing remote ids
-