Package org.craftercms.core.service
Class ContextImpl
- java.lang.Object
-
- org.craftercms.core.service.ContextImpl
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringCACHE_SCOPE_FORMATprotected booleancacheOnprotected longcacheVersionprotected Stringidprotected booleanignoreHiddenFilesprotected intmaxAllowedItemsInCacheprotected booleanmergingOnprotected StringrootFolderPathprotected ContentStoreAdapterstoreAdapter-
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
Constructors Constructor Description ContextImpl(String id, ContentStoreAdapter storeAdapter, String rootFolderPath, boolean mergingOn, boolean cacheOn, int maxAllowedItemsInCache, boolean ignoreHiddenFiles)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Contextclone()booleanequals(Object o)StringgetCacheScope()longgetCacheVersion()StringgetId()intgetMaxAllowedItemsInCache()ContentStoreAdaptergetStoreAdapter()inthashCode()booleanignoreHiddenFiles()booleanisCacheOn()booleanisMergingOn()voidsetCacheVersion(long cacheVersion)StringtoString()
-
-
-
Field Detail
-
CACHE_SCOPE_FORMAT
protected static final String CACHE_SCOPE_FORMAT
- See Also:
- Constant Field Values
-
id
protected String id
-
storeAdapter
protected ContentStoreAdapter storeAdapter
-
rootFolderPath
protected String rootFolderPath
-
mergingOn
protected boolean mergingOn
-
cacheOn
protected boolean cacheOn
-
cacheVersion
protected volatile long cacheVersion
-
maxAllowedItemsInCache
protected int maxAllowedItemsInCache
-
ignoreHiddenFiles
protected boolean ignoreHiddenFiles
-
-
Constructor Detail
-
ContextImpl
public ContextImpl(String id, ContentStoreAdapter storeAdapter, String rootFolderPath, boolean mergingOn, boolean cacheOn, int maxAllowedItemsInCache, boolean ignoreHiddenFiles)
-
-
Method Detail
-
getCacheVersion
public long getCacheVersion()
- Specified by:
getCacheVersionin interfaceContext
-
setCacheVersion
public void setCacheVersion(long cacheVersion)
- Specified by:
setCacheVersionin interfaceContext
-
getCacheScope
public String getCacheScope()
- Specified by:
getCacheScopein interfaceContext
-
getStoreAdapter
public ContentStoreAdapter getStoreAdapter()
- Specified by:
getStoreAdapterin interfaceContext
-
isMergingOn
public boolean isMergingOn()
- Specified by:
isMergingOnin interfaceContext
-
getMaxAllowedItemsInCache
public int getMaxAllowedItemsInCache()
- Specified by:
getMaxAllowedItemsInCachein interfaceContext
-
ignoreHiddenFiles
public boolean ignoreHiddenFiles()
- Specified by:
ignoreHiddenFilesin interfaceContext
-
clone
public Context clone()
-
-