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
ConstructorsConstructorDescriptionSiteStorageImpl(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 TypeMethodDescriptionvoidcreate(org.exoplatform.portal.config.model.PortalConfig config) voidcreate(org.exoplatform.portal.pom.data.PortalData config) org.exoplatform.portal.mop.importer.Statusorg.exoplatform.portal.pom.data.PortalDatagetPortalConfig(long siteId) org.exoplatform.portal.config.model.PortalConfiggetPortalConfig(String ownerType, String portalName) org.exoplatform.portal.pom.data.PortalDatagetPortalConfig(org.exoplatform.portal.mop.SiteKey siteKey) org.exoplatform.portal.pom.data.PortalDatagetPortalConfig(org.exoplatform.portal.pom.data.PortalKey key) org.exoplatform.portal.config.model.ContainergetSharedLayout(String siteName) getSiteNames(org.exoplatform.portal.mop.SiteType siteType, int offset, int limit) List<org.exoplatform.portal.mop.SiteKey> getSitesKeys(org.exoplatform.portal.mop.SiteFilter siteFilter) voidremove(org.exoplatform.portal.config.model.PortalConfig config) voidremove(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.voidremove(org.exoplatform.portal.pom.data.PortalData config) voidsave(org.exoplatform.portal.config.model.PortalConfig config) voidsave(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.voidsaveImportStatus(org.exoplatform.portal.mop.importer.Status status)
-
Constructor Details
-
Method Details
-
create
public void create(org.exoplatform.portal.config.model.PortalConfig config) - Specified by:
createin interfaceorg.exoplatform.portal.mop.storage.SiteStorage
-
create
public void create(org.exoplatform.portal.pom.data.PortalData config) - Specified by:
createin interfaceorg.exoplatform.portal.mop.storage.SiteStorage
-
save
public void save(org.exoplatform.portal.config.model.PortalConfig config) - Specified by:
savein interfaceorg.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:
savein interfaceorg.exoplatform.portal.mop.storage.SiteStorage
-
remove
public void remove(org.exoplatform.portal.config.model.PortalConfig config) - Specified by:
removein interfaceorg.exoplatform.portal.mop.storage.SiteStorage
-
remove
public void remove(org.exoplatform.portal.pom.data.PortalData config) - Specified by:
removein interfaceorg.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:
removein interfaceorg.exoplatform.portal.mop.storage.SiteStorage
-
getPortalConfig
public org.exoplatform.portal.config.model.PortalConfig getPortalConfig(String ownerType, String portalName) - Specified by:
getPortalConfigin interfaceorg.exoplatform.portal.mop.storage.SiteStorage
-
getPortalConfig
public org.exoplatform.portal.pom.data.PortalData getPortalConfig(org.exoplatform.portal.pom.data.PortalKey key) - Specified by:
getPortalConfigin interfaceorg.exoplatform.portal.mop.storage.SiteStorage
-
getPortalConfig
public org.exoplatform.portal.pom.data.PortalData getPortalConfig(org.exoplatform.portal.mop.SiteKey siteKey) - Specified by:
getPortalConfigin interfaceorg.exoplatform.portal.mop.storage.SiteStorage
-
getPortalConfig
public org.exoplatform.portal.pom.data.PortalData getPortalConfig(long siteId) - Specified by:
getPortalConfigin interfaceorg.exoplatform.portal.mop.storage.SiteStorage
-
getSiteNames
public List<String> getSiteNames(org.exoplatform.portal.mop.SiteType siteType, int offset, int limit) - Specified by:
getSiteNamesin interfaceorg.exoplatform.portal.mop.storage.SiteStorage
-
getImportStatus
public org.exoplatform.portal.mop.importer.Status getImportStatus()- Specified by:
getImportStatusin interfaceorg.exoplatform.portal.mop.storage.SiteStorage
-
saveImportStatus
public void saveImportStatus(org.exoplatform.portal.mop.importer.Status status) - Specified by:
saveImportStatusin interfaceorg.exoplatform.portal.mop.storage.SiteStorage
-
getSitesKeys
public List<org.exoplatform.portal.mop.SiteKey> getSitesKeys(org.exoplatform.portal.mop.SiteFilter siteFilter) - Specified by:
getSitesKeysin interfaceorg.exoplatform.portal.mop.storage.SiteStorage
-