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

public class CachedSpaceStorage extends RDBMSSpaceStorageImpl
Version:
$Revision$
Author:
Alain Defrance
  • Constructor Details

  • Method Details

    • getCachedActivityStorage

      public CachedActivityStorage getCachedActivityStorage()
    • getCachedIdentityStorage

      public CachedIdentityStorage 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:
      getSpaceByDisplayName in interface org.exoplatform.social.core.storage.api.SpaceStorage
      Overrides:
      getSpaceByDisplayName in class RDBMSSpaceStorageImpl
      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:
      saveSpace in interface org.exoplatform.social.core.storage.api.SpaceStorage
      Overrides:
      saveSpace in class RDBMSSpaceStorageImpl
      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:
      renameSpace in interface org.exoplatform.social.core.storage.api.SpaceStorage
      Overrides:
      renameSpace in class RDBMSSpaceStorageImpl
      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:
      renameSpace in interface org.exoplatform.social.core.storage.api.SpaceStorage
      Overrides:
      renameSpace in class RDBMSSpaceStorageImpl
      Throws:
      org.exoplatform.social.core.storage.SpaceStorageException
    • deleteSpace

      public void deleteSpace(String id) throws org.exoplatform.social.core.storage.SpaceStorageException
      Specified by:
      deleteSpace in interface org.exoplatform.social.core.storage.api.SpaceStorage
      Overrides:
      deleteSpace in class RDBMSSpaceStorageImpl
      Throws:
      org.exoplatform.social.core.storage.SpaceStorageException
    • ignoreSpace

      public void ignoreSpace(String spaceId, String userId)
      Specified by:
      ignoreSpace in interface org.exoplatform.social.core.storage.api.SpaceStorage
      Overrides:
      ignoreSpace in class RDBMSSpaceStorageImpl
    • isSpaceIgnored

      public boolean isSpaceIgnored(String spaceId, String userId)
      Specified by:
      isSpaceIgnored in interface org.exoplatform.social.core.storage.api.SpaceStorage
      Overrides:
      isSpaceIgnored in class RDBMSSpaceStorageImpl
    • 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:
      getManagerSpacesByFilter in interface org.exoplatform.social.core.storage.api.SpaceStorage
      Overrides:
      getManagerSpacesByFilter in class RDBMSSpaceStorageImpl
    • getManagerSpacesByFilterCount

      public int getManagerSpacesByFilterCount(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter)
      Specified by:
      getManagerSpacesByFilterCount in interface org.exoplatform.social.core.storage.api.SpaceStorage
      Overrides:
      getManagerSpacesByFilterCount in class RDBMSSpaceStorageImpl
    • getMemberSpacesByFilterCount

      public int getMemberSpacesByFilterCount(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter)
      Specified by:
      getMemberSpacesByFilterCount in interface org.exoplatform.social.core.storage.api.SpaceStorage
      Overrides:
      getMemberSpacesByFilterCount in class RDBMSSpaceStorageImpl
    • 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:
      getMemberSpacesByFilter in interface org.exoplatform.social.core.storage.api.SpaceStorage
      Overrides:
      getMemberSpacesByFilter in class RDBMSSpaceStorageImpl
    • getPendingSpacesByFilterCount

      public int getPendingSpacesByFilterCount(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter)
      Specified by:
      getPendingSpacesByFilterCount in interface org.exoplatform.social.core.storage.api.SpaceStorage
      Overrides:
      getPendingSpacesByFilterCount in class RDBMSSpaceStorageImpl
    • 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:
      getPendingSpacesByFilter in interface org.exoplatform.social.core.storage.api.SpaceStorage
      Overrides:
      getPendingSpacesByFilter in class RDBMSSpaceStorageImpl
    • getInvitedSpacesByFilterCount

      public int getInvitedSpacesByFilterCount(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter)
      Specified by:
      getInvitedSpacesByFilterCount in interface org.exoplatform.social.core.storage.api.SpaceStorage
      Overrides:
      getInvitedSpacesByFilterCount in class RDBMSSpaceStorageImpl
    • 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:
      getInvitedSpacesByFilter in interface org.exoplatform.social.core.storage.api.SpaceStorage
      Overrides:
      getInvitedSpacesByFilter in class RDBMSSpaceStorageImpl
    • getPublicSpacesByFilterCount

      public int getPublicSpacesByFilterCount(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter)
      Specified by:
      getPublicSpacesByFilterCount in interface org.exoplatform.social.core.storage.api.SpaceStorage
      Overrides:
      getPublicSpacesByFilterCount in class RDBMSSpaceStorageImpl
    • getAccessibleSpacesByFilterCount

      public int getAccessibleSpacesByFilterCount(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter)
      Specified by:
      getAccessibleSpacesByFilterCount in interface org.exoplatform.social.core.storage.api.SpaceStorage
      Overrides:
      getAccessibleSpacesByFilterCount in class RDBMSSpaceStorageImpl
    • getVisibleSpacesCount

      public int getVisibleSpacesCount(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter) throws org.exoplatform.social.core.storage.SpaceStorageException
      Specified by:
      getVisibleSpacesCount in interface org.exoplatform.social.core.storage.api.SpaceStorage
      Overrides:
      getVisibleSpacesCount in class RDBMSSpaceStorageImpl
      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:
      getUnifiedSearchSpacesCount in interface org.exoplatform.social.core.storage.api.SpaceStorage
      Overrides:
      getUnifiedSearchSpacesCount in class RDBMSSpaceStorageImpl
      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:
      getAccessibleSpacesByFilter in interface org.exoplatform.social.core.storage.api.SpaceStorage
      Overrides:
      getAccessibleSpacesByFilter in class RDBMSSpaceStorageImpl
    • getEditableSpacesByFilterCount

      public int getEditableSpacesByFilterCount(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter)
      Specified by:
      getEditableSpacesByFilterCount in interface org.exoplatform.social.core.storage.api.SpaceStorage
      Overrides:
      getEditableSpacesByFilterCount in class RDBMSSpaceStorageImpl
    • 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:
      getEditableSpacesByFilter in interface org.exoplatform.social.core.storage.api.SpaceStorage
      Overrides:
      getEditableSpacesByFilter in class RDBMSSpaceStorageImpl
    • getAllSpacesByFilterCount

      public int getAllSpacesByFilterCount(org.exoplatform.social.core.space.SpaceFilter spaceFilter)
      Specified by:
      getAllSpacesByFilterCount in interface org.exoplatform.social.core.storage.api.SpaceStorage
      Overrides:
      getAllSpacesByFilterCount in class RDBMSSpaceStorageImpl
    • getSpacesByFilter

      public List<org.exoplatform.social.core.space.model.Space> getSpacesByFilter(org.exoplatform.social.core.space.SpaceFilter spaceFilter, long offset, long limit)
      Specified by:
      getSpacesByFilter in interface org.exoplatform.social.core.storage.api.SpaceStorage
      Overrides:
      getSpacesByFilter in class RDBMSSpaceStorageImpl
    • getSpaceById

      public org.exoplatform.social.core.space.model.Space getSpaceById(String id) throws org.exoplatform.social.core.storage.SpaceStorageException
      Specified by:
      getSpaceById in interface org.exoplatform.social.core.storage.api.SpaceStorage
      Overrides:
      getSpaceById in class RDBMSSpaceStorageImpl
      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:
      getSpaceSimpleById in interface org.exoplatform.social.core.storage.api.SpaceStorage
      Overrides:
      getSpaceSimpleById in class RDBMSSpaceStorageImpl
      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:
      getSpaceByPrettyName in interface org.exoplatform.social.core.storage.api.SpaceStorage
      Overrides:
      getSpaceByPrettyName in class RDBMSSpaceStorageImpl
      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:
      getSpaceByGroupId in interface org.exoplatform.social.core.storage.api.SpaceStorage
      Overrides:
      getSpaceByGroupId in class RDBMSSpaceStorageImpl
      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:
      getSpaceByUrl in interface org.exoplatform.social.core.storage.api.SpaceStorage
      Overrides:
      getSpaceByUrl in class RDBMSSpaceStorageImpl
      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:
      updateSpaceAccessed in interface org.exoplatform.social.core.storage.api.SpaceStorage
      Overrides:
      updateSpaceAccessed in class RDBMSSpaceStorageImpl
      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:
      getLastAccessedSpace in interface org.exoplatform.social.core.storage.api.SpaceStorage
      Overrides:
      getLastAccessedSpace in class RDBMSSpaceStorageImpl
      Throws:
      org.exoplatform.social.core.storage.SpaceStorageException
    • getLastSpaces

      public List<org.exoplatform.social.core.space.model.Space> getLastSpaces(int limit)
      Specified by:
      getLastSpaces in interface org.exoplatform.social.core.storage.api.SpaceStorage
      Overrides:
      getLastSpaces in class RDBMSSpaceStorageImpl
    • getNumberOfMemberPublicSpaces

      public int getNumberOfMemberPublicSpaces(String userId)
      Specified by:
      getNumberOfMemberPublicSpaces in interface org.exoplatform.social.core.storage.api.SpaceStorage
      Overrides:
      getNumberOfMemberPublicSpaces in class RDBMSSpaceStorageImpl
    • 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:
      getVisitedSpaces in interface org.exoplatform.social.core.storage.api.SpaceStorage
      Overrides:
      getVisitedSpaces in class RDBMSSpaceStorageImpl
      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:
      getMemberRoleSpaceIdentityIds in interface org.exoplatform.social.core.storage.api.SpaceStorage
      Overrides:
      getMemberRoleSpaceIdentityIds in class RDBMSSpaceStorageImpl
      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:
      getMemberRoleSpaceIds in interface org.exoplatform.social.core.storage.api.SpaceStorage
      Overrides:
      getMemberRoleSpaceIds in class RDBMSSpaceStorageImpl
      Throws:
      org.exoplatform.social.core.storage.SpaceStorageException
    • clearSpaceCached

      public void clearSpaceCached(String spaceId)
    • clearCaches

      public void clearCaches()