Class SiteStorageImpl

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

public class SiteStorageImpl extends Object implements org.exoplatform.portal.mop.storage.SiteStorage
  • Constructor Summary

    Constructors
    Constructor
    Description
    SiteStorageImpl(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.config.model.PortalConfig config)
     
    void
    create(org.exoplatform.portal.pom.data.PortalData config)
     
    org.exoplatform.portal.mop.importer.Status
     
    org.exoplatform.portal.pom.data.PortalData
    getPortalConfig(long siteId)
     
    org.exoplatform.portal.config.model.PortalConfig
    getPortalConfig(String ownerType, String portalName)
     
    org.exoplatform.portal.pom.data.PortalData
    getPortalConfig(org.exoplatform.portal.mop.SiteKey siteKey)
     
    org.exoplatform.portal.pom.data.PortalData
    getPortalConfig(org.exoplatform.portal.pom.data.PortalKey key)
     
    org.exoplatform.portal.config.model.Container
     
    getSiteNames(org.exoplatform.portal.mop.SiteType siteType, int offset, int limit)
     
    List<org.exoplatform.portal.mop.SiteKey>
    getSitesKeys(org.exoplatform.portal.mop.SiteFilter siteFilter)
     
    void
    remove(org.exoplatform.portal.config.model.PortalConfig config)
     
    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
    remove(org.exoplatform.portal.pom.data.PortalData config)
     
    void
    save(org.exoplatform.portal.config.model.PortalConfig config)
     
    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.
    void
    saveImportStatus(org.exoplatform.portal.mop.importer.Status status)
     

    Methods inherited from class java.lang.Object

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

    • SiteStorageImpl

      public SiteStorageImpl(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.config.model.PortalConfig config)
      Specified by:
      create in interface org.exoplatform.portal.mop.storage.SiteStorage
    • create

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

      public void save(org.exoplatform.portal.config.model.PortalConfig config)
      Specified by:
      save in interface org.exoplatform.portal.mop.storage.SiteStorage
    • save

      public 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. 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
    • remove

      public void remove(org.exoplatform.portal.config.model.PortalConfig config)
      Specified by:
      remove in interface org.exoplatform.portal.mop.storage.SiteStorage
    • remove

      public void remove(org.exoplatform.portal.pom.data.PortalData config)
      Specified by:
      remove in interface org.exoplatform.portal.mop.storage.SiteStorage
    • remove

      public 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. 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
    • getPortalConfig

      public org.exoplatform.portal.config.model.PortalConfig getPortalConfig(String ownerType, String portalName)
      Specified by:
      getPortalConfig in interface org.exoplatform.portal.mop.storage.SiteStorage
    • getPortalConfig

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

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

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

      public List<String> getSiteNames(org.exoplatform.portal.mop.SiteType siteType, int offset, int limit)
      Specified by:
      getSiteNames in interface org.exoplatform.portal.mop.storage.SiteStorage
    • getImportStatus

      public org.exoplatform.portal.mop.importer.Status getImportStatus()
      Specified by:
      getImportStatus in interface org.exoplatform.portal.mop.storage.SiteStorage
    • saveImportStatus

      public void saveImportStatus(org.exoplatform.portal.mop.importer.Status status)
      Specified by:
      saveImportStatus in interface org.exoplatform.portal.mop.storage.SiteStorage
    • getSharedLayout

      public org.exoplatform.portal.config.model.Container getSharedLayout(String siteName)
      Specified by:
      getSharedLayout in interface org.exoplatform.portal.mop.storage.SiteStorage
    • 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