Class DecoratedStoreAdapterContext

java.lang.Object
org.craftercms.engine.util.store.decorators.DecoratedStoreAdapterContext
All Implemented Interfaces:
Cloneable, org.craftercms.core.service.Context

public class DecoratedStoreAdapterContext extends Object implements org.craftercms.core.service.Context
Context wrapper used by ContentStoreAdapterDecorator.
Since:
3.1.4
Author:
avasquez
  • Field Details

    • actualContext

      protected org.craftercms.core.service.Context actualContext
    • decoratedStoreAdapter

      protected org.craftercms.core.store.ContentStoreAdapter decoratedStoreAdapter
  • Constructor Details

    • DecoratedStoreAdapterContext

      public DecoratedStoreAdapterContext(org.craftercms.core.service.Context actualContext, org.craftercms.core.store.ContentStoreAdapter decoratedStoreAdapter)
  • Method Details

    • getActualContext

      public org.craftercms.core.service.Context getActualContext()
    • getId

      public String getId()
      Specified by:
      getId in interface org.craftercms.core.service.Context
    • getCacheVersion

      public long getCacheVersion()
      Specified by:
      getCacheVersion in interface org.craftercms.core.service.Context
    • setCacheVersion

      public void setCacheVersion(long cacheVersion)
      Specified by:
      setCacheVersion in interface org.craftercms.core.service.Context
    • getCacheScope

      public String getCacheScope()
      Specified by:
      getCacheScope in interface org.craftercms.core.service.Context
    • getStoreAdapter

      public org.craftercms.core.store.ContentStoreAdapter getStoreAdapter()
      Specified by:
      getStoreAdapter in interface org.craftercms.core.service.Context
    • isMergingOn

      public boolean isMergingOn()
      Specified by:
      isMergingOn in interface org.craftercms.core.service.Context
    • isCacheOn

      public boolean isCacheOn()
      Specified by:
      isCacheOn in interface org.craftercms.core.service.Context
    • getMaxAllowedItemsInCache

      public int getMaxAllowedItemsInCache()
      Specified by:
      getMaxAllowedItemsInCache in interface org.craftercms.core.service.Context
    • ignoreHiddenFiles

      public boolean ignoreHiddenFiles()
      Specified by:
      ignoreHiddenFiles in interface org.craftercms.core.service.Context
    • clone

      public org.craftercms.core.service.Context clone()
      Specified by:
      clone in interface org.craftercms.core.service.Context
      Overrides:
      clone in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object