Class IdentityManagerImpl
java.lang.Object
org.exoplatform.social.core.manager.IdentityManagerImpl
- All Implemented Interfaces:
org.exoplatform.social.core.manager.IdentityManager
public class IdentityManagerImpl
extends Object
implements org.exoplatform.social.core.manager.IdentityManager
Class IdentityManagerImpl implements IdentityManager without caching.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe identity providersprotected org.exoplatform.social.core.storage.api.IdentityStorageThe activityStorageprotected org.exoplatform.social.core.profile.ProfileLifeCyclelifecycle for profileThe identity providersprotected org.exoplatform.social.core.profileproperty.ProfilePropertyServiceThe profile Property Settings Serviceprotected org.exoplatform.social.core.manager.RelationshipManagerThe relationship managerFields inherited from interface org.exoplatform.social.core.manager.IdentityManager
DEFAULT_SORTING -
Constructor Summary
ConstructorsConstructorDescriptionIdentityManagerImpl(org.exoplatform.social.core.storage.api.IdentityStorage identityStorage, org.exoplatform.social.core.identity.IdentityProvider<?> defaultIdentityProvider, org.exoplatform.social.core.profileproperty.ProfilePropertyService profilePropertyService, org.exoplatform.container.xml.InitParams initParams) Instantiates a new identity manager. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddIdentityProvider(org.exoplatform.social.core.identity.IdentityProvider<?> idProvider) voidaddProfileListener(org.exoplatform.social.core.profile.ProfileListenerPlugin plugin) voiddeleteIdentity(org.exoplatform.social.core.identity.model.Identity identity) org.exoplatform.commons.file.model.FileItemgetAvatarFile(org.exoplatform.social.core.identity.model.Identity identity) getAvatarInputStream(org.exoplatform.social.core.identity.model.Identity identity) getBannerInputStream(org.exoplatform.social.core.identity.model.Identity identity) List<org.exoplatform.social.core.identity.model.Identity> getConnections(org.exoplatform.social.core.identity.model.Identity ownerIdentity) org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.identity.model.Identity> getConnectionsWithListAccess(org.exoplatform.social.core.identity.model.Identity identity) org.exoplatform.social.core.search.SortinggetDisabledSpaceMembers(long spaceId) List<org.exoplatform.social.core.identity.model.Identity> getIdentitiesByProfileFilter(String providerId, org.exoplatform.social.core.profile.ProfileFilter profileFilter) org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.identity.model.Identity> getIdentitiesByProfileFilter(String providerId, org.exoplatform.social.core.profile.ProfileFilter profileFilter, boolean forceLoadProfile) List<org.exoplatform.social.core.identity.model.Identity> getIdentitiesByProfileFilter(String providerId, org.exoplatform.social.core.profile.ProfileFilter profileFilter, long offset, long limit) List<org.exoplatform.social.core.identity.model.Identity> getIdentitiesByProfileFilter(org.exoplatform.social.core.profile.ProfileFilter profileFilter) List<org.exoplatform.social.core.identity.model.Identity> getIdentitiesByProfileFilter(org.exoplatform.social.core.profile.ProfileFilter profileFilter, long offset, long limit) longgetIdentitiesCount(String providerId) List<org.exoplatform.social.core.identity.model.Identity> getIdentitiesFilterByAlphaBet(String providerId, org.exoplatform.social.core.profile.ProfileFilter profileFilter) List<org.exoplatform.social.core.identity.model.Identity> getIdentitiesFilterByAlphaBet(String providerId, org.exoplatform.social.core.profile.ProfileFilter profileFilter, long offset, long limit) List<org.exoplatform.social.core.identity.model.Identity> getIdentitiesFilterByAlphaBet(org.exoplatform.social.core.profile.ProfileFilter profileFilter) org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.identity.model.Identity> getIdentitiesForUnifiedSearch(String providerId, org.exoplatform.social.core.profile.ProfileFilter profileFilter) org.exoplatform.social.core.identity.model.IdentitygetIdentity(String id) org.exoplatform.social.core.identity.model.IdentitygetIdentity(String identityId, boolean forceLoadOrReloadProfile) org.exoplatform.social.core.identity.model.IdentitygetIdentity(String providerId, String remoteId, boolean loadProfile) <T> org.exoplatform.social.core.identity.IdentityProvider<T> getIdentityProvider(String providerId) Gets identityProvider.org.exoplatform.social.core.storage.api.IdentityStorageintList<org.exoplatform.social.core.identity.model.Identity> getLastIdentities(int limit) org.exoplatform.social.core.identity.model.IdentitygetOrCreateIdentity(String providerId, String remoteId) org.exoplatform.social.core.identity.model.IdentitygetOrCreateIdentity(String providerId, String remoteId, boolean forceLoadOrReloadProfile) org.exoplatform.social.core.identity.model.ProfilegetProfile(org.exoplatform.social.core.identity.model.Identity identity) org.exoplatform.social.core.manager.RelationshipManagerorg.exoplatform.commons.utils.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 forceLoadProfile) org.exoplatform.social.core.storage.api.IdentityStoragevoidhardDeleteIdentity(org.exoplatform.social.core.identity.model.Identity identity) booleanidentityExisted(String providerId, String remoteId) voidprocessEnabledIdentity(String remoteId, boolean isEnable) voidregisterIdentityProviders(org.exoplatform.social.core.identity.IdentityProviderPlugin plugin) voidregisterProfileListener(org.exoplatform.social.core.profile.ProfileListener listener) voidregisterProfileListener(org.exoplatform.social.core.profile.ProfileListenerPlugin profileListenerPlugin) voidremoveIdentityProvider(org.exoplatform.social.core.identity.IdentityProvider<?> identityProvider) voidsetIdentityStorage(org.exoplatform.social.core.storage.api.IdentityStorage identityStorage) sortIdentities(List<String> identityRemoteIds, String sortField, String sortDirection) sortIdentities(List<String> identityRemoteIds, String sortField, String sortDirection, boolean filterDisabled) voidunregisterProfileListener(org.exoplatform.social.core.profile.ProfileListener listener) org.exoplatform.social.core.identity.model.IdentityupdateIdentity(org.exoplatform.social.core.identity.model.Identity identity) voidupdateProfile(org.exoplatform.social.core.identity.model.Profile existingProfile) voidupdateProfile(org.exoplatform.social.core.identity.model.Profile profile, boolean broadcastChanges) voidupdateProfile(org.exoplatform.social.core.identity.model.Profile specificProfile, String modifierUsername, boolean broadcastChanges) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.exoplatform.social.core.manager.IdentityManager
getIdentity, getOrCreateGroupIdentity, getOrCreateSpaceIdentity, getOrCreateUserIdentity, saveIdentity, saveProfile, sortIdentities
-
Field Details
-
identityProviders
The identity providers -
profileListeners
The identity providers -
identityStorage
protected org.exoplatform.social.core.storage.api.IdentityStorage identityStorageThe activityStorage -
relationshipManager
protected org.exoplatform.social.core.manager.RelationshipManager relationshipManagerThe relationship manager -
profilePropertyService
protected org.exoplatform.social.core.profileproperty.ProfilePropertyService profilePropertyServiceThe profile Property Settings Service -
profileLifeCycle
protected org.exoplatform.social.core.profile.ProfileLifeCycle profileLifeCyclelifecycle for profile
-
-
Constructor Details
-
IdentityManagerImpl
public IdentityManagerImpl(org.exoplatform.social.core.storage.api.IdentityStorage identityStorage, org.exoplatform.social.core.identity.IdentityProvider<?> defaultIdentityProvider, org.exoplatform.social.core.profileproperty.ProfilePropertyService profilePropertyService, org.exoplatform.container.xml.InitParams initParams) Instantiates a new identity manager.- Parameters:
identityStorage-defaultIdentityProvider- the built-in default identity provider to use when no other provider matches
-
-
Method Details
-
getImageUploadLimit
public int getImageUploadLimit()- Specified by:
getImageUploadLimitin interfaceorg.exoplatform.social.core.manager.IdentityManager
-
getDefaultSorting
public org.exoplatform.social.core.search.Sorting getDefaultSorting()- Specified by:
getDefaultSortingin interfaceorg.exoplatform.social.core.manager.IdentityManager
-
getLastIdentities
- Specified by:
getLastIdentitiesin interfaceorg.exoplatform.social.core.manager.IdentityManager
-
getConnectionsWithListAccess
public org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.identity.model.Identity> getConnectionsWithListAccess(org.exoplatform.social.core.identity.model.Identity identity) - Specified by:
getConnectionsWithListAccessin interfaceorg.exoplatform.social.core.manager.IdentityManager
-
getIdentitiesByProfileFilter
public org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.identity.model.Identity> getIdentitiesByProfileFilter(String providerId, org.exoplatform.social.core.profile.ProfileFilter profileFilter, boolean forceLoadProfile) - Specified by:
getIdentitiesByProfileFilterin interfaceorg.exoplatform.social.core.manager.IdentityManager
-
getSpaceIdentityByProfileFilter
public org.exoplatform.commons.utils.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 forceLoadProfile) - Specified by:
getSpaceIdentityByProfileFilterin interfaceorg.exoplatform.social.core.manager.IdentityManager
-
getDisabledSpaceMembers
- Specified by:
getDisabledSpaceMembersin interfaceorg.exoplatform.social.core.manager.IdentityManager
-
getProfile
public org.exoplatform.social.core.identity.model.Profile getProfile(org.exoplatform.social.core.identity.model.Identity identity) - Specified by:
getProfilein interfaceorg.exoplatform.social.core.manager.IdentityManager
-
getAvatarInputStream
public InputStream getAvatarInputStream(org.exoplatform.social.core.identity.model.Identity identity) throws IOException - Specified by:
getAvatarInputStreamin interfaceorg.exoplatform.social.core.manager.IdentityManager- Throws:
IOException
-
getAvatarFile
public org.exoplatform.commons.file.model.FileItem getAvatarFile(org.exoplatform.social.core.identity.model.Identity identity) - Specified by:
getAvatarFilein interfaceorg.exoplatform.social.core.manager.IdentityManager
-
getBannerInputStream
public InputStream getBannerInputStream(org.exoplatform.social.core.identity.model.Identity identity) throws IOException - Specified by:
getBannerInputStreamin interfaceorg.exoplatform.social.core.manager.IdentityManager- Throws:
IOException
-
updateProfile
public void updateProfile(org.exoplatform.social.core.identity.model.Profile existingProfile) - Specified by:
updateProfilein interfaceorg.exoplatform.social.core.manager.IdentityManager
-
updateProfile
public void updateProfile(org.exoplatform.social.core.identity.model.Profile profile, boolean broadcastChanges) - Specified by:
updateProfilein interfaceorg.exoplatform.social.core.manager.IdentityManager
-
updateProfile
public void updateProfile(org.exoplatform.social.core.identity.model.Profile specificProfile, String modifierUsername, boolean broadcastChanges) - Specified by:
updateProfilein interfaceorg.exoplatform.social.core.manager.IdentityManager
-
registerProfileListener
public void registerProfileListener(org.exoplatform.social.core.profile.ProfileListenerPlugin profileListenerPlugin) - Specified by:
registerProfileListenerin interfaceorg.exoplatform.social.core.manager.IdentityManager
-
updateIdentity
public org.exoplatform.social.core.identity.model.Identity updateIdentity(org.exoplatform.social.core.identity.model.Identity identity) - Specified by:
updateIdentityin interfaceorg.exoplatform.social.core.manager.IdentityManager
-
addIdentityProvider
public void addIdentityProvider(org.exoplatform.social.core.identity.IdentityProvider<?> idProvider) - Specified by:
addIdentityProviderin interfaceorg.exoplatform.social.core.manager.IdentityManager
-
removeIdentityProvider
public void removeIdentityProvider(org.exoplatform.social.core.identity.IdentityProvider<?> identityProvider) - Specified by:
removeIdentityProviderin interfaceorg.exoplatform.social.core.manager.IdentityManager
-
deleteIdentity
public void deleteIdentity(org.exoplatform.social.core.identity.model.Identity identity) - Specified by:
deleteIdentityin interfaceorg.exoplatform.social.core.manager.IdentityManager
-
hardDeleteIdentity
public void hardDeleteIdentity(org.exoplatform.social.core.identity.model.Identity identity) - Specified by:
hardDeleteIdentityin interfaceorg.exoplatform.social.core.manager.IdentityManager
-
getConnections
public List<org.exoplatform.social.core.identity.model.Identity> getConnections(org.exoplatform.social.core.identity.model.Identity ownerIdentity) throws Exception - Specified by:
getConnectionsin interfaceorg.exoplatform.social.core.manager.IdentityManager- Throws:
Exception
-
getIdentitiesByProfileFilter
public List<org.exoplatform.social.core.identity.model.Identity> getIdentitiesByProfileFilter(String providerId, org.exoplatform.social.core.profile.ProfileFilter profileFilter) throws Exception - Specified by:
getIdentitiesByProfileFilterin interfaceorg.exoplatform.social.core.manager.IdentityManager- Throws:
Exception
-
getIdentitiesForUnifiedSearch
public org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.identity.model.Identity> getIdentitiesForUnifiedSearch(String providerId, org.exoplatform.social.core.profile.ProfileFilter profileFilter) - Specified by:
getIdentitiesForUnifiedSearchin interfaceorg.exoplatform.social.core.manager.IdentityManager
-
getIdentitiesByProfileFilter
public List<org.exoplatform.social.core.identity.model.Identity> getIdentitiesByProfileFilter(String providerId, org.exoplatform.social.core.profile.ProfileFilter profileFilter, long offset, long limit) throws Exception - Specified by:
getIdentitiesByProfileFilterin interfaceorg.exoplatform.social.core.manager.IdentityManager- Throws:
Exception
-
getIdentitiesByProfileFilter
public List<org.exoplatform.social.core.identity.model.Identity> getIdentitiesByProfileFilter(org.exoplatform.social.core.profile.ProfileFilter profileFilter) throws Exception - Specified by:
getIdentitiesByProfileFilterin interfaceorg.exoplatform.social.core.manager.IdentityManager- Throws:
Exception
-
getIdentitiesByProfileFilter
public List<org.exoplatform.social.core.identity.model.Identity> getIdentitiesByProfileFilter(org.exoplatform.social.core.profile.ProfileFilter profileFilter, long offset, long limit) throws Exception - Specified by:
getIdentitiesByProfileFilterin interfaceorg.exoplatform.social.core.manager.IdentityManager- Throws:
Exception
-
getIdentitiesFilterByAlphaBet
public List<org.exoplatform.social.core.identity.model.Identity> getIdentitiesFilterByAlphaBet(String providerId, org.exoplatform.social.core.profile.ProfileFilter profileFilter) throws Exception - Specified by:
getIdentitiesFilterByAlphaBetin interfaceorg.exoplatform.social.core.manager.IdentityManager- Throws:
Exception
-
getIdentitiesFilterByAlphaBet
public List<org.exoplatform.social.core.identity.model.Identity> getIdentitiesFilterByAlphaBet(String providerId, org.exoplatform.social.core.profile.ProfileFilter profileFilter, long offset, long limit) throws Exception - Specified by:
getIdentitiesFilterByAlphaBetin interfaceorg.exoplatform.social.core.manager.IdentityManager- Throws:
Exception
-
getIdentitiesFilterByAlphaBet
public List<org.exoplatform.social.core.identity.model.Identity> getIdentitiesFilterByAlphaBet(org.exoplatform.social.core.profile.ProfileFilter profileFilter) throws Exception - Specified by:
getIdentitiesFilterByAlphaBetin interfaceorg.exoplatform.social.core.manager.IdentityManager- Throws:
Exception
-
getIdentity
- Specified by:
getIdentityin interfaceorg.exoplatform.social.core.manager.IdentityManager
-
getIdentitiesCount
- Specified by:
getIdentitiesCountin interfaceorg.exoplatform.social.core.manager.IdentityManager
-
getIdentity
public org.exoplatform.social.core.identity.model.Identity getIdentity(String identityId, boolean forceLoadOrReloadProfile) - Specified by:
getIdentityin interfaceorg.exoplatform.social.core.manager.IdentityManager
-
getIdentity
public org.exoplatform.social.core.identity.model.Identity getIdentity(String providerId, String remoteId, boolean loadProfile) - Specified by:
getIdentityin interfaceorg.exoplatform.social.core.manager.IdentityManager
-
getOrCreateIdentity
public org.exoplatform.social.core.identity.model.Identity getOrCreateIdentity(String providerId, String remoteId) - Specified by:
getOrCreateIdentityin interfaceorg.exoplatform.social.core.manager.IdentityManager
-
getOrCreateIdentity
public org.exoplatform.social.core.identity.model.Identity getOrCreateIdentity(String providerId, String remoteId, boolean forceLoadOrReloadProfile) - Specified by:
getOrCreateIdentityin interfaceorg.exoplatform.social.core.manager.IdentityManager
-
identityExisted
- Specified by:
identityExistedin interfaceorg.exoplatform.social.core.manager.IdentityManager
-
registerIdentityProviders
public void registerIdentityProviders(org.exoplatform.social.core.identity.IdentityProviderPlugin plugin) - Specified by:
registerIdentityProvidersin interfaceorg.exoplatform.social.core.manager.IdentityManager
-
getIdentityProvider
public <T> org.exoplatform.social.core.identity.IdentityProvider<T> getIdentityProvider(String providerId) Gets identityProvider.- Parameters:
providerId-- Returns:
-
getIdentityStorage
public org.exoplatform.social.core.storage.api.IdentityStorage getIdentityStorage()- Specified by:
getIdentityStoragein interfaceorg.exoplatform.social.core.manager.IdentityManager
-
addProfileListener
public void addProfileListener(org.exoplatform.social.core.profile.ProfileListenerPlugin plugin) - Specified by:
addProfileListenerin interfaceorg.exoplatform.social.core.manager.IdentityManager
-
registerProfileListener
public void registerProfileListener(org.exoplatform.social.core.profile.ProfileListener listener) - Specified by:
registerProfileListenerin interfaceorg.exoplatform.social.core.manager.IdentityManager
-
unregisterProfileListener
public void unregisterProfileListener(org.exoplatform.social.core.profile.ProfileListener listener) - Specified by:
unregisterProfileListenerin interfaceorg.exoplatform.social.core.manager.IdentityManager
-
processEnabledIdentity
- Specified by:
processEnabledIdentityin interfaceorg.exoplatform.social.core.manager.IdentityManager
-
sortIdentities
public List<String> sortIdentities(List<String> identityRemoteIds, String sortField, String sortDirection, boolean filterDisabled) - Specified by:
sortIdentitiesin interfaceorg.exoplatform.social.core.manager.IdentityManager
-
sortIdentities
public List<String> sortIdentities(List<String> identityRemoteIds, String sortField, String sortDirection) - Specified by:
sortIdentitiesin interfaceorg.exoplatform.social.core.manager.IdentityManager
-
getStorage
public org.exoplatform.social.core.storage.api.IdentityStorage getStorage()- Specified by:
getStoragein interfaceorg.exoplatform.social.core.manager.IdentityManager
-
setIdentityStorage
public void setIdentityStorage(org.exoplatform.social.core.storage.api.IdentityStorage identityStorage) -
getRelationshipManager
public org.exoplatform.social.core.manager.RelationshipManager getRelationshipManager()
-