Class CachedSpaceStorage
java.lang.Object
org.exoplatform.social.core.jpa.storage.RDBMSSpaceStorageImpl
org.exoplatform.social.core.storage.cache.CachedSpaceStorage
- All Implemented Interfaces:
org.exoplatform.social.core.storage.api.SpaceStorage
- Version:
- $Revision$
- Author:
- Alain Defrance
-
Constructor Summary
ConstructorsConstructorDescriptionCachedSpaceStorage(SpaceDAO spaceDAO, SpaceMemberDAO spaceMemberDAO, org.exoplatform.social.core.storage.api.IdentityStorage identityStorage, IdentityDAO identityDAO, ActivityDAO activityDAO, SpaceExternalInvitationDAO spaceExternalInvitationDAO, SocialStorageCacheService cacheService, org.exoplatform.social.metadata.favorite.FavoriteService favoriteService) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclearSpaceCached(String spaceId) voiddeleteSpace(String id) List<org.exoplatform.social.core.space.model.Space> getAccessibleSpacesByFilter(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter, long offset, long limit) intgetAccessibleSpacesByFilterCount(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter) intgetAllSpacesByFilterCount(org.exoplatform.social.core.space.SpaceFilter spaceFilter) Get cached identity storage.List<org.exoplatform.social.core.space.model.Space> getEditableSpacesByFilter(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter, long offset, long limit) intgetEditableSpacesByFilterCount(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter) List<org.exoplatform.social.core.space.model.Space> getInvitedSpacesByFilter(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter, long offset, long limit) intgetInvitedSpacesByFilterCount(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter) List<org.exoplatform.social.core.space.model.Space> getLastAccessedSpace(org.exoplatform.social.core.space.SpaceFilter filter, int offset, int limit) List<org.exoplatform.social.core.space.model.Space> getLastSpaces(int limit) List<org.exoplatform.social.core.space.model.Space> getManagerSpacesByFilter(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter, long offset, long limit) intgetManagerSpacesByFilterCount(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter) getMemberRoleSpaceIdentityIds(String identityId, int offset, int limit) getMemberRoleSpaceIds(String identityId, int offset, int limit) List<org.exoplatform.social.core.space.model.Space> getMemberSpacesByFilter(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter, long offset, long limit) intgetMemberSpacesByFilterCount(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter) intgetNumberOfMemberPublicSpaces(String userId) List<org.exoplatform.social.core.space.model.Space> getPendingSpacesByFilter(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter, long offset, long limit) intgetPendingSpacesByFilterCount(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter) intgetPublicSpacesByFilterCount(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter) org.exoplatform.social.core.space.model.SpacegetSpaceByDisplayName(String spaceDisplayName) org.exoplatform.social.core.space.model.SpacegetSpaceByGroupId(String groupId) org.exoplatform.social.core.space.model.SpacegetSpaceById(String id) org.exoplatform.social.core.space.model.SpacegetSpaceByPrettyName(String spacePrettyName) org.exoplatform.social.core.space.model.SpacegetSpaceByUrl(String url) List<org.exoplatform.social.core.space.model.Space> getSpacesByFilter(org.exoplatform.social.core.space.SpaceFilter spaceFilter, long offset, long limit) org.exoplatform.social.core.space.model.SpaceintgetUnifiedSearchSpacesCount(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter) intgetVisibleSpacesCount(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter) List<org.exoplatform.social.core.space.model.Space> getVisitedSpaces(org.exoplatform.social.core.space.SpaceFilter filter, int offset, int limit) voidignoreSpace(String spaceId, String userId) booleanisSpaceIgnored(String spaceId, String userId) voidrenameSpace(String remoteId, org.exoplatform.social.core.space.model.Space space, String newDisplayName) voidrenameSpace(org.exoplatform.social.core.space.model.Space space, String newDisplayName) voidsaveSpace(org.exoplatform.social.core.space.model.Space space, boolean isNew) voidupdateSpaceAccessed(String remoteId, org.exoplatform.social.core.space.model.Space space) Methods inherited from class org.exoplatform.social.core.jpa.storage.RDBMSSpaceStorageImpl
countCommonSpaces, countExternalMembers, countPendingSpaceRequestsToManage, deleteExternalUserInvitations, deleteSpaceExternalInvitation, findExternalInvitationsSpacesByEmail, findSpaceExternalInvitationById, findSpaceExternalInvitationsBySpaceId, getAccessibleSpaces, getAccessibleSpaces, getAccessibleSpacesCount, getAllSpaces, getAllSpacesCount, getCommonSpaces, getEditableSpaces, getEditableSpaces, getEditableSpacesCount, getFavoriteSpaceIdentityIds, getFavoriteSpacesByFilter, getFavoriteSpacesByFilterCount, getInvitedSpaces, getInvitedSpaces, getInvitedSpacesCount, getLastAccessedSpaceCount, getManagerRoleSpaceIds, getManagerSpaces, getManagerSpacesCount, getMemberSpaces, getMemberSpaces, getMemberSpacesCount, getPendingSpaceRequestsToManage, getPendingSpaces, getPendingSpaces, getPendingSpacesCount, getPublicSpaces, getPublicSpaces, getPublicSpacesByFilter, getPublicSpacesCount, getSpaceIdentityIdsByUserRole, getSpaces, getUnifiedSearchSpaces, getVisibleSpaces, getVisibleSpaces, saveSpaceExternalInvitation, setIdentityStorageMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.exoplatform.social.core.storage.api.SpaceStorage
getMemberSpaceIds
-
Constructor Details
-
CachedSpaceStorage
public CachedSpaceStorage(SpaceDAO spaceDAO, SpaceMemberDAO spaceMemberDAO, org.exoplatform.social.core.storage.api.IdentityStorage identityStorage, IdentityDAO identityDAO, ActivityDAO activityDAO, SpaceExternalInvitationDAO spaceExternalInvitationDAO, SocialStorageCacheService cacheService, org.exoplatform.social.metadata.favorite.FavoriteService favoriteService)
-
-
Method Details
-
getCachedActivityStorage
-
getCachedIdentityStorage
Get cached identity storage.- Returns:
- Since:
- 1.2.8
-
getSpaceByDisplayName
public org.exoplatform.social.core.space.model.Space getSpaceByDisplayName(String spaceDisplayName) throws org.exoplatform.social.core.storage.SpaceStorageException - Specified by:
getSpaceByDisplayNamein interfaceorg.exoplatform.social.core.storage.api.SpaceStorage- Overrides:
getSpaceByDisplayNamein classRDBMSSpaceStorageImpl- Throws:
org.exoplatform.social.core.storage.SpaceStorageException
-
saveSpace
public void saveSpace(org.exoplatform.social.core.space.model.Space space, boolean isNew) throws org.exoplatform.social.core.storage.SpaceStorageException - Specified by:
saveSpacein interfaceorg.exoplatform.social.core.storage.api.SpaceStorage- Overrides:
saveSpacein classRDBMSSpaceStorageImpl- Throws:
org.exoplatform.social.core.storage.SpaceStorageException
-
renameSpace
public void renameSpace(org.exoplatform.social.core.space.model.Space space, String newDisplayName) throws org.exoplatform.social.core.storage.SpaceStorageException - Specified by:
renameSpacein interfaceorg.exoplatform.social.core.storage.api.SpaceStorage- Overrides:
renameSpacein classRDBMSSpaceStorageImpl- Throws:
org.exoplatform.social.core.storage.SpaceStorageException
-
renameSpace
public void renameSpace(String remoteId, org.exoplatform.social.core.space.model.Space space, String newDisplayName) throws org.exoplatform.social.core.storage.SpaceStorageException - Specified by:
renameSpacein interfaceorg.exoplatform.social.core.storage.api.SpaceStorage- Overrides:
renameSpacein classRDBMSSpaceStorageImpl- Throws:
org.exoplatform.social.core.storage.SpaceStorageException
-
deleteSpace
- Specified by:
deleteSpacein interfaceorg.exoplatform.social.core.storage.api.SpaceStorage- Overrides:
deleteSpacein classRDBMSSpaceStorageImpl- Throws:
org.exoplatform.social.core.storage.SpaceStorageException
-
ignoreSpace
- Specified by:
ignoreSpacein interfaceorg.exoplatform.social.core.storage.api.SpaceStorage- Overrides:
ignoreSpacein classRDBMSSpaceStorageImpl
-
isSpaceIgnored
- Specified by:
isSpaceIgnoredin interfaceorg.exoplatform.social.core.storage.api.SpaceStorage- Overrides:
isSpaceIgnoredin classRDBMSSpaceStorageImpl
-
getManagerSpacesByFilter
public List<org.exoplatform.social.core.space.model.Space> getManagerSpacesByFilter(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter, long offset, long limit) - Specified by:
getManagerSpacesByFilterin interfaceorg.exoplatform.social.core.storage.api.SpaceStorage- Overrides:
getManagerSpacesByFilterin classRDBMSSpaceStorageImpl
-
getManagerSpacesByFilterCount
public int getManagerSpacesByFilterCount(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter) - Specified by:
getManagerSpacesByFilterCountin interfaceorg.exoplatform.social.core.storage.api.SpaceStorage- Overrides:
getManagerSpacesByFilterCountin classRDBMSSpaceStorageImpl
-
getMemberSpacesByFilterCount
public int getMemberSpacesByFilterCount(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter) - Specified by:
getMemberSpacesByFilterCountin interfaceorg.exoplatform.social.core.storage.api.SpaceStorage- Overrides:
getMemberSpacesByFilterCountin classRDBMSSpaceStorageImpl
-
getMemberSpacesByFilter
public List<org.exoplatform.social.core.space.model.Space> getMemberSpacesByFilter(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter, long offset, long limit) - Specified by:
getMemberSpacesByFilterin interfaceorg.exoplatform.social.core.storage.api.SpaceStorage- Overrides:
getMemberSpacesByFilterin classRDBMSSpaceStorageImpl
-
getPendingSpacesByFilterCount
public int getPendingSpacesByFilterCount(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter) - Specified by:
getPendingSpacesByFilterCountin interfaceorg.exoplatform.social.core.storage.api.SpaceStorage- Overrides:
getPendingSpacesByFilterCountin classRDBMSSpaceStorageImpl
-
getPendingSpacesByFilter
public List<org.exoplatform.social.core.space.model.Space> getPendingSpacesByFilter(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter, long offset, long limit) - Specified by:
getPendingSpacesByFilterin interfaceorg.exoplatform.social.core.storage.api.SpaceStorage- Overrides:
getPendingSpacesByFilterin classRDBMSSpaceStorageImpl
-
getInvitedSpacesByFilterCount
public int getInvitedSpacesByFilterCount(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter) - Specified by:
getInvitedSpacesByFilterCountin interfaceorg.exoplatform.social.core.storage.api.SpaceStorage- Overrides:
getInvitedSpacesByFilterCountin classRDBMSSpaceStorageImpl
-
getInvitedSpacesByFilter
public List<org.exoplatform.social.core.space.model.Space> getInvitedSpacesByFilter(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter, long offset, long limit) - Specified by:
getInvitedSpacesByFilterin interfaceorg.exoplatform.social.core.storage.api.SpaceStorage- Overrides:
getInvitedSpacesByFilterin classRDBMSSpaceStorageImpl
-
getPublicSpacesByFilterCount
public int getPublicSpacesByFilterCount(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter) - Specified by:
getPublicSpacesByFilterCountin interfaceorg.exoplatform.social.core.storage.api.SpaceStorage- Overrides:
getPublicSpacesByFilterCountin classRDBMSSpaceStorageImpl
-
getAccessibleSpacesByFilterCount
public int getAccessibleSpacesByFilterCount(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter) - Specified by:
getAccessibleSpacesByFilterCountin interfaceorg.exoplatform.social.core.storage.api.SpaceStorage- Overrides:
getAccessibleSpacesByFilterCountin classRDBMSSpaceStorageImpl
-
getVisibleSpacesCount
public int getVisibleSpacesCount(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter) throws org.exoplatform.social.core.storage.SpaceStorageException - Specified by:
getVisibleSpacesCountin interfaceorg.exoplatform.social.core.storage.api.SpaceStorage- Overrides:
getVisibleSpacesCountin classRDBMSSpaceStorageImpl- Throws:
org.exoplatform.social.core.storage.SpaceStorageException
-
getUnifiedSearchSpacesCount
public int getUnifiedSearchSpacesCount(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter) throws org.exoplatform.social.core.storage.SpaceStorageException - Specified by:
getUnifiedSearchSpacesCountin interfaceorg.exoplatform.social.core.storage.api.SpaceStorage- Overrides:
getUnifiedSearchSpacesCountin classRDBMSSpaceStorageImpl- Throws:
org.exoplatform.social.core.storage.SpaceStorageException
-
getAccessibleSpacesByFilter
public List<org.exoplatform.social.core.space.model.Space> getAccessibleSpacesByFilter(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter, long offset, long limit) - Specified by:
getAccessibleSpacesByFilterin interfaceorg.exoplatform.social.core.storage.api.SpaceStorage- Overrides:
getAccessibleSpacesByFilterin classRDBMSSpaceStorageImpl
-
getEditableSpacesByFilterCount
public int getEditableSpacesByFilterCount(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter) - Specified by:
getEditableSpacesByFilterCountin interfaceorg.exoplatform.social.core.storage.api.SpaceStorage- Overrides:
getEditableSpacesByFilterCountin classRDBMSSpaceStorageImpl
-
getEditableSpacesByFilter
public List<org.exoplatform.social.core.space.model.Space> getEditableSpacesByFilter(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter, long offset, long limit) - Specified by:
getEditableSpacesByFilterin interfaceorg.exoplatform.social.core.storage.api.SpaceStorage- Overrides:
getEditableSpacesByFilterin classRDBMSSpaceStorageImpl
-
getAllSpacesByFilterCount
public int getAllSpacesByFilterCount(org.exoplatform.social.core.space.SpaceFilter spaceFilter) - Specified by:
getAllSpacesByFilterCountin interfaceorg.exoplatform.social.core.storage.api.SpaceStorage- Overrides:
getAllSpacesByFilterCountin classRDBMSSpaceStorageImpl
-
getSpacesByFilter
public List<org.exoplatform.social.core.space.model.Space> getSpacesByFilter(org.exoplatform.social.core.space.SpaceFilter spaceFilter, long offset, long limit) - Specified by:
getSpacesByFilterin interfaceorg.exoplatform.social.core.storage.api.SpaceStorage- Overrides:
getSpacesByFilterin classRDBMSSpaceStorageImpl
-
getSpaceById
public org.exoplatform.social.core.space.model.Space getSpaceById(String id) throws org.exoplatform.social.core.storage.SpaceStorageException - Specified by:
getSpaceByIdin interfaceorg.exoplatform.social.core.storage.api.SpaceStorage- Overrides:
getSpaceByIdin classRDBMSSpaceStorageImpl- Throws:
org.exoplatform.social.core.storage.SpaceStorageException
-
getSpaceSimpleById
public org.exoplatform.social.core.space.model.Space getSpaceSimpleById(String id) throws org.exoplatform.social.core.storage.SpaceStorageException - Specified by:
getSpaceSimpleByIdin interfaceorg.exoplatform.social.core.storage.api.SpaceStorage- Overrides:
getSpaceSimpleByIdin classRDBMSSpaceStorageImpl- Throws:
org.exoplatform.social.core.storage.SpaceStorageException
-
getSpaceByPrettyName
public org.exoplatform.social.core.space.model.Space getSpaceByPrettyName(String spacePrettyName) throws org.exoplatform.social.core.storage.SpaceStorageException - Specified by:
getSpaceByPrettyNamein interfaceorg.exoplatform.social.core.storage.api.SpaceStorage- Overrides:
getSpaceByPrettyNamein classRDBMSSpaceStorageImpl- Throws:
org.exoplatform.social.core.storage.SpaceStorageException
-
getSpaceByGroupId
public org.exoplatform.social.core.space.model.Space getSpaceByGroupId(String groupId) throws org.exoplatform.social.core.storage.SpaceStorageException - Specified by:
getSpaceByGroupIdin interfaceorg.exoplatform.social.core.storage.api.SpaceStorage- Overrides:
getSpaceByGroupIdin classRDBMSSpaceStorageImpl- Throws:
org.exoplatform.social.core.storage.SpaceStorageException
-
getSpaceByUrl
public org.exoplatform.social.core.space.model.Space getSpaceByUrl(String url) throws org.exoplatform.social.core.storage.SpaceStorageException - Specified by:
getSpaceByUrlin interfaceorg.exoplatform.social.core.storage.api.SpaceStorage- Overrides:
getSpaceByUrlin classRDBMSSpaceStorageImpl- Throws:
org.exoplatform.social.core.storage.SpaceStorageException
-
updateSpaceAccessed
public void updateSpaceAccessed(String remoteId, org.exoplatform.social.core.space.model.Space space) throws org.exoplatform.social.core.storage.SpaceStorageException - Specified by:
updateSpaceAccessedin interfaceorg.exoplatform.social.core.storage.api.SpaceStorage- Overrides:
updateSpaceAccessedin classRDBMSSpaceStorageImpl- Throws:
org.exoplatform.social.core.storage.SpaceStorageException
-
getLastAccessedSpace
public List<org.exoplatform.social.core.space.model.Space> getLastAccessedSpace(org.exoplatform.social.core.space.SpaceFilter filter, int offset, int limit) throws org.exoplatform.social.core.storage.SpaceStorageException - Specified by:
getLastAccessedSpacein interfaceorg.exoplatform.social.core.storage.api.SpaceStorage- Overrides:
getLastAccessedSpacein classRDBMSSpaceStorageImpl- Throws:
org.exoplatform.social.core.storage.SpaceStorageException
-
getLastSpaces
- Specified by:
getLastSpacesin interfaceorg.exoplatform.social.core.storage.api.SpaceStorage- Overrides:
getLastSpacesin classRDBMSSpaceStorageImpl
-
getNumberOfMemberPublicSpaces
- Specified by:
getNumberOfMemberPublicSpacesin interfaceorg.exoplatform.social.core.storage.api.SpaceStorage- Overrides:
getNumberOfMemberPublicSpacesin classRDBMSSpaceStorageImpl
-
getVisitedSpaces
public List<org.exoplatform.social.core.space.model.Space> getVisitedSpaces(org.exoplatform.social.core.space.SpaceFilter filter, int offset, int limit) throws org.exoplatform.social.core.storage.SpaceStorageException - Specified by:
getVisitedSpacesin interfaceorg.exoplatform.social.core.storage.api.SpaceStorage- Overrides:
getVisitedSpacesin classRDBMSSpaceStorageImpl- Throws:
org.exoplatform.social.core.storage.SpaceStorageException
-
getMemberRoleSpaceIdentityIds
public List<String> getMemberRoleSpaceIdentityIds(String identityId, int offset, int limit) throws org.exoplatform.social.core.storage.SpaceStorageException - Specified by:
getMemberRoleSpaceIdentityIdsin interfaceorg.exoplatform.social.core.storage.api.SpaceStorage- Overrides:
getMemberRoleSpaceIdentityIdsin classRDBMSSpaceStorageImpl- Throws:
org.exoplatform.social.core.storage.SpaceStorageException
-
getMemberRoleSpaceIds
public List<String> getMemberRoleSpaceIds(String identityId, int offset, int limit) throws org.exoplatform.social.core.storage.SpaceStorageException - Specified by:
getMemberRoleSpaceIdsin interfaceorg.exoplatform.social.core.storage.api.SpaceStorage- Overrides:
getMemberRoleSpaceIdsin classRDBMSSpaceStorageImpl- Throws:
org.exoplatform.social.core.storage.SpaceStorageException
-
clearSpaceCached
-
clearCaches
public void clearCaches()
-