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
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCacheSiteStorage(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 TypeMethodDescriptionvoidcreate(org.exoplatform.portal.pom.data.PortalData config) org.exoplatform.portal.pom.data.PortalDatagetPortalConfig(long siteId) org.exoplatform.portal.pom.data.PortalDatagetPortalConfig(org.exoplatform.portal.mop.SiteKey key) List<org.exoplatform.portal.mop.SiteKey> getSitesKeys(org.exoplatform.portal.mop.SiteFilter siteFilter) 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.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.Methods inherited from class org.exoplatform.portal.mop.storage.SiteStorageImpl
create, getImportStatus, getPortalConfig, getPortalConfig, getSharedLayout, getSiteNames, remove, remove, save, saveImportStatus
-
Field Details
-
SITE_CACHE_NAME
- See Also:
-
SITE_KEYS_BY_FILTER_CACHE_NAME
- See Also:
-
SITE_KEY_BY_ID_CACHE_NAME
- See Also:
-
-
Constructor Details
-
Method Details
-
create
public void create(org.exoplatform.portal.pom.data.PortalData config) - Specified by:
createin interfaceorg.exoplatform.portal.mop.storage.SiteStorage- Overrides:
createin classSiteStorageImpl
-
save
public void save(org.exoplatform.portal.pom.data.PortalData config) Description copied from class:SiteStorageImplReplaces 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- Overrides:
savein classSiteStorageImpl
-
remove
public void remove(org.exoplatform.portal.mop.SiteKey siteKey) Description copied from class:SiteStorageImplRemoves 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- Overrides:
removein classSiteStorageImpl
-
getPortalConfig
public org.exoplatform.portal.pom.data.PortalData getPortalConfig(org.exoplatform.portal.mop.SiteKey key) - Specified by:
getPortalConfigin interfaceorg.exoplatform.portal.mop.storage.SiteStorage- Overrides:
getPortalConfigin classSiteStorageImpl
-
getPortalConfig
public org.exoplatform.portal.pom.data.PortalData getPortalConfig(long siteId) - Specified by:
getPortalConfigin interfaceorg.exoplatform.portal.mop.storage.SiteStorage- Overrides:
getPortalConfigin classSiteStorageImpl
-
getSitesKeys
public List<org.exoplatform.portal.mop.SiteKey> getSitesKeys(org.exoplatform.portal.mop.SiteFilter siteFilter) - Specified by:
getSitesKeysin interfaceorg.exoplatform.portal.mop.storage.SiteStorage- Overrides:
getSitesKeysin classSiteStorageImpl
-