public class DefaultCMSVersionSessionContextProvider extends java.lang.Object implements CMSVersionSessionContextProvider
CMSVersionSessionContextProvider| Constructor and Description |
|---|
DefaultCMSVersionSessionContextProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
addContentSlotForPageToCache(ContentSlotForPageModel contentSlotForPageModel)
Add a content slot for page to cache.
|
void |
addGeneratedItemToCache(ItemModel itemModel,
CMSVersionModel versionModel)
Add an
ItemModel to a cache of generated items and use CMSVersionModel as a key. |
void |
addPageVersionedInTransactionToCache(java.util.Optional<AbstractPageModel> abstractPageModel)
Adds the
AbstractPageModel associated to the transaction being processed to the cache. |
void |
addUnsavedVersionedItemToCache(CMSVersionModel versionModel)
Add an
ItemModel to a cache of unsaved but versioned items and use CMSVersionModel as a key. |
java.util.List<ContentSlotForPageModel> |
getAllCachedContentSlotsForPage()
Return all cached content slots for page from cache.
|
java.util.Map<CMSVersionModel,ItemModel> |
getAllGeneratedItemsFromCached()
Return all generated cached
ItemModel. |
java.util.Set<CMSItemData> |
getAllUnsavedVersionedItemsFromCached()
Return all cached unsaved versioned items
CMSItemData. |
protected <any> |
getCmsItemDataFactory() |
java.util.Optional<AbstractPageModel> |
getPageVersionedInTransactionFromCache()
Returns the
AbstractPageModel associated to the transaction being processed from the cache. |
protected SessionCachedContextProvider |
getSessionCachedContextProvider() |
boolean |
isPageVersionedInTransactionCached()
Checks if the
AbstractPageModel associated to the transaction being processed has been added to the cache. |
void |
removeAllContentSlotsForPageFromCache()
Remove all
ContentSlotForPageModel from cache. |
void |
removeAllGeneratedItemsFromCache()
Remove all generated items from cache.
|
void |
removeAllUnsavedVersionedItemsFromCache()
Removes all cached unsaved versioned items.
|
void |
removeContentSlotForPageFromCache(ContentSlotForPageModel contentSlotForPageModel)
Remove a
ContentSlotForPageModel from cache. |
void |
removeGeneratedItemFromCache(CMSVersionModel versionModel)
Remove generated cached item based on
CMSVersionModel. |
void |
removePageVersionedInTransactionFromCache()
Removes the
AbstractPageModel associated to the transaction being processed from the cache. |
void |
setCmsItemDataFactory(<any> cmsItemDataFactory) |
void |
setSessionCachedContextProvider(SessionCachedContextProvider sessionCachedContextProvider) |
public DefaultCMSVersionSessionContextProvider()
public void addGeneratedItemToCache(ItemModel itemModel, CMSVersionModel versionModel)
CMSVersionSessionContextProviderItemModel to a cache of generated items and use CMSVersionModel as a key.addGeneratedItemToCache in interface CMSVersionSessionContextProvideritemModel - the ItemModel to cacheversionModel - the CMSVersionModel that represents a key.public java.util.Map<CMSVersionModel,ItemModel> getAllGeneratedItemsFromCached()
CMSVersionSessionContextProviderItemModel.getAllGeneratedItemsFromCached in interface CMSVersionSessionContextProviderMap of key (CMSVersionModel) and value (ItemModel)public void removeGeneratedItemFromCache(CMSVersionModel versionModel)
CMSVersionSessionContextProviderCMSVersionModel.removeGeneratedItemFromCache in interface CMSVersionSessionContextProviderversionModel - the CMSVersionModel to find a cached element.public void removeAllGeneratedItemsFromCache()
CMSVersionSessionContextProviderremoveAllGeneratedItemsFromCache in interface CMSVersionSessionContextProviderpublic void addContentSlotForPageToCache(ContentSlotForPageModel contentSlotForPageModel)
CMSVersionSessionContextProvideraddContentSlotForPageToCache in interface CMSVersionSessionContextProvidercontentSlotForPageModel - the ContentSlotForPageModel to add.public java.util.List<ContentSlotForPageModel> getAllCachedContentSlotsForPage()
CMSVersionSessionContextProvidergetAllCachedContentSlotsForPage in interface CMSVersionSessionContextProviderList of ContentSlotForPageModel.public void removeContentSlotForPageFromCache(ContentSlotForPageModel contentSlotForPageModel)
CMSVersionSessionContextProviderContentSlotForPageModel from cache.removeContentSlotForPageFromCache in interface CMSVersionSessionContextProvidercontentSlotForPageModel - the ContentSlotForPageModel to delete.public void removeAllContentSlotsForPageFromCache()
CMSVersionSessionContextProviderContentSlotForPageModel from cache.removeAllContentSlotsForPageFromCache in interface CMSVersionSessionContextProviderpublic void addUnsavedVersionedItemToCache(CMSVersionModel versionModel)
CMSVersionSessionContextProviderItemModel to a cache of unsaved but versioned items and use CMSVersionModel as a key.addUnsavedVersionedItemToCache in interface CMSVersionSessionContextProviderversionModel - the CMSVersionModel that represents a key.public java.util.Set<CMSItemData> getAllUnsavedVersionedItemsFromCached()
CMSVersionSessionContextProviderCMSItemData.getAllUnsavedVersionedItemsFromCached in interface CMSVersionSessionContextProviderCMSItemDatapublic void removeAllUnsavedVersionedItemsFromCache()
CMSVersionSessionContextProviderremoveAllUnsavedVersionedItemsFromCache in interface CMSVersionSessionContextProviderpublic boolean isPageVersionedInTransactionCached()
CMSVersionSessionContextProviderAbstractPageModel associated to the transaction being processed has been added to the cache.isPageVersionedInTransactionCached in interface CMSVersionSessionContextProviderAbstractPageModel has already been added to the cache. false otherwise.public void addPageVersionedInTransactionToCache(java.util.Optional<AbstractPageModel> abstractPageModel)
CMSVersionSessionContextProviderAbstractPageModel associated to the transaction being processed to the cache.addPageVersionedInTransactionToCache in interface CMSVersionSessionContextProviderabstractPageModel - - (optional) The AbstractPageModel to add to the cache.public java.util.Optional<AbstractPageModel> getPageVersionedInTransactionFromCache()
CMSVersionSessionContextProviderAbstractPageModel associated to the transaction being processed from the cache.getPageVersionedInTransactionFromCache in interface CMSVersionSessionContextProviderAbstractPageModel versioned in the current transactionpublic void removePageVersionedInTransactionFromCache()
CMSVersionSessionContextProviderAbstractPageModel associated to the transaction being processed from the cache.removePageVersionedInTransactionFromCache in interface CMSVersionSessionContextProviderprotected SessionCachedContextProvider getSessionCachedContextProvider()
public void setSessionCachedContextProvider(SessionCachedContextProvider sessionCachedContextProvider)
protected <any> getCmsItemDataFactory()
public void setCmsItemDataFactory(<any> cmsItemDataFactory)
Copyright © 2018 SAP SE. All Rights Reserved.