Package org.craftercms.core.service
Class ContextImpl
java.lang.Object
org.craftercms.core.service.ContextImpl
- Direct Known Subclasses:
FileSystemContext
Default
Context
implementation.- Author:
- Sumer Jabri, Alfonso Vásquez
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final String
protected boolean
protected long
protected String
protected boolean
protected int
protected boolean
protected String
protected 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
ConstructorDescriptionContextImpl
(String id, ContentStoreAdapter storeAdapter, String rootFolderPath, boolean mergingOn, boolean cacheOn, int maxAllowedItemsInCache, boolean ignoreHiddenFiles) -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
long
getId()
int
int
hashCode()
boolean
boolean
boolean
void
setCacheVersion
(long cacheVersion) toString()
-
Field Details
-
CACHE_SCOPE_FORMAT
- See Also:
-
id
-
storeAdapter
-
rootFolderPath
-
mergingOn
protected boolean mergingOn -
cacheOn
protected boolean cacheOn -
cacheVersion
protected volatile long cacheVersion -
maxAllowedItemsInCache
protected int maxAllowedItemsInCache -
ignoreHiddenFiles
protected boolean ignoreHiddenFiles
-
-
Constructor Details
-
ContextImpl
public ContextImpl(String id, ContentStoreAdapter storeAdapter, String rootFolderPath, boolean mergingOn, boolean cacheOn, int maxAllowedItemsInCache, boolean ignoreHiddenFiles)
-
-
Method Details
-
getId
-
getCacheVersion
public long getCacheVersion()- Specified by:
getCacheVersion
in interfaceContext
-
setCacheVersion
public void setCacheVersion(long cacheVersion) - Specified by:
setCacheVersion
in interfaceContext
-
getCacheScope
- Specified by:
getCacheScope
in interfaceContext
-
getStoreAdapter
- Specified by:
getStoreAdapter
in interfaceContext
-
isMergingOn
public boolean isMergingOn()- Specified by:
isMergingOn
in interfaceContext
-
isCacheOn
public boolean isCacheOn() -
getMaxAllowedItemsInCache
public int getMaxAllowedItemsInCache()- Specified by:
getMaxAllowedItemsInCache
in interfaceContext
-
ignoreHiddenFiles
public boolean ignoreHiddenFiles()- Specified by:
ignoreHiddenFiles
in interfaceContext
-
clone
-
equals
-
hashCode
public int hashCode() -
toString
-