public class MigrationIdentityStorage extends Object implements org.exoplatform.social.core.storage.api.IdentityStorage
| Constructor and Description |
|---|
MigrationIdentityStorage(org.exoplatform.social.core.storage.impl.IdentityStorageImpl jcrStorage,
RDBMSIdentityStorageImpl jpaStorage,
IdentityMigrationService migrationService) |
| Modifier and Type | Method and Description |
|---|---|
void |
addOrModifyProfileProperties(org.exoplatform.social.core.identity.model.Profile profile) |
void |
deleteIdentity(org.exoplatform.social.core.identity.model.Identity identity) |
org.exoplatform.social.core.identity.model.Identity |
findIdentity(String providerId,
String remoteId) |
org.exoplatform.social.core.identity.model.Identity |
findIdentityById(String nodeId) |
Set<String> |
getActiveUsers(org.exoplatform.social.core.identity.model.ActiveIdentityFilter filter) |
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) |
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) |
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) |
void |
hardDeleteIdentity(org.exoplatform.social.core.identity.model.Identity identity) |
org.exoplatform.social.core.identity.model.Profile |
loadProfile(org.exoplatform.social.core.identity.model.Profile profile) |
void |
processEnabledIdentity(org.exoplatform.social.core.identity.model.Identity identity,
boolean isEnable) |
void |
saveIdentity(org.exoplatform.social.core.identity.model.Identity identity) |
void |
saveProfile(org.exoplatform.social.core.identity.model.Profile profile) |
org.exoplatform.social.core.identity.model.Identity |
updateIdentity(org.exoplatform.social.core.identity.model.Identity identity) |
void |
updateIdentityMembership(String remoteId) |
void |
updateProfile(org.exoplatform.social.core.identity.model.Profile profile) |
void |
updateProfileActivityId(org.exoplatform.social.core.identity.model.Identity identity,
String activityId,
org.exoplatform.social.core.identity.model.Profile.AttachedActivityType type) |
public MigrationIdentityStorage(org.exoplatform.social.core.storage.impl.IdentityStorageImpl jcrStorage,
RDBMSIdentityStorageImpl jpaStorage,
IdentityMigrationService migrationService)
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.IdentityStorageorg.exoplatform.social.core.storage.IdentityStorageExceptionpublic 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.IdentityStorageorg.exoplatform.social.core.storage.IdentityStorageExceptionpublic void updateIdentityMembership(String remoteId) throws org.exoplatform.social.core.storage.IdentityStorageException
updateIdentityMembership in interface org.exoplatform.social.core.storage.api.IdentityStorageorg.exoplatform.social.core.storage.IdentityStorageExceptionpublic 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.IdentityStorageorg.exoplatform.social.core.storage.IdentityStorageExceptionpublic 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.IdentityStorageorg.exoplatform.social.core.storage.IdentityStorageExceptionpublic 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.IdentityStorageorg.exoplatform.social.core.storage.IdentityStorageExceptionpublic 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.IdentityStorageorg.exoplatform.social.core.storage.IdentityStorageExceptionpublic 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.IdentityStorageorg.exoplatform.social.core.storage.IdentityStorageExceptionpublic 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.IdentityStorageorg.exoplatform.social.core.storage.IdentityStorageExceptionpublic 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.IdentityStorageorg.exoplatform.social.core.storage.IdentityStorageExceptionpublic int getIdentitiesCount(String providerId) throws org.exoplatform.social.core.storage.IdentityStorageException
getIdentitiesCount in interface org.exoplatform.social.core.storage.api.IdentityStorageorg.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.IdentityStorageorg.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.IdentityStorageorg.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.IdentityStorageorg.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.IdentityStorageorg.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.IdentityStorageorg.exoplatform.social.core.storage.IdentityStorageExceptionpublic 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.IdentityStorageorg.exoplatform.social.core.storage.IdentityStorageExceptionpublic String getType(String nodetype, String property)
getType in interface org.exoplatform.social.core.storage.api.IdentityStoragepublic 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.IdentityStorageorg.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.IdentityStorageorg.exoplatform.social.core.storage.IdentityStorageExceptionpublic 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.IdentityStoragepublic 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.IdentityStoragepublic Set<String> getActiveUsers(org.exoplatform.social.core.identity.model.ActiveIdentityFilter filter)
getActiveUsers in interface org.exoplatform.social.core.storage.api.IdentityStoragepublic void processEnabledIdentity(org.exoplatform.social.core.identity.model.Identity identity,
boolean isEnable)
processEnabledIdentity in interface org.exoplatform.social.core.storage.api.IdentityStorageCopyright © 2003–2016 eXo Platform SAS. All rights reserved.