public class RDBMSIdentityStorageImpl
extends org.exoplatform.social.core.storage.impl.IdentityStorageImpl
| Constructor and Description |
|---|
RDBMSIdentityStorageImpl(IdentityDAO identityDAO,
SpaceDAO spaceDAO,
ActivityDAO activityDAO,
org.exoplatform.commons.file.services.FileService fileService,
ProfileSearchConnector profileSearchConnector,
org.exoplatform.services.organization.OrganizationService orgService) |
| Modifier and Type | Method and Description |
|---|---|
void |
addOrModifyProfileProperties(org.exoplatform.social.core.identity.model.Profile profile)
Add or modify properties of profile and persist to JCR.
|
void |
deleteIdentity(org.exoplatform.social.core.identity.model.Identity identity)
Deletes an identity from JCR
|
org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.identity.model.Identity> |
findByFilter(ExtendProfileFilter filter) |
org.exoplatform.social.core.identity.model.Identity |
findIdentity(String providerId,
String remoteId)
Gets the identity by remote id.
|
org.exoplatform.social.core.identity.model.Identity |
findIdentityById(String nodeId)
Gets the identity by his id.
|
Set<String> |
getActiveUsers(org.exoplatform.social.core.identity.model.ActiveIdentityFilter filter)
Gets the active user list base on the given ActiveIdentityFilter.
|
List<org.exoplatform.social.core.identity.model.Identity> |
getIdentitiesByFirstCharacterOfName(String providerId,
org.exoplatform.social.core.profile.ProfileFilter profileFilter,
long offset,
long limit,
boolean forceLoadOrReloadProfile) |
int |
getIdentitiesByFirstCharacterOfNameCount(String providerId,
org.exoplatform.social.core.profile.ProfileFilter profileFilter) |
List<org.exoplatform.social.core.identity.model.Identity> |
getIdentitiesByProfileFilter(String providerId,
org.exoplatform.social.core.profile.ProfileFilter profileFilter,
long offset,
long limit,
boolean forceLoadOrReloadProfile) |
int |
getIdentitiesByProfileFilterCount(String providerId,
org.exoplatform.social.core.profile.ProfileFilter profileFilter) |
int |
getIdentitiesCount(String providerId)
Gets total number of identities in storage depend on providerId.
|
List<org.exoplatform.social.core.identity.model.Identity> |
getIdentitiesForMentions(String providerId,
org.exoplatform.social.core.profile.ProfileFilter profileFilter,
long offset,
long limit,
boolean forceLoadOrReloadProfile) |
List<org.exoplatform.social.core.identity.model.Identity> |
getIdentitiesForUnifiedSearch(String providerId,
org.exoplatform.social.core.profile.ProfileFilter profileFilter,
long offset,
long limit) |
String |
getProfileActivityId(org.exoplatform.social.core.identity.model.Profile profile,
org.exoplatform.social.core.identity.model.Profile.AttachedActivityType type)
Gets profile activity id by type.
|
List<org.exoplatform.social.core.identity.model.Identity> |
getSpaceMemberIdentitiesByProfileFilter(org.exoplatform.social.core.space.model.Space space,
org.exoplatform.social.core.profile.ProfileFilter profileFilter,
org.exoplatform.social.core.identity.SpaceMemberFilterListAccess.Type type,
long offset,
long limit) |
String |
getType(String nodetype,
String property)
Gets the type.
|
void |
hardDeleteIdentity(org.exoplatform.social.core.identity.model.Identity identity)
Hard delete an identity from JCR
|
org.exoplatform.social.core.identity.model.Profile |
loadProfile(org.exoplatform.social.core.identity.model.Profile profile)
Load profile.
|
void |
processEnabledIdentity(org.exoplatform.social.core.identity.model.Identity identity,
boolean isEnable)
Process enable/disable Identity
|
void |
removeIdentity(org.exoplatform.social.core.identity.model.Identity identity)
This method is introduced to clean totally identity from database
It's used in unit test
|
void |
saveIdentity(org.exoplatform.social.core.identity.model.Identity identity)
Saves identity.
|
void |
saveProfile(org.exoplatform.social.core.identity.model.Profile profile)
Saves profile.
|
void |
setProfileSearchConnector(ProfileSearchConnector profileSearchConnector) |
org.exoplatform.social.core.identity.model.Identity |
updateIdentity(org.exoplatform.social.core.identity.model.Identity identity)
Updates existing identity's properties.
|
void |
updateIdentityMembership(String remoteId)
Updates existing identity's membership in OrganizationService.
|
void |
updateProfile(org.exoplatform.social.core.identity.model.Profile profile)
Updates profile.
|
void |
updateProfileActivityId(org.exoplatform.social.core.identity.model.Identity identity,
String activityId,
org.exoplatform.social.core.identity.model.Profile.AttachedActivityType type)
Updates profile activity id by type.
|
_createIdentity, _createProfile, _deleteIdentity, _findIdentity, _findIdentityEntity, _findIdentityEntity, _hardDeleteIdentity, _loadProfile, _removeRelationshipList, _removeSpaceMembership, _saveIdentity, _saveProfile, getSpaceMemberIdentitiesByProfileFilterCount, setStorage_findById, _findByPath, _getMixin, _hasMixin, _removeById, _removeMixin, _skip, getProviderRoot, getSession, getSpaceRoot, getStatus, isJcrProperty, lifecycleLookup, node, nodes, nodes, startSynchronization, stopSynchronizationpublic RDBMSIdentityStorageImpl(IdentityDAO identityDAO, SpaceDAO spaceDAO, ActivityDAO activityDAO, org.exoplatform.commons.file.services.FileService fileService, ProfileSearchConnector profileSearchConnector, org.exoplatform.services.organization.OrganizationService orgService)
public void setProfileSearchConnector(ProfileSearchConnector profileSearchConnector)
public void saveIdentity(org.exoplatform.social.core.identity.model.Identity identity)
throws org.exoplatform.social.core.storage.IdentityStorageException
saveIdentity in interface org.exoplatform.social.core.storage.api.IdentityStoragesaveIdentity in class org.exoplatform.social.core.storage.impl.IdentityStorageImplidentity - the identityorg.exoplatform.social.core.storage.IdentityStorageException - if has any errorpublic org.exoplatform.social.core.identity.model.Identity updateIdentity(org.exoplatform.social.core.identity.model.Identity identity)
throws org.exoplatform.social.core.storage.IdentityStorageException
updateIdentity in interface org.exoplatform.social.core.storage.api.IdentityStorageupdateIdentity in class org.exoplatform.social.core.storage.impl.IdentityStorageImplidentity - the identity to be updated.org.exoplatform.social.core.storage.IdentityStorageException - if has any errorpublic void updateIdentityMembership(String remoteId) throws org.exoplatform.social.core.storage.IdentityStorageException
updateIdentityMembership in interface org.exoplatform.social.core.storage.api.IdentityStorageupdateIdentityMembership in class org.exoplatform.social.core.storage.impl.IdentityStorageImplremoteId - the remoteId to be updated membership.org.exoplatform.social.core.storage.IdentityStorageException - if has any errorpublic org.exoplatform.social.core.identity.model.Identity findIdentityById(String nodeId) throws org.exoplatform.social.core.storage.IdentityStorageException
findIdentityById in interface org.exoplatform.social.core.storage.api.IdentityStoragefindIdentityById in class org.exoplatform.social.core.storage.impl.IdentityStorageImplnodeId - the id of identityorg.exoplatform.social.core.storage.IdentityStorageException - if has any errorpublic void deleteIdentity(org.exoplatform.social.core.identity.model.Identity identity)
throws org.exoplatform.social.core.storage.IdentityStorageException
deleteIdentity in interface org.exoplatform.social.core.storage.api.IdentityStoragedeleteIdentity in class org.exoplatform.social.core.storage.impl.IdentityStorageImplidentity - the Identity to be deletedorg.exoplatform.social.core.storage.IdentityStorageException - if has any errorpublic void hardDeleteIdentity(org.exoplatform.social.core.identity.model.Identity identity)
throws org.exoplatform.social.core.storage.IdentityStorageException
hardDeleteIdentity in interface org.exoplatform.social.core.storage.api.IdentityStoragehardDeleteIdentity in class org.exoplatform.social.core.storage.impl.IdentityStorageImplidentity - the identity to be deletedorg.exoplatform.social.core.storage.IdentityStorageException - if has any errorpublic org.exoplatform.social.core.identity.model.Profile loadProfile(org.exoplatform.social.core.identity.model.Profile profile)
throws org.exoplatform.social.core.storage.IdentityStorageException
loadProfile in interface org.exoplatform.social.core.storage.api.IdentityStorageloadProfile in class org.exoplatform.social.core.storage.impl.IdentityStorageImplprofile - the profileorg.exoplatform.social.core.storage.IdentityStorageException - if has any errorpublic org.exoplatform.social.core.identity.model.Identity findIdentity(String providerId, String remoteId) throws org.exoplatform.social.core.storage.IdentityStorageException
findIdentity in interface org.exoplatform.social.core.storage.api.IdentityStoragefindIdentity in class org.exoplatform.social.core.storage.impl.IdentityStorageImplproviderId - the identity providerremoteId - the idorg.exoplatform.social.core.storage.IdentityStorageException - if has any errorpublic void saveProfile(org.exoplatform.social.core.identity.model.Profile profile)
throws org.exoplatform.social.core.storage.IdentityStorageException
saveProfile in interface org.exoplatform.social.core.storage.api.IdentityStoragesaveProfile in class org.exoplatform.social.core.storage.impl.IdentityStorageImplprofile - the profileorg.exoplatform.social.core.storage.IdentityStorageException - if has any errorpublic void updateProfile(org.exoplatform.social.core.identity.model.Profile profile)
throws org.exoplatform.social.core.storage.IdentityStorageException
updateProfile in interface org.exoplatform.social.core.storage.api.IdentityStorageupdateProfile in class org.exoplatform.social.core.storage.impl.IdentityStorageImplprofile - the profileorg.exoplatform.social.core.storage.IdentityStorageException - if has any errorpublic int getIdentitiesCount(String providerId) throws org.exoplatform.social.core.storage.IdentityStorageException
getIdentitiesCount in interface org.exoplatform.social.core.storage.api.IdentityStoragegetIdentitiesCount in class org.exoplatform.social.core.storage.impl.IdentityStorageImplorg.exoplatform.social.core.storage.IdentityStorageException - if has any errorpublic String getType(String nodetype, String property)
getType in interface org.exoplatform.social.core.storage.api.IdentityStoragegetType in class org.exoplatform.social.core.storage.impl.IdentityStorageImplnodetype - the nodetypeproperty - the propertyorg.exoplatform.social.core.storage.IdentityStorageException - if has any errorpublic void addOrModifyProfileProperties(org.exoplatform.social.core.identity.model.Profile profile)
throws org.exoplatform.social.core.storage.IdentityStorageException
addOrModifyProfileProperties in interface org.exoplatform.social.core.storage.api.IdentityStorageaddOrModifyProfileProperties in class org.exoplatform.social.core.storage.impl.IdentityStorageImplprofile - the profileorg.exoplatform.social.core.storage.IdentityStorageException - if has any errorpublic void updateProfileActivityId(org.exoplatform.social.core.identity.model.Identity identity,
String activityId,
org.exoplatform.social.core.identity.model.Profile.AttachedActivityType type)
updateProfileActivityId in interface org.exoplatform.social.core.storage.api.IdentityStorageupdateProfileActivityId in class org.exoplatform.social.core.storage.impl.IdentityStorageImplidentity - the identityactivityId - the activity idtype - Type of activity id to get.public String getProfileActivityId(org.exoplatform.social.core.identity.model.Profile profile, org.exoplatform.social.core.identity.model.Profile.AttachedActivityType type)
getProfileActivityId in interface org.exoplatform.social.core.storage.api.IdentityStoragegetProfileActivityId in class org.exoplatform.social.core.storage.impl.IdentityStorageImplprofile - the Profiletype - Type of activity id to get.public Set<String> getActiveUsers(org.exoplatform.social.core.identity.model.ActiveIdentityFilter filter)
getActiveUsers in interface org.exoplatform.social.core.storage.api.IdentityStoragegetActiveUsers in class org.exoplatform.social.core.storage.impl.IdentityStorageImplfilter - the filterpublic void processEnabledIdentity(org.exoplatform.social.core.identity.model.Identity identity,
boolean isEnable)
processEnabledIdentity in interface org.exoplatform.social.core.storage.api.IdentityStorageprocessEnabledIdentity in class org.exoplatform.social.core.storage.impl.IdentityStorageImplidentity - The Identity enableisEnable - true if the user is enable, false if notpublic List<org.exoplatform.social.core.identity.model.Identity> getIdentitiesByFirstCharacterOfName(String providerId, org.exoplatform.social.core.profile.ProfileFilter profileFilter, long offset, long limit, boolean forceLoadOrReloadProfile) throws org.exoplatform.social.core.storage.IdentityStorageException
getIdentitiesByFirstCharacterOfName in interface org.exoplatform.social.core.storage.api.IdentityStoragegetIdentitiesByFirstCharacterOfName in class org.exoplatform.social.core.storage.impl.IdentityStorageImplorg.exoplatform.social.core.storage.IdentityStorageExceptionpublic List<org.exoplatform.social.core.identity.model.Identity> getIdentitiesForMentions(String providerId, org.exoplatform.social.core.profile.ProfileFilter profileFilter, long offset, long limit, boolean forceLoadOrReloadProfile) throws org.exoplatform.social.core.storage.IdentityStorageException
getIdentitiesForMentions in interface org.exoplatform.social.core.storage.api.IdentityStoragegetIdentitiesForMentions in class org.exoplatform.social.core.storage.impl.IdentityStorageImplorg.exoplatform.social.core.storage.IdentityStorageExceptionpublic int getIdentitiesByProfileFilterCount(String providerId, org.exoplatform.social.core.profile.ProfileFilter profileFilter) throws org.exoplatform.social.core.storage.IdentityStorageException
getIdentitiesByProfileFilterCount in interface org.exoplatform.social.core.storage.api.IdentityStoragegetIdentitiesByProfileFilterCount in class org.exoplatform.social.core.storage.impl.IdentityStorageImplorg.exoplatform.social.core.storage.IdentityStorageExceptionpublic int getIdentitiesByFirstCharacterOfNameCount(String providerId, org.exoplatform.social.core.profile.ProfileFilter profileFilter) throws org.exoplatform.social.core.storage.IdentityStorageException
getIdentitiesByFirstCharacterOfNameCount in interface org.exoplatform.social.core.storage.api.IdentityStoragegetIdentitiesByFirstCharacterOfNameCount in class org.exoplatform.social.core.storage.impl.IdentityStorageImplorg.exoplatform.social.core.storage.IdentityStorageExceptionpublic List<org.exoplatform.social.core.identity.model.Identity> getIdentitiesForUnifiedSearch(String providerId, org.exoplatform.social.core.profile.ProfileFilter profileFilter, long offset, long limit) throws org.exoplatform.social.core.storage.IdentityStorageException
getIdentitiesForUnifiedSearch in interface org.exoplatform.social.core.storage.api.IdentityStoragegetIdentitiesForUnifiedSearch in class org.exoplatform.social.core.storage.impl.IdentityStorageImplorg.exoplatform.social.core.storage.IdentityStorageExceptionpublic List<org.exoplatform.social.core.identity.model.Identity> getSpaceMemberIdentitiesByProfileFilter(org.exoplatform.social.core.space.model.Space space, org.exoplatform.social.core.profile.ProfileFilter profileFilter, org.exoplatform.social.core.identity.SpaceMemberFilterListAccess.Type type, long offset, long limit) throws org.exoplatform.social.core.storage.IdentityStorageException
getSpaceMemberIdentitiesByProfileFilter in interface org.exoplatform.social.core.storage.api.IdentityStoragegetSpaceMemberIdentitiesByProfileFilter in class org.exoplatform.social.core.storage.impl.IdentityStorageImplorg.exoplatform.social.core.storage.IdentityStorageExceptionpublic List<org.exoplatform.social.core.identity.model.Identity> getIdentitiesByProfileFilter(String providerId, org.exoplatform.social.core.profile.ProfileFilter profileFilter, long offset, long limit, boolean forceLoadOrReloadProfile) throws org.exoplatform.social.core.storage.IdentityStorageException
getIdentitiesByProfileFilter in interface org.exoplatform.social.core.storage.api.IdentityStoragegetIdentitiesByProfileFilter in class org.exoplatform.social.core.storage.impl.IdentityStorageImplorg.exoplatform.social.core.storage.IdentityStorageExceptionpublic org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.identity.model.Identity> findByFilter(ExtendProfileFilter filter)
public void removeIdentity(org.exoplatform.social.core.identity.model.Identity identity)
identity - the IdentityCopyright © 2003–2016 eXo Platform SAS. All rights reserved.