Interface CMSVersionSessionContextProvider

    • Method Detail

      • removeGeneratedItemFromCache

        void removeGeneratedItemFromCache​(CMSVersionModel versionModel)
        Remove generated cached item based on CMSVersionModel.
        Parameters:
        versionModel - the CMSVersionModel to find a cached element.
      • removeAllGeneratedItemsFromCache

        void removeAllGeneratedItemsFromCache()
        Remove all generated items from cache.
      • addContentSlotForPageToCache

        void addContentSlotForPageToCache​(ContentSlotForPageModel contentSlotForPageModel)
        Add a content slot for page to cache.
        Parameters:
        contentSlotForPageModel - the ContentSlotForPageModel to add.
      • removeAllContentSlotsForPageFromCache

        void removeAllContentSlotsForPageFromCache()
        Remove all ContentSlotForPageModel from cache.
      • getAllUnsavedVersionedItemsFromCached

        java.util.Set<CMSItemData> getAllUnsavedVersionedItemsFromCached()
        Return all cached unsaved versioned items CMSItemData.
        Returns:
        the set of CMSItemData
      • removeAllUnsavedVersionedItemsFromCache

        void removeAllUnsavedVersionedItemsFromCache()
        Removes all cached unsaved versioned items.
      • isPageVersionedInTransactionCached

        boolean isPageVersionedInTransactionCached()
        Checks if the AbstractPageModel associated to the transaction being processed has been added to the cache.
        Returns:
        true if the AbstractPageModel has already been added to the cache. false otherwise.
      • addPageVersionedInTransactionToCache

        void addPageVersionedInTransactionToCache​(java.util.Optional<AbstractPageModel> abstractPageModel)
        Adds the AbstractPageModel associated to the transaction being processed to the cache.
        Parameters:
        abstractPageModel - - (optional) The AbstractPageModel to add to the cache.
      • getPageVersionedInTransactionFromCache

        java.util.Optional<AbstractPageModel> getPageVersionedInTransactionFromCache()
        Returns the AbstractPageModel associated to the transaction being processed from the cache.
        Returns:
        the optional AbstractPageModel versioned in the current transaction
      • removePageVersionedInTransactionFromCache

        void removePageVersionedInTransactionFromCache()
        Removes the AbstractPageModel associated to the transaction being processed from the cache.