Class CacheSiteStorage

java.lang.Object
org.exoplatform.portal.mop.storage.SiteStorageImpl
org.exoplatform.portal.mop.storage.cache.CacheSiteStorage
All Implemented Interfaces:
org.exoplatform.portal.mop.storage.SiteStorage

public class CacheSiteStorage extends SiteStorageImpl
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    CacheSiteStorage(org.exoplatform.services.cache.CacheService cacheService, org.exoplatform.commons.api.settings.SettingService settingService, org.exoplatform.container.configuration.ConfigurationManager configurationManager, org.exoplatform.portal.mop.storage.NavigationStorage navigationStorage, org.exoplatform.portal.mop.storage.PageStorage pageStorage, LayoutStorage layoutStorage, SiteDAO siteDAO, org.exoplatform.upload.UploadService uploadService, org.exoplatform.commons.file.services.FileService fileService)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    create(org.exoplatform.portal.pom.data.PortalData config)
     
    org.exoplatform.portal.pom.data.PortalData
    getPortalConfig(long siteId)
     
    org.exoplatform.portal.pom.data.PortalData
    getPortalConfig(org.exoplatform.portal.mop.SiteKey key)
     
    List<org.exoplatform.portal.mop.SiteKey>
    getSitesKeys(org.exoplatform.portal.mop.SiteFilter siteFilter)
     
    void
    remove(org.exoplatform.portal.mop.SiteKey siteKey)
    Removes the site layout, pages, navigation and row in one transaction, so that a concurrent reader never reads a site whose layout containers are already deleted.
    void
    save(org.exoplatform.portal.pom.data.PortalData config)
    Replaces the site layout and its attributes in one transaction, so that a concurrent reader never reads a site whose layout containers are deleted while its new ones aren't committed yet.

    Methods inherited from class org.exoplatform.portal.mop.storage.SiteStorageImpl

    create, getImportStatus, getPortalConfig, getPortalConfig, getSharedLayout, getSiteNames, remove, remove, save, saveImportStatus

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • CacheSiteStorage

      public CacheSiteStorage(org.exoplatform.services.cache.CacheService cacheService, org.exoplatform.commons.api.settings.SettingService settingService, org.exoplatform.container.configuration.ConfigurationManager configurationManager, org.exoplatform.portal.mop.storage.NavigationStorage navigationStorage, org.exoplatform.portal.mop.storage.PageStorage pageStorage, LayoutStorage layoutStorage, SiteDAO siteDAO, org.exoplatform.upload.UploadService uploadService, org.exoplatform.commons.file.services.FileService fileService)
  • Method Details

    • create

      public void create(org.exoplatform.portal.pom.data.PortalData config)
      Specified by:
      create in interface org.exoplatform.portal.mop.storage.SiteStorage
      Overrides:
      create in class SiteStorageImpl
    • save

      public void save(org.exoplatform.portal.pom.data.PortalData config)
      Description copied from class: SiteStorageImpl
      Replaces the site layout and its attributes in one transaction, so that a concurrent reader never reads a site whose layout containers are deleted while its new ones aren't committed yet. The layout replaced is the one of the site row as stored, not as the current persistence context may hold it since an earlier read of the same request.
      Specified by:
      save in interface org.exoplatform.portal.mop.storage.SiteStorage
      Overrides:
      save in class SiteStorageImpl
    • remove

      public void remove(org.exoplatform.portal.mop.SiteKey siteKey)
      Description copied from class: SiteStorageImpl
      Removes the site layout, pages, navigation and row in one transaction, so that a concurrent reader never reads a site whose layout containers are already deleted. The layout removed is the one of the site row as stored, not as the current persistence context may hold it since an earlier read of the same request.
      Specified by:
      remove in interface org.exoplatform.portal.mop.storage.SiteStorage
      Overrides:
      remove in class SiteStorageImpl
    • getPortalConfig

      public org.exoplatform.portal.pom.data.PortalData getPortalConfig(org.exoplatform.portal.mop.SiteKey key)
      Specified by:
      getPortalConfig in interface org.exoplatform.portal.mop.storage.SiteStorage
      Overrides:
      getPortalConfig in class SiteStorageImpl
    • getPortalConfig

      public org.exoplatform.portal.pom.data.PortalData getPortalConfig(long siteId)
      Specified by:
      getPortalConfig in interface org.exoplatform.portal.mop.storage.SiteStorage
      Overrides:
      getPortalConfig in class SiteStorageImpl
    • getSitesKeys

      public List<org.exoplatform.portal.mop.SiteKey> getSitesKeys(org.exoplatform.portal.mop.SiteFilter siteFilter)
      Specified by:
      getSitesKeys in interface org.exoplatform.portal.mop.storage.SiteStorage
      Overrides:
      getSitesKeys in class SiteStorageImpl