public interface IdentityManager
ListAccess which is used for lazy loading.
Also, the API which adds or removes the provider information is provided.| Modifier and Type | Method and Description |
|---|---|
void |
addIdentityProvider(org.exoplatform.social.core.identity.IdentityProvider<?> identityProvider)
Adds an identity provider to an identity manager.
|
void |
addOrModifyProfileProperties(org.exoplatform.social.core.identity.model.Profile profile)
Deprecated.
Will be removed by 4.0.x.
|
void |
addProfileListener(org.exoplatform.social.core.profile.ProfileListenerPlugin plugin)
Deprecated.
Use
registerProfileListener(org.exoplatform.social.core.profile.ProfileListenerPlugin)
instead. Will be removed by 4.0.x. |
void |
deleteIdentity(org.exoplatform.social.core.identity.model.Identity identity)
Deletes an identity.
|
List<org.exoplatform.social.core.identity.model.Identity> |
getConnections(org.exoplatform.social.core.identity.model.Identity ownerIdentity)
Deprecated.
Use
getConnectionsWithListAccess(org.exoplatform.social.core.identity.model.Identity)
instead. Will be removed by 4.0.x. |
ListAccess<org.exoplatform.social.core.identity.model.Identity> |
getConnectionsWithListAccess(org.exoplatform.social.core.identity.model.Identity identity)
Gets a list access which contains all identities connected to the provided identity.
|
List<org.exoplatform.social.core.identity.model.Identity> |
getIdentities(String providerId)
Deprecated.
Use
getIdentities(String, boolean) instead.
Will be removed by 4.0.x. |
List<org.exoplatform.social.core.identity.model.Identity> |
getIdentities(String providerId,
boolean loadProfile)
Deprecated.
Use
getIdentities(String, boolean) instead.
Will be removed by 4.0.x. |
List<org.exoplatform.social.core.identity.model.Identity> |
getIdentitiesByProfileFilter(org.exoplatform.social.core.profile.ProfileFilter profileFilter)
Deprecated.
Use
getIdentitiesByProfileFilter(String, org.exoplatform.social.core.profile.ProfileFilter,
boolean) instead. Will be removed by 4.0.x. |
List<org.exoplatform.social.core.identity.model.Identity> |
getIdentitiesByProfileFilter(org.exoplatform.social.core.profile.ProfileFilter profileFilter,
long offset,
long limit)
Deprecated.
Use
getIdentitiesByProfileFilter(String, org.exoplatform.social.core.profile.ProfileFilter,
boolean) instead. Will be removed by 4.0.x. |
List<org.exoplatform.social.core.identity.model.Identity> |
getIdentitiesByProfileFilter(String providerId,
org.exoplatform.social.core.profile.ProfileFilter profileFilter)
Deprecated.
Use
getIdentitiesByProfileFilter(String, org.exoplatform.social.core.profile.ProfileFilter,
boolean) instead. Will be removed by 4.0.x. |
ListAccess<org.exoplatform.social.core.identity.model.Identity> |
getIdentitiesByProfileFilter(String providerId,
org.exoplatform.social.core.profile.ProfileFilter profileFilter,
boolean isProfileLoaded)
Gets a list access which contains all identities from a given provider.
|
List<org.exoplatform.social.core.identity.model.Identity> |
getIdentitiesByProfileFilter(String providerId,
org.exoplatform.social.core.profile.ProfileFilter profileFilter,
long offset,
long limit)
Deprecated.
Use
getIdentitiesByProfileFilter(String, org.exoplatform.social.core.profile.ProfileFilter,
boolean) instead. Will be removed by 4.0.x. |
long |
getIdentitiesCount(String providerId)
Deprecated.
Will be removed by 4.0.x.
|
List<org.exoplatform.social.core.identity.model.Identity> |
getIdentitiesFilterByAlphaBet(org.exoplatform.social.core.profile.ProfileFilter profileFilter)
Deprecated.
Use
getIdentitiesByProfileFilter(String, org.exoplatform.social.core.profile.ProfileFilter,
boolean) instead. Will be removed by 4.0.x. |
List<org.exoplatform.social.core.identity.model.Identity> |
getIdentitiesFilterByAlphaBet(String providerId,
org.exoplatform.social.core.profile.ProfileFilter profileFilter)
Deprecated.
Use
getIdentitiesByProfileFilter(String, org.exoplatform.social.core.profile.ProfileFilter,
boolean) instead. Will be removed by 4.0.x. |
List<org.exoplatform.social.core.identity.model.Identity> |
getIdentitiesFilterByAlphaBet(String providerId,
org.exoplatform.social.core.profile.ProfileFilter profileFilter,
long offset,
long limit)
Deprecated.
Use
getIdentitiesByProfileFilter(String, org.exoplatform.social.core.profile.ProfileFilter,
boolean) instead. Will be removed by 4.0.x. |
ListAccess<org.exoplatform.social.core.identity.model.Identity> |
getIdentitiesForUnifiedSearch(String providerId,
org.exoplatform.social.core.profile.ProfileFilter profileFilter)
Gets a list access which contains identities matching with the Unified Search condition.
|
org.exoplatform.social.core.identity.model.Identity |
getIdentity(String id)
Deprecated.
Use
getIdentity(String, boolean) instead.
Will be removed by 4.0.x. |
org.exoplatform.social.core.identity.model.Identity |
getIdentity(String identityId,
boolean isProfileLoaded)
Gets an identity by a given Id.
|
org.exoplatform.social.core.identity.model.Identity |
getIdentity(String providerId,
String remoteId,
boolean loadProfile)
Deprecated.
Use
getOrCreateIdentity(String, String, boolean) instead.
Will be removed by 4.0.x. |
org.exoplatform.social.core.storage.api.IdentityStorage |
getIdentityStorage()
Deprecated.
Will be removed by 4.0.x.
|
List<org.exoplatform.social.core.identity.model.Identity> |
getLastIdentities(int limit)
Gets the last identities that have been created.
|
org.exoplatform.social.core.identity.model.Identity |
getOrCreateIdentity(String providerId,
String remoteId)
Deprecated.
Use
getOrCreateIdentity(String, String, boolean) instead.
Will be moved by 1.3.x. |
org.exoplatform.social.core.identity.model.Identity |
getOrCreateIdentity(String providerId,
String remoteId,
boolean isProfileLoaded)
Gets or creates an identity provided by an identity provider and an identity Id.
|
org.exoplatform.social.core.identity.model.Profile |
getProfile(org.exoplatform.social.core.identity.model.Identity identity)
Gets a profile associated with a provided identity.
|
ListAccess<org.exoplatform.social.core.identity.model.Identity> |
getSpaceIdentityByProfileFilter(org.exoplatform.social.core.space.model.Space space,
org.exoplatform.social.core.profile.ProfileFilter profileFilter,
org.exoplatform.social.core.identity.SpaceMemberFilterListAccess.Type type,
boolean isProfileLoaded)
Gets space identities by filter information.
|
org.exoplatform.social.core.storage.api.IdentityStorage |
getStorage()
Deprecated.
Will be removed by 4.0.x.
|
void |
hardDeleteIdentity(org.exoplatform.social.core.identity.model.Identity identity)
Cleans all data related to a specific identity.
|
boolean |
identityExisted(String providerId,
String remoteId)
Deprecated.
Will be removed by 4.0.x.
|
void |
processEnabledIdentity(String remoteId,
boolean isEnable)
Process status of Identity when enable/disable user.
|
void |
registerIdentityProviders(org.exoplatform.social.core.identity.IdentityProviderPlugin plugin)
Registers one or more identity providers through
IdentityProviderPlugin. |
void |
registerProfileListener(org.exoplatform.social.core.profile.ProfileListener listener)
Deprecated.
Will be removed by 4.0.x.
|
void |
registerProfileListener(org.exoplatform.social.core.profile.ProfileListenerPlugin profileListenerPlugin)
Registers a profile listener plugin by an external component plugin mechanism.
|
void |
removeIdentityProvider(org.exoplatform.social.core.identity.IdentityProvider<?> identityProvider)
Removes a specific identity provider.
|
void |
saveIdentity(org.exoplatform.social.core.identity.model.Identity identity)
Deprecated.
Use
getOrCreateIdentity(String, String, boolean) instead.
Will be removed by 4.0.x. |
void |
saveProfile(org.exoplatform.social.core.identity.model.Profile profile)
Deprecated.
Use
updateProfile(org.exoplatform.social.core.identity.model.Profile) instead.
Will be removed by 4.0.x. |
void |
unregisterProfileListener(org.exoplatform.social.core.profile.ProfileListener listener)
Deprecated.
Will be removed by 4.0.x.
|
void |
updateAvatar(org.exoplatform.social.core.identity.model.Profile p)
Deprecated.
Will be removed by 4.0.x.
|
void |
updateBasicInfo(org.exoplatform.social.core.identity.model.Profile p)
Deprecated.
Will be removed by 4.0.x.
|
void |
updateContactSection(org.exoplatform.social.core.identity.model.Profile p)
Deprecated.
Will be removed by 4.0.x.
|
void |
updateExperienceSection(org.exoplatform.social.core.identity.model.Profile p)
Deprecated.
Will be removed by 4.0.x.
|
void |
updateHeaderSection(org.exoplatform.social.core.identity.model.Profile p)
Deprecated.
Will be removed by 4.0.x.
|
org.exoplatform.social.core.identity.model.Identity |
updateIdentity(org.exoplatform.social.core.identity.model.Identity identity)
Updates specific properties of an identity.
|
void |
updateProfile(org.exoplatform.social.core.identity.model.Profile specificProfile)
Updates a specific profile.
|
List<org.exoplatform.social.core.identity.model.Identity> getLastIdentities(int limit)
limit - the limit of identities to provide.org.exoplatform.social.core.identity.model.Identity getOrCreateIdentity(String providerId, String remoteId, boolean isProfileLoaded)
providerId - Id of the identity provider.remoteId - The user remote Id.isProfileLoaded - Is profile loaded or not.org.exoplatform.social.core.identity.model.Identity getIdentity(String identityId, boolean isProfileLoaded)
identityId - Id of the identity.isProfileLoaded - Is profile loaded or not.org.exoplatform.social.core.identity.model.Identity updateIdentity(org.exoplatform.social.core.identity.model.Identity identity)
identity - The identity.void deleteIdentity(org.exoplatform.social.core.identity.model.Identity identity)
identity - The identity to be deleted.void hardDeleteIdentity(org.exoplatform.social.core.identity.model.Identity identity)
identity - The identity whose all data is cleaned.ListAccess<org.exoplatform.social.core.identity.model.Identity> getConnectionsWithListAccess(org.exoplatform.social.core.identity.model.Identity identity)
ListAccess which can be lazy loaded.identity - The provided identity.org.exoplatform.social.core.identity.model.Profile getProfile(org.exoplatform.social.core.identity.model.Identity identity)
identity - The provided identity.void updateProfile(org.exoplatform.social.core.identity.model.Profile specificProfile)
throws org.exoplatform.webui.exception.MessageException
specificProfile - The specific profile.org.exoplatform.webui.exception.MessageExceptionListAccess<org.exoplatform.social.core.identity.model.Identity> getIdentitiesByProfileFilter(String providerId, org.exoplatform.social.core.profile.ProfileFilter profileFilter, boolean isProfileLoaded)
ListAccess which can be lazy loaded.providerId - Id of the provider.profileFilter - The filter.isProfileLoaded - Is profile loaded or not.ListAccess<org.exoplatform.social.core.identity.model.Identity> getIdentitiesForUnifiedSearch(String providerId, org.exoplatform.social.core.profile.ProfileFilter profileFilter)
providerId - Id of the provider.profileFilter - The filter.ListAccess<org.exoplatform.social.core.identity.model.Identity> getSpaceIdentityByProfileFilter(org.exoplatform.social.core.space.model.Space space, org.exoplatform.social.core.profile.ProfileFilter profileFilter, org.exoplatform.social.core.identity.SpaceMemberFilterListAccess.Type type, boolean isProfileLoaded)
ListAccess which can be lazy loaded.space - The space in which identities are got.profileFilter - The filter information.type - Type of identities to find.isProfileLoaded - Is profile loaded or not.void addIdentityProvider(org.exoplatform.social.core.identity.IdentityProvider<?> identityProvider)
identityProvider - The identity provider.void removeIdentityProvider(org.exoplatform.social.core.identity.IdentityProvider<?> identityProvider)
identityProvider - The specific identity provider.void registerProfileListener(org.exoplatform.social.core.profile.ProfileListenerPlugin profileListenerPlugin)
<external-component-plugins>
<target-component>org.exoplatform.social.core.manager.IdentityManager</target-component>
<component-plugin>
<name>ProfileUpdatesPublisher</name>
<set-method>registerProfileListener</set-method>
<type>org.exoplatform.social.core.application.ProfileUpdatesPublisher</type>
</component-plugin>
</external-component-plugins>
profileListenerPlugin - The profile listener plugin.void registerIdentityProviders(org.exoplatform.social.core.identity.IdentityProviderPlugin plugin)
IdentityProviderPlugin.plugin - The identity provider plugin.void processEnabledIdentity(String remoteId, boolean isEnable)
remoteId - The user remote idisEnable - true if the user is enable, false if notorg.exoplatform.social.core.identity.model.Identity getIdentity(String id)
getIdentity(String, boolean) instead.
Will be removed by 4.0.x.id - Id of a Social identity (such as GlobalId) or a raw identity (such as Identity.getId()).getIdentity(String, boolean)org.exoplatform.social.core.identity.model.Identity getOrCreateIdentity(String providerId, String remoteId)
getOrCreateIdentity(String, String, boolean) instead.
Will be moved by 1.3.x.providerId - Id of the provider.remoteId - The remote Id.List<org.exoplatform.social.core.identity.model.Identity> getIdentitiesByProfileFilter(String providerId, org.exoplatform.social.core.profile.ProfileFilter profileFilter) throws Exception
getIdentitiesByProfileFilter(String, org.exoplatform.social.core.profile.ProfileFilter,
boolean) instead. Will be removed by 4.0.x.providerId - Id of the provider.profileFilter - The profile filter.Exception - the exceptionList<org.exoplatform.social.core.identity.model.Identity> getIdentitiesByProfileFilter(String providerId, org.exoplatform.social.core.profile.ProfileFilter profileFilter, long offset, long limit) throws Exception
getIdentitiesByProfileFilter(String, org.exoplatform.social.core.profile.ProfileFilter,
boolean) instead. Will be removed by 4.0.x.providerId - Id of the provider.profileFilter - The profile filter.offset - The starting point from which the identities are got.limit - The limitation of identities.ExceptionList<org.exoplatform.social.core.identity.model.Identity> getIdentitiesByProfileFilter(org.exoplatform.social.core.profile.ProfileFilter profileFilter) throws Exception
getIdentitiesByProfileFilter(String, org.exoplatform.social.core.profile.ProfileFilter,
boolean) instead. Will be removed by 4.0.x.profileFilter - The profile filter.Exception - the exceptionList<org.exoplatform.social.core.identity.model.Identity> getIdentitiesByProfileFilter(org.exoplatform.social.core.profile.ProfileFilter profileFilter, long offset, long limit) throws Exception
getIdentitiesByProfileFilter(String, org.exoplatform.social.core.profile.ProfileFilter,
boolean) instead. Will be removed by 4.0.x.profileFilter - The profile filter.offset - The starting point from which the identities are got.limit - The limitation of identities.ExceptionList<org.exoplatform.social.core.identity.model.Identity> getIdentitiesFilterByAlphaBet(String providerId, org.exoplatform.social.core.profile.ProfileFilter profileFilter) throws Exception
getIdentitiesByProfileFilter(String, org.exoplatform.social.core.profile.ProfileFilter,
boolean) instead. Will be removed by 4.0.x.providerId - Id of the provider.profileFilter - The profile filter.Exception - the exceptionList<org.exoplatform.social.core.identity.model.Identity> getIdentitiesFilterByAlphaBet(String providerId, org.exoplatform.social.core.profile.ProfileFilter profileFilter, long offset, long limit) throws Exception
getIdentitiesByProfileFilter(String, org.exoplatform.social.core.profile.ProfileFilter,
boolean) instead. Will be removed by 4.0.x.providerId - Id of the provider.profileFilter - The profile filter.offset - The starting point from which identities are got.limit - The limitation of identities.ExceptionList<org.exoplatform.social.core.identity.model.Identity> getIdentitiesFilterByAlphaBet(org.exoplatform.social.core.profile.ProfileFilter profileFilter) throws Exception
getIdentitiesByProfileFilter(String, org.exoplatform.social.core.profile.ProfileFilter,
boolean) instead. Will be removed by 4.0.x.profileFilter - The profile filter.Exception - the exceptionorg.exoplatform.social.core.identity.model.Identity getIdentity(String providerId, String remoteId, boolean loadProfile)
getOrCreateIdentity(String, String, boolean) instead.
Will be removed by 4.0.x.getOrCreateIdentity(String, String, boolean).providerId - Id of the provider.remoteId - The remote Id.loadProfile - Load the identity profile or not.long getIdentitiesCount(String providerId)
boolean identityExisted(String providerId, String remoteId)
providerId - Id of the provider.remoteId - The remote Id.void saveIdentity(org.exoplatform.social.core.identity.model.Identity identity)
getOrCreateIdentity(String, String, boolean) instead.
Will be removed by 4.0.x.identity - The identity to be saved.void saveProfile(org.exoplatform.social.core.identity.model.Profile profile)
updateProfile(org.exoplatform.social.core.identity.model.Profile) instead.
Will be removed by 4.0.x.profile - The profile to be saved.void addOrModifyProfileProperties(org.exoplatform.social.core.identity.model.Profile profile)
throws Exception
profile - The identity profile containing information which is added or modified.Exceptionvoid updateAvatar(org.exoplatform.social.core.identity.model.Profile p)
throws org.exoplatform.webui.exception.MessageException
p - The profile containing its avatar which is updated.Exceptionorg.exoplatform.webui.exception.MessageExceptionvoid updateBasicInfo(org.exoplatform.social.core.identity.model.Profile p)
throws Exception
p - The profile containing its basic information which is updated.Exceptionvoid updateContactSection(org.exoplatform.social.core.identity.model.Profile p)
throws Exception
p - The profile containing its contact section which is updated.Exceptionvoid updateExperienceSection(org.exoplatform.social.core.identity.model.Profile p)
throws Exception
p - The profile containing the experience section which is updated.Exceptionvoid updateHeaderSection(org.exoplatform.social.core.identity.model.Profile p)
throws Exception
p - The profile containing the header section which is updated.ExceptionList<org.exoplatform.social.core.identity.model.Identity> getIdentities(String providerId) throws Exception
getIdentities(String, boolean) instead.
Will be removed by 4.0.x.providerId - Id of the provider.Exception - the exceptionList<org.exoplatform.social.core.identity.model.Identity> getIdentities(String providerId, boolean loadProfile) throws Exception
getIdentities(String, boolean) instead.
Will be removed by 4.0.x.providerId - Id of the provider.loadProfile - The load profile.ExceptionList<org.exoplatform.social.core.identity.model.Identity> getConnections(org.exoplatform.social.core.identity.model.Identity ownerIdentity) throws Exception
getConnectionsWithListAccess(org.exoplatform.social.core.identity.model.Identity)
instead. Will be removed by 4.0.x.ownerIdentity - The identity.Exceptionorg.exoplatform.social.core.storage.api.IdentityStorage getIdentityStorage()
org.exoplatform.social.core.storage.api.IdentityStorage getStorage()
void registerProfileListener(org.exoplatform.social.core.profile.ProfileListener listener)
listener - The profile listener to be registered.void unregisterProfileListener(org.exoplatform.social.core.profile.ProfileListener listener)
listener - The listener to be unregistered.void addProfileListener(org.exoplatform.social.core.profile.ProfileListenerPlugin plugin)
registerProfileListener(org.exoplatform.social.core.profile.ProfileListenerPlugin)
instead. Will be removed by 4.0.x.plugin - The plugin to be registered.Copyright © 2003-2018 eXo Platform SAS. All Rights Reserved.