public interface CMSVersionSessionContextProvider
| 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. |
java.util.Optional<AbstractPageModel> |
getPageVersionedInTransactionFromCache()
Returns the
AbstractPageModel associated to the transaction being processed from the cache. |
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 addGeneratedItemToCache(ItemModel itemModel, CMSVersionModel versionModel)
ItemModel to a cache of generated items and use CMSVersionModel as a key.itemModel - the ItemModel to cacheversionModel - the CMSVersionModel that represents a key.java.util.Map<CMSVersionModel,ItemModel> getAllGeneratedItemsFromCached()
ItemModel.Map of key (CMSVersionModel) and value (ItemModel)void removeGeneratedItemFromCache(CMSVersionModel versionModel)
CMSVersionModel.versionModel - the CMSVersionModel to find a cached element.void removeAllGeneratedItemsFromCache()
void addContentSlotForPageToCache(ContentSlotForPageModel contentSlotForPageModel)
contentSlotForPageModel - the ContentSlotForPageModel to add.java.util.List<ContentSlotForPageModel> getAllCachedContentSlotsForPage()
List of ContentSlotForPageModel.void removeContentSlotForPageFromCache(ContentSlotForPageModel contentSlotForPageModel)
ContentSlotForPageModel from cache.contentSlotForPageModel - the ContentSlotForPageModel to delete.void removeAllContentSlotsForPageFromCache()
ContentSlotForPageModel from cache.void addUnsavedVersionedItemToCache(CMSVersionModel versionModel)
ItemModel to a cache of unsaved but versioned items and use CMSVersionModel as a key.versionModel - the CMSVersionModel that represents a key.java.util.Set<CMSItemData> getAllUnsavedVersionedItemsFromCached()
CMSItemData.CMSItemDatavoid removeAllUnsavedVersionedItemsFromCache()
boolean isPageVersionedInTransactionCached()
AbstractPageModel associated to the transaction being processed has been added to the cache.AbstractPageModel has already been added to the cache. false otherwise.void addPageVersionedInTransactionToCache(java.util.Optional<AbstractPageModel> abstractPageModel)
AbstractPageModel associated to the transaction being processed to the cache.abstractPageModel - - (optional) The AbstractPageModel to add to the cache.java.util.Optional<AbstractPageModel> getPageVersionedInTransactionFromCache()
AbstractPageModel associated to the transaction being processed from the cache.AbstractPageModel versioned in the current transactionvoid removePageVersionedInTransactionFromCache()
AbstractPageModel associated to the transaction being processed from the cache.Copyright © 2018 SAP SE. All Rights Reserved.