| Modifier and Type | Method and Description |
|---|---|
Item |
ItemProcessor.process(Context context,
CachingOptions cachingOptions,
Item item)
Processes an
Item. |
| Modifier and Type | Method and Description |
|---|---|
ItemProcessor |
ItemProcessorResolver.getProcessor(Item item)
Returns a
ItemProcessor for a given Item. |
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) |
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 |
|---|---|
protected void |
AbstractTaggingProcessor.addNewField(Item item,
String values)
Tags the item adding the new field with the specified values.
|
protected void |
IncludeDescriptorsProcessor.doInclude(Item item,
org.dom4j.Element includeElement,
Item itemToInclude) |
protected abstract String |
AbstractTaggingProcessor.getTagValues(Item item)
If this method returns null or an empty string the item will not be tagged.
|
protected String |
TaggingByFieldValueProcessor.getTagValues(Item item) |
protected String |
TaggingByPathProcessor.getTagValues(Item item) |
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 |
|---|---|
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 |
|---|---|
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 | Method and Description |
|---|---|
Object |
NodeTemplateModelFactory.getModel(Item item,
org.dom4j.Node node,
String template)
Returns the model for a given template of a given node.
|
Object |
BeanFactoryModelFactory.getModel(Item item,
org.dom4j.Node node,
String template)
Returns always the
BeanFactory of the current Spring application context as the model. |
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 | Class and Description |
|---|---|
class |
Tree
Folder
Item that also contains it's children. |
| Modifier and Type | Field and Description |
|---|---|
protected List<Item> |
Tree.children
The folder's children.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
Item |
ContentStoreService.findItem(Context context,
String url)
Returns the content store item for the given url, returning null if not found.
|
Item |
ContentStoreService.getItem(Context context,
CachingOptions cachingOptions,
String url,
ItemProcessor processor)
Returns the content store item for the given url.
|
Item |
ContentStoreService.getItem(Context context,
String url)
Returns the content store item for the given url.
|
| 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.
|
List<Item> |
ContentStoreService.findChildren(Context context,
String url)
Returns the children of the folder at the given url, returning null if the folder can't be found.
|
List<Item> |
Tree.getChildren()
Returns the tree's children.
|
List<Item> |
ContentStoreService.getChildren(Context context,
CachingOptions cachingOptions,
String url,
ItemFilter filter,
ItemProcessor processor)
Returns the children of the folder at the given url.
|
List<Item> |
ContentStoreService.getChildren(Context context,
String url)
Returns the children of the folder at the given url.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
ItemFilter.accepts(Item item,
List<Item> acceptedItems,
List<Item> rejectedItems,
boolean runningBeforeProcessing)
Return true if the given item is accepted by the filter.
|
void |
Tree.addChild(Item child)
Adds a child.
|
boolean |
Tree.removeChild(Item child)
Removes a child.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
ItemFilter.accepts(Item item,
List<Item> acceptedItems,
List<Item> rejectedItems,
boolean runningBeforeProcessing)
Return true if the given item is accepted by the filter.
|
boolean |
ItemFilter.accepts(Item item,
List<Item> acceptedItems,
List<Item> rejectedItems,
boolean runningBeforeProcessing)
Return true if the given item is accepted by the filter.
|
void |
Tree.setChildren(List<Item> children)
Sets the tree's children.
|
| Constructor and Description |
|---|
Item(Item item)
Copy constructor.
|
Item(Item item,
boolean deepCopy)
Copy constructor.
|
Tree(Item item)
Copy constructor that takes an item and calls the
Item(Item). |
Tree(Item item,
boolean deepCopy)
Copy constructor that takes an item and calls the
Item(Item, boolean). |
| Modifier and Type | Method and Description |
|---|---|
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 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.
|
Item |
AbstractCachedContentStoreService.findItem(Context context,
CachingOptions cachingOptions,
String url,
ItemProcessor processor) |
Item |
AbstractCachedContentStoreService.findItem(Context context,
String url) |
Item |
AbstractCachedContentStoreService.getItem(Context context,
CachingOptions cachingOptions,
String url,
ItemProcessor processor) |
Item |
AbstractCachedContentStoreService.getItem(Context context,
String url) |
| Modifier and Type | Method and Description |
|---|---|
protected List<Item> |
ContentStoreServiceImpl.doFilter(List<Item> items,
ItemFilter filter,
boolean runningBeforeProcessing)
Filters the given list of items by using the specified filter.
|
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) |
List<Item> |
AbstractCachedContentStoreService.findChildren(Context context,
CachingOptions cachingOptions,
String url,
ItemFilter filter,
ItemProcessor processor) |
List<Item> |
AbstractCachedContentStoreService.findChildren(Context context,
String url) |
List<Item> |
AbstractCachedContentStoreService.getChildren(Context context,
CachingOptions cachingOptions,
String url,
ItemFilter filter,
ItemProcessor processor) |
List<Item> |
AbstractCachedContentStoreService.getChildren(Context context,
String url) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
CompositeItemFilter.accepts(Item item,
List<Item> acceptedItems,
List<Item> rejectedItems,
boolean runningBeforeProcessing)
If
runningBeforeProcessing is true, calls all filters that need to be run before processing. |
boolean |
ExcludeByUrlItemFilter.accepts(Item item,
List<Item> acceptedItems,
List<Item> rejectedItems,
boolean runningBeforeProcessing) |
boolean |
IncludeByUrlItemFilter.accepts(Item item,
List<Item> acceptedItems,
List<Item> rejectedItems,
boolean runningBeforeProcessing) |
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.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
CompositeItemFilter.accepts(Item item,
List<Item> acceptedItems,
List<Item> rejectedItems,
boolean runningBeforeProcessing)
If
runningBeforeProcessing is true, calls all filters that need to be run before processing. |
boolean |
CompositeItemFilter.accepts(Item item,
List<Item> acceptedItems,
List<Item> rejectedItems,
boolean runningBeforeProcessing)
If
runningBeforeProcessing is true, calls all filters that need to be run before processing. |
boolean |
ExcludeByUrlItemFilter.accepts(Item item,
List<Item> acceptedItems,
List<Item> rejectedItems,
boolean runningBeforeProcessing) |
boolean |
ExcludeByUrlItemFilter.accepts(Item item,
List<Item> acceptedItems,
List<Item> rejectedItems,
boolean runningBeforeProcessing) |
boolean |
IncludeByUrlItemFilter.accepts(Item item,
List<Item> acceptedItems,
List<Item> rejectedItems,
boolean runningBeforeProcessing) |
boolean |
IncludeByUrlItemFilter.accepts(Item item,
List<Item> acceptedItems,
List<Item> rejectedItems,
boolean runningBeforeProcessing) |
protected List<Item> |
ContentStoreServiceImpl.doFilter(List<Item> items,
ItemFilter filter,
boolean runningBeforeProcessing)
Filters the given list of items by using the specified filter.
|
| Modifier and Type | Method and Description |
|---|---|
Item |
ContentStoreAdapter.findItem(Context context,
CachingOptions cachingOptions,
String path,
boolean withDescriptor) |
| Modifier and Type | Method and Description |
|---|---|
List<Item> |
ContentStoreAdapter.findItems(Context context,
CachingOptions cachingOptions,
String path,
boolean withDescriptor) |
| Modifier and Type | Method and Description |
|---|---|
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) |
Item |
AbstractCachedContentStoreAdapter.findItem(Context context,
CachingOptions cachingOptions,
String path,
boolean withDescriptor) |
| Modifier and Type | Method and Description |
|---|---|
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) |
List<Item> |
AbstractCachedContentStoreAdapter.findItems(Context context,
CachingOptions cachingOptions,
String path,
boolean withDescriptor) |
Copyright © 2018 CrafterCMS. All rights reserved.