| Modifier and Type | Method and Description |
|---|---|
Item |
ItemProcessor.process(Context context,
CachingOptions cachingOptions,
Item item)
Processes an
Item. |
| Modifier and Type | Method and Description |
|---|---|
protected Item |
IncludeDescriptorsProcessor.getItemToInclude(Context context,
CachingOptions cachingOptions,
String includeSrcPath) |
protected void |
IncludeDescriptorsProcessor.includeDescriptors(Context context,
CachingOptions cachingOptions,
Item item) |
Item |
ItemProcessorPipeline.process(Context context,
CachingOptions cachingOptions,
Item item)
Processes the given
Item, by calling a pipeline of processors. |
Item |
TextMetaDataCollectionExtractingProcessor.process(Context context,
CachingOptions cachingOptions,
Item item)
For every XPath query provided in
metaDataNodesXPathQueries, a list of nodes is selected and for each
one of these nodes its text value is extracted and added to a list that is later put in the item's properties. |
Item |
AbstractTaggingProcessor.process(Context context,
CachingOptions cachingOptions,
Item item) |
Item |
AttributeAddingProcessor.process(Context context,
CachingOptions cachingOptions,
Item item) |
Item |
TextMetaDataExtractingProcessor.process(Context context,
CachingOptions cachingOptions,
Item item)
For every XPath query provided in
metaDataNodesXPathQueries, a single node is selected and its text
value is extracted and put in the item's properties. |
Item |
ItemUrlTransformingProcessor.process(Context context,
CachingOptions cachingOptions,
Item item) |
Item |
FieldRenamingProcessor.process(Context context,
CachingOptions cachingOptions,
Item item) |
Item |
IncludeDescriptorsProcessor.process(Context context,
CachingOptions cachingOptions,
Item item)
Replaces special include tags found in a descriptor document with the document tree of descriptors specified in
these include tags.
|
| Modifier and Type | Method and Description |
|---|---|
Item |
TemplateProcessor.process(Context context,
CachingOptions cachingOptions,
Item item)
Processes the content of certain nodes (found by the
NodeScanner in the item's descriptor as templates,
by compiling the node text templates through the templateCompiler and then processing the compiled
template with a model returned by modelFactory. |
| Modifier and Type | Field and Description |
|---|---|
static CachingOptions |
CachingOptions.DEFAULT_CACHING_OPTIONS |
| Modifier and Type | Method and Description |
|---|---|
List<Item> |
ContentStoreService.findChildren(Context context,
CachingOptions cachingOptions,
String url,
ItemFilter filter,
ItemProcessor processor)
Returns the children of the folder at the given url, returning null if the folder can't be found.
|
Content |
ContentStoreService.findContent(Context context,
CachingOptions cachingOptions,
String url)
Returns the content of the file for the given url, returning null if not found.
|
Item |
ContentStoreService.findItem(Context context,
CachingOptions cachingOptions,
String url,
ItemProcessor processor)
Returns the content store item for the given url, returning null if not found.
|
Tree |
ContentStoreService.findTree(Context context,
CachingOptions cachingOptions,
String url,
int depth,
ItemFilter filter,
ItemProcessor processor)
Returns the folder at the given url as a tree, or null if the folder wasn't found.
|
List<Item> |
ContentStoreService.getChildren(Context context,
CachingOptions cachingOptions,
String url,
ItemFilter filter,
ItemProcessor processor)
Returns the children of the folder at the given url.
|
Content |
ContentStoreService.getContent(Context context,
CachingOptions cachingOptions,
String url)
Returns the content of the file for the given url.
|
Item |
ContentStoreService.getItem(Context context,
CachingOptions cachingOptions,
String url,
ItemProcessor processor)
Returns the content store item for the given url.
|
Tree |
ContentStoreService.getTree(Context context,
CachingOptions cachingOptions,
String url,
int depth,
ItemFilter filter,
ItemProcessor processor)
Returns the folder at the given url as a tree.
|
void |
CacheService.put(Context context,
Object key,
Object value,
CachingOptions cachingOptions,
CacheLoader loader,
Object... loaderParams)
Puts and item in the scope of the given context.
|
| Modifier and Type | Field and Description |
|---|---|
protected CachingOptions |
AbstractCachedContentStoreService.defaultCachingOptions
The default caching options to use when none are specified in the method.
|
| Modifier and Type | Method and Description |
|---|---|
protected List<Item> |
ContentStoreServiceImpl.doFindChildren(Context context,
CachingOptions cachingOptions,
String url,
Integer depth,
ItemFilter filter,
ItemProcessor processor)
Does the following:
Retrieves the children from the underlying repository (without their descriptors).
Filters the returned list if
ItemFilter.runBeforeProcessing() returns true.
Calls AbstractCachedContentStoreService.getTree(Context, String) or AbstractCachedContentStoreService.getItem(Context, String) for each item in the list
(depending on whether the item is a folder or not, and if depth is not null), to obtain the
merged and processed version of each item.
Filters the processed list if ItemFilter.runAfterProcessing() returns true.
Returns the final list of processed items.
|
protected List<Item> |
ContentStoreServiceImpl.doFindChildren(Context context,
CachingOptions cachingOptions,
String url,
ItemFilter filter,
ItemProcessor processor) |
protected abstract List<Item> |
AbstractCachedContentStoreService.doFindChildren(Context context,
CachingOptions cachingOptions,
String url,
ItemFilter filter,
ItemProcessor processor) |
protected Item |
ContentStoreServiceImpl.doFindItem(Context context,
CachingOptions cachingOptions,
String url,
ItemProcessor processor)
Returns the content store item for the given url, returning null if not found.
|
protected abstract Item |
AbstractCachedContentStoreService.doFindItem(Context context,
CachingOptions cachingOptions,
String url,
ItemProcessor processor) |
protected Tree |
ContentStoreServiceImpl.doFindTree(Context context,
CachingOptions cachingOptions,
String url,
int depth,
ItemFilter filter,
ItemProcessor processor) |
protected abstract Tree |
AbstractCachedContentStoreService.doFindTree(Context context,
CachingOptions cachingOptions,
String url,
int depth,
ItemFilter filter,
ItemProcessor processor) |
protected Item |
ContentStoreServiceImpl.doMerging(Context context,
CachingOptions cachingOptions,
Item item)
Executes merging for the specified
Item:
Gets the DescriptorMergeStrategy for the item's descriptor from
the DescriptorMergeStrategyResolver.
Gets the actual descriptors to merge from the returned merge strategy.
Retrieves the descriptor documents from the underlying repository.
Merges the descriptor documents.
Returns the item with the merged descriptor document.
|
protected Item |
ContentStoreServiceImpl.doProcessing(Context context,
CachingOptions cachingOptions,
Item item,
ItemProcessor additionalProcessor)
Executes processing for the specified
Item:
Gets the main ItemProcessor for the item from the ItemProcessorResolver.
Calls the main processor's process method to process the item.
If an additional processor was passed to this method, the additional processor is also called.
Returns the processed item.
|
List<Item> |
AbstractCachedContentStoreService.findChildren(Context context,
CachingOptions cachingOptions,
String url,
ItemFilter filter,
ItemProcessor processor) |
Content |
ContentStoreServiceImpl.findContent(Context context,
CachingOptions cachingOptions,
String url) |
Item |
AbstractCachedContentStoreService.findItem(Context context,
CachingOptions cachingOptions,
String url,
ItemProcessor processor) |
Tree |
AbstractCachedContentStoreService.findTree(Context context,
CachingOptions cachingOptions,
String url,
int depth,
ItemFilter filter,
ItemProcessor processor) |
List<Item> |
AbstractCachedContentStoreService.getChildren(Context context,
CachingOptions cachingOptions,
String url,
ItemFilter filter,
ItemProcessor processor) |
Content |
ContentStoreServiceImpl.getContent(Context context,
CachingOptions cachingOptions,
String url)
Returns the content of the file for the given url.
|
Item |
AbstractCachedContentStoreService.getItem(Context context,
CachingOptions cachingOptions,
String url,
ItemProcessor processor) |
Tree |
AbstractCachedContentStoreService.getTree(Context context,
CachingOptions cachingOptions,
String url,
int depth,
ItemFilter filter,
ItemProcessor processor) |
void |
CacheServiceImpl.put(Context context,
Object key,
Object value,
CachingOptions cachingOptions,
CacheLoader loader,
Object... loaderParams) |
void |
AbstractCachedContentStoreService.setDefaultCachingOptions(CachingOptions defaultCachingOptions)
Sets the default caching options to use when none are specified in the method.
|
| Modifier and Type | Method and Description |
|---|---|
Content |
ContentStoreAdapter.findContent(Context context,
CachingOptions cachingOptions,
String path) |
Item |
ContentStoreAdapter.findItem(Context context,
CachingOptions cachingOptions,
String path,
boolean withDescriptor) |
List<Item> |
ContentStoreAdapter.findItems(Context context,
CachingOptions cachingOptions,
String path,
boolean withDescriptor) |
| Modifier and Type | Field and Description |
|---|---|
protected CachingOptions |
AbstractCachedContentStoreAdapter.defaultCachingOptions |
| Modifier and Type | Method and Description |
|---|---|
protected Content |
AbstractFileBasedContentStoreAdapter.doFindContent(Context context,
CachingOptions cachingOptions,
String path) |
protected abstract Content |
AbstractCachedContentStoreAdapter.doFindContent(Context context,
CachingOptions cachingOptions,
String path) |
protected Item |
AbstractFileBasedContentStoreAdapter.doFindItem(Context context,
CachingOptions cachingOptions,
String path,
boolean withDescriptor) |
protected abstract Item |
AbstractCachedContentStoreAdapter.doFindItem(Context context,
CachingOptions cachingOptions,
String path,
boolean withDescriptor) |
protected List<Item> |
AbstractFileBasedContentStoreAdapter.doFindItems(Context context,
CachingOptions cachingOptions,
String path,
boolean withDescriptor) |
protected abstract List<Item> |
AbstractCachedContentStoreAdapter.doFindItems(Context context,
CachingOptions cachingOptions,
String path,
boolean withDescriptor) |
Content |
AbstractCachedContentStoreAdapter.findContent(Context context,
CachingOptions cachingOptions,
String path) |
Item |
AbstractCachedContentStoreAdapter.findItem(Context context,
CachingOptions cachingOptions,
String path,
boolean withDescriptor) |
List<Item> |
AbstractCachedContentStoreAdapter.findItems(Context context,
CachingOptions cachingOptions,
String path,
boolean withDescriptor) |
void |
AbstractCachedContentStoreAdapter.setDefaultCachingOptions(CachingOptions defaultCachingOptions) |
| Modifier and Type | Method and Description |
|---|---|
String |
UrlTransformer.transformUrl(Context context,
CachingOptions cachingOptions,
String url) |
String |
UrlTransformationEngine.transformUrl(Context context,
CachingOptions cachingOptions,
String transformerName,
String url) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
UrlTransformationEngineImpl.doTransformUrl(Context context,
CachingOptions cachingOptions,
String transformerName,
String url) |
protected abstract String |
AbstractCachedUrlTransformationEngine.doTransformUrl(Context context,
CachingOptions cachingOptions,
String transformerName,
String url) |
protected String |
ShortToLongUrlTransformer.getLongName(Context context,
CachingOptions cachingOptions,
String folderPath,
String shortName) |
protected String |
ShortToLongUrlTransformer.getLongUrl(Context context,
CachingOptions cachingOptions,
String shortUrl,
boolean useShortNameIfLongNameNotFound) |
String |
ReplacePatternAllUrlTransformer.transformUrl(Context context,
CachingOptions cachingOptions,
String url) |
String |
RemovePrefixAndSuffixUrlTransformer.transformUrl(Context context,
CachingOptions cachingOptions,
String url) |
String |
ExtractRequestAttributesUrlTransformer.transformUrl(Context context,
CachingOptions cachingOptions,
String url) |
String |
AddServletPathUrlTransformer.transformUrl(Context context,
CachingOptions cachingOptions,
String url) |
String |
AddContextPathUrlTransformer.transformUrl(Context context,
CachingOptions cachingOptions,
String url) |
String |
ReplaceSubstringUrlTransformer.transformUrl(Context context,
CachingOptions cachingOptions,
String url) |
String |
ShortToLongUrlTransformer.transformUrl(Context context,
CachingOptions cachingOptions,
String url) |
String |
AddSchemeAndDomainAndServerPortUrlTransformer.transformUrl(Context context,
CachingOptions cachingOptions,
String url) |
String |
AddPrefixAndSuffixUrlTransformer.transformUrl(Context context,
CachingOptions cachingOptions,
String url) |
String |
UrlTransformerPipeline.transformUrl(Context context,
CachingOptions cachingOptions,
String url) |
String |
AddDebugParamUrlTransformer.transformUrl(Context context,
CachingOptions cachingOptions,
String url) |
String |
ContentBundleShortToLongUrlTransformer.transformUrl(Context context,
CachingOptions cachingOptions,
String url) |
String |
LongToShortUrlTransformer.transformUrl(Context context,
CachingOptions cachingOptions,
String url) |
String |
AbstractCachedUrlTransformationEngine.transformUrl(Context context,
CachingOptions cachingOptions,
String transformerName,
String url) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
CacheTemplate.getObject(Context context,
CachingOptions cachingOptions,
org.craftercms.commons.lang.Callback<T> callback,
Object... keyElements)
Executes the template, using the specified callback to load the object to cache, if it's not already in the
cache.
|
| Modifier and Type | Method and Description |
|---|---|
protected <T> T |
DefaultCacheTemplate.doPut(Context context,
CachingOptions cachingOptions,
org.craftercms.commons.lang.Callback<T> callback,
Object key,
T obj) |
<T> T |
DefaultCacheTemplate.getObject(Context context,
CachingOptions cachingOptions,
org.craftercms.commons.lang.Callback<T> callback,
Object... keyElements) |
| Modifier and Type | Method and Description |
|---|---|
List<MergeableDescriptor> |
DescriptorMergeStrategy.getDescriptors(Context context,
CachingOptions cachingOptions,
String mainDescriptorUrl,
org.dom4j.Document mainDescriptorDom)
Returns the list of descriptors in the order they should be merged, given the URI of the primary descriptor.
|
List<MergeableDescriptor> |
DescriptorMergeStrategy.getDescriptors(Context context,
CachingOptions cachingOptions,
String mainDescriptorUrl,
org.dom4j.Document mainDescriptorDom,
boolean mainDescriptorOptional)
Returns the list of descriptors in the order they should be merged, given the URI of the primary descriptor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
InheritVersionsMergeStrategy.addInheritedDescriptorsInFolder(Context context,
CachingOptions cachingOptions,
List<MergeableDescriptor> inheritedDescriptors,
String folder,
String mainDescriptorUrl,
org.dom4j.Document mainDescriptorDom) |
protected abstract void |
AbstractInheritFromHierarchyMergeStrategy.addInheritedDescriptorsInFolder(Context context,
CachingOptions cachingOptions,
List<MergeableDescriptor> inheritedDescriptors,
String folder,
String mainDescriptorUrl,
org.dom4j.Document mainDescriptorDom) |
protected void |
InheritLevelsMergeStrategy.addInheritedDescriptorsInFolder(Context context,
CachingOptions cachingOptions,
List<MergeableDescriptor> inheritedDescriptors,
String folder,
String mainDescriptorUrl,
org.dom4j.Document mainDescriptorDom) |
protected void |
CompositeInheritFromHierarchyMergeStrategy.addInheritedDescriptorsInFolder(Context context,
CachingOptions cachingOptions,
List<MergeableDescriptor> inheritedDescriptors,
String folder,
String mainDescriptorUrl,
org.dom4j.Document mainDescriptorDom) |
protected org.dom4j.Document |
ContentBundleMergeStrategy.getDescriptorDom(Context context,
CachingOptions cachingOptions,
String url) |
protected org.dom4j.Document |
ExplicitParentMergeStrategy.getDescriptorDom(Context context,
CachingOptions cachingOptions,
String url) |
List<MergeableDescriptor> |
SingleFileMergeStrategy.getDescriptors(Context context,
CachingOptions cachingOptions,
String mainDescriptorUrl,
org.dom4j.Document mainDescriptorDom) |
List<MergeableDescriptor> |
AbstractInheritFromHierarchyMergeStrategy.getDescriptors(Context context,
CachingOptions cachingOptions,
String mainDescriptorUrl,
org.dom4j.Document mainDescriptorDom) |
List<MergeableDescriptor> |
ContentBundleMergeStrategy.getDescriptors(Context context,
CachingOptions cachingOptions,
String mainDescriptorUrl,
org.dom4j.Document mainDescriptorDom) |
List<MergeableDescriptor> |
ExplicitParentMergeStrategy.getDescriptors(Context context,
CachingOptions cachingOptions,
String mainDescriptorUrl,
org.dom4j.Document mainDescriptorDom) |
List<MergeableDescriptor> |
SingleFileMergeStrategy.getDescriptors(Context context,
CachingOptions cachingOptions,
String mainDescriptorUrl,
org.dom4j.Document mainDescriptorDom,
boolean mainDescriptorOptional) |
List<MergeableDescriptor> |
AbstractInheritFromHierarchyMergeStrategy.getDescriptors(Context context,
CachingOptions cachingOptions,
String mainDescriptorUrl,
org.dom4j.Document mainDescriptorDom,
boolean mainDescriptorOptional) |
List<MergeableDescriptor> |
ContentBundleMergeStrategy.getDescriptors(Context context,
CachingOptions cachingOptions,
String mainDescriptorUrl,
org.dom4j.Document mainDescriptorDom,
boolean mainDescriptorOptional) |
List<MergeableDescriptor> |
ExplicitParentMergeStrategy.getDescriptors(Context context,
CachingOptions cachingOptions,
String mainDescriptorUrl,
org.dom4j.Document mainDescriptorDom,
boolean mainDescriptorOptional) |
Copyright © 2018 CrafterCMS. All rights reserved.