| Modifier and Type | Method and Description |
|---|---|
ItemProcessor |
ItemProcessorResolver.getProcessor(Item item)
Returns a
ItemProcessor for a given Item. |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractTaggingProcessor
Base
ItemProcessor to add a new field to documents. |
class |
AttributeAddingProcessor
Created by alfonso on 2/21/17.
|
class |
FieldRenamingProcessor
Created by alfonso on 2/21/17.
|
class |
IncludeDescriptorsProcessor
ItemProcessor that finds special "include" tags found in a descriptor
document and inserts there the document tree of descriptors specified in these "include" tags. |
class |
ItemProcessorPipeline
Pipeline of
ItemProcessors. |
class |
ItemUrlTransformingProcessor
ItemProcessor that takes the item url, transforms it by calling
the transformation engine, and places the transformed url in the properties. |
class |
TaggingByFieldValueProcessor
ItemProcessor that adds a new tag or field to items that have a certain tag/field and value. |
class |
TaggingByPathProcessor
ItemProcessor that adds a new tag or field to items on specific paths. |
class |
TextMetaDataCollectionExtractingProcessor
ItemProcessor that extracts a list of text values from descriptor
XPath-selected nodes and sets them as the
properties of the item. |
class |
TextMetaDataExtractingProcessor
ItemProcessor that extracts single text values from descriptor XPath-selected nodes and sets them as the
properties of the item. |
| Modifier and Type | Field and Description |
|---|---|
protected ItemProcessor |
IncludeDescriptorsProcessor.includedItemsProcessor
Processor to use for included items.
|
| Modifier and Type | Field and Description |
|---|---|
protected List<ItemProcessor> |
ItemProcessorPipeline.processors
List of processors which conforms the pipeline
|
| Modifier and Type | Method and Description |
|---|---|
void |
ItemProcessorPipeline.addProcessor(ItemProcessor processor)
Adds a processor to the pipeline of processors.
|
boolean |
ItemProcessorPipeline.removeProcessor(ItemProcessor processor)
Removes a processor from the pipeline of processors.
|
void |
IncludeDescriptorsProcessor.setIncludedItemsProcessor(ItemProcessor includedItemsProcessor)
Sets the processor to use for included items.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ItemProcessorPipeline.addProcessors(Collection<ItemProcessor> processors)
Adds several processors to the pipeline of processors.
|
void |
ItemProcessorPipeline.setProcessors(List<ItemProcessor> processors)
Sets the list of processors.
|
| Constructor and Description |
|---|
ItemProcessorPipeline(ItemProcessor... processors)
Constructor that receives the list of processors (as an array) which conform the pipeline.
|
| Constructor and Description |
|---|
ItemProcessorPipeline(List<ItemProcessor> processors)
Constructor that receives the list of processors which conform the pipeline.
|
| Modifier and Type | Field and Description |
|---|---|
protected ItemProcessor |
ItemProcessorResolverChain.defaultProcessor
The default processor to use if no resolver returns a processor.
|
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,ItemProcessor> |
MetaDataProcessorResolver.elementValueToProcessorMappings
Mappings of processor element values to processor names.
|
protected Map<String,ItemProcessor> |
UrlPatternProcessorResolver.patternToProcessorMappings
Mappings of url patterns to processor names.
|
| Modifier and Type | Method and Description |
|---|---|
ItemProcessor |
ItemProcessorResolverChain.getProcessor(Item item)
Returns the
ItemProcessor to use for the given item. |
ItemProcessor |
UrlPatternProcessorResolver.getProcessor(Item item)
If the item url matches one of the patterns defined in
patternToProcessorMappings, the processor
mapped to that pattern is returned. |
ItemProcessor |
MetaDataProcessorResolver.getProcessor(Item item)
Looks for the processor element (by querying it with the
processorElementXPathQuery) in the item's
descriptor. |
ItemProcessor |
SingleProcessorResolver.getProcessor(Item item)
Returns the same processor for any item.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ItemProcessorResolverChain.setDefaultProcessor(ItemProcessor defaultProcessor)
Sets the default to use if no resolver returns a processor.
|
void |
SingleProcessorResolver.setProcessor(ItemProcessor processor)
Sets the processor to always return.
|
| Modifier and Type | Method and Description |
|---|---|
void |
MetaDataProcessorResolver.setElementValueToProcessorMappings(Map<String,ItemProcessor> elementValueToProcessorMappings)
Sets the mappings of processor element values to processor names.
|
void |
UrlPatternProcessorResolver.setPatternToProcessorMappings(Map<String,ItemProcessor> patternToProcessorMappings)
Sets the mappings of url patterns to processor names.
|
| Modifier and Type | Class and Description |
|---|---|
class |
TemplateProcessor
ItemProcessor that processes the content of certain XML nodes in item descriptors as templates. |
| 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.
|
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.
|
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.
|
| 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.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) |
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) |
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) |
Copyright © 2018 CrafterCMS. All rights reserved.