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
Modifier and TypeFieldDescriptionprotected org.craftercms.core.service.Context
protected org.craftercms.core.store.ContentStoreAdapter
Fields 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
ConstructorDescriptionDecoratedStoreAdapterContext
(org.craftercms.core.service.Context actualContext, org.craftercms.core.store.ContentStoreAdapter decoratedStoreAdapter) -
Method Summary
Modifier and TypeMethodDescriptionorg.craftercms.core.service.Context
clone()
org.craftercms.core.service.Context
long
getId()
int
org.craftercms.core.store.ContentStoreAdapter
boolean
boolean
boolean
void
setCacheVersion
(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:
getId
in interfaceorg.craftercms.core.service.Context
-
getCacheVersion
public long getCacheVersion()- Specified by:
getCacheVersion
in interfaceorg.craftercms.core.service.Context
-
setCacheVersion
public void setCacheVersion(long cacheVersion) - Specified by:
setCacheVersion
in interfaceorg.craftercms.core.service.Context
-
getCacheScope
- Specified by:
getCacheScope
in interfaceorg.craftercms.core.service.Context
-
getStoreAdapter
public org.craftercms.core.store.ContentStoreAdapter getStoreAdapter()- Specified by:
getStoreAdapter
in interfaceorg.craftercms.core.service.Context
-
isMergingOn
public boolean isMergingOn()- Specified by:
isMergingOn
in interfaceorg.craftercms.core.service.Context
-
isCacheOn
public boolean isCacheOn()- Specified by:
isCacheOn
in interfaceorg.craftercms.core.service.Context
-
getMaxAllowedItemsInCache
public int getMaxAllowedItemsInCache()- Specified by:
getMaxAllowedItemsInCache
in interfaceorg.craftercms.core.service.Context
-
ignoreHiddenFiles
public boolean ignoreHiddenFiles()- Specified by:
ignoreHiddenFiles
in interfaceorg.craftercms.core.service.Context
-
clone
public org.craftercms.core.service.Context clone() -
toString
-