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 Summary
FieldsModifier and TypeFieldDescriptionprotected org.craftercms.core.service.Contextprotected org.craftercms.core.store.ContentStoreAdapterFields inherited from interface org.craftercms.core.service.Context
DEFAULT_CACHE_ON, DEFAULT_IGNORE_HIDDEN_FILES, DEFAULT_MAX_ALLOWED_ITEMS_IN_CACHE, DEFAULT_MERGING_ON -
Constructor Summary
ConstructorsConstructorDescriptionDecoratedStoreAdapterContext(org.craftercms.core.service.Context actualContext, org.craftercms.core.store.ContentStoreAdapter decoratedStoreAdapter) -
Method Summary
Modifier and TypeMethodDescriptionorg.craftercms.core.service.Contextclone()org.craftercms.core.service.ContextlonggetId()intorg.craftercms.core.store.ContentStoreAdapterbooleanbooleanbooleanvoidsetCacheVersion(long cacheVersion) toString()
-
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
- Specified by:
getIdin interfaceorg.craftercms.core.service.Context
-
getCacheVersion
public long getCacheVersion()- Specified by:
getCacheVersionin interfaceorg.craftercms.core.service.Context
-
setCacheVersion
public void setCacheVersion(long cacheVersion) - Specified by:
setCacheVersionin interfaceorg.craftercms.core.service.Context
-
getCacheScope
- Specified by:
getCacheScopein interfaceorg.craftercms.core.service.Context
-
getStoreAdapter
public org.craftercms.core.store.ContentStoreAdapter getStoreAdapter()- Specified by:
getStoreAdapterin interfaceorg.craftercms.core.service.Context
-
isMergingOn
public boolean isMergingOn()- Specified by:
isMergingOnin interfaceorg.craftercms.core.service.Context
-
isCacheOn
public boolean isCacheOn()- Specified by:
isCacheOnin interfaceorg.craftercms.core.service.Context
-
getMaxAllowedItemsInCache
public int getMaxAllowedItemsInCache()- Specified by:
getMaxAllowedItemsInCachein interfaceorg.craftercms.core.service.Context
-
ignoreHiddenFiles
public boolean ignoreHiddenFiles()- Specified by:
ignoreHiddenFilesin interfaceorg.craftercms.core.service.Context
-
getConfigLookupVariables
- Specified by:
getConfigLookupVariablesin interfaceorg.craftercms.core.service.Context
-
clone
public org.craftercms.core.service.Context clone() -
toString
-