Uses of Interface
org.craftercms.core.processors.ItemProcessor
Packages that use ItemProcessor
Package
Description
-
Uses of ItemProcessor in org.craftercms.core.processors
Methods in org.craftercms.core.processors that return ItemProcessorModifier and TypeMethodDescriptionItemProcessorResolver.getProcessor(Item item) Returns aItemProcessorfor a givenItem. -
Uses of ItemProcessor in org.craftercms.core.processors.impl
Classes in org.craftercms.core.processors.impl that implement ItemProcessorModifier and TypeClassDescriptionclassBaseItemProcessorto add a new field to documents.classCreated by alfonso on 2/21/17.classCreated by alfonso on 2/21/17.classItemProcessorthat finds special "include" tags found in a descriptor document and inserts there the document tree of descriptors specified in these "include" tags.classPipeline ofItemProcessors.classItemProcessorthat takes the item url, transforms it by calling the transformation engine, and places the transformed url in the properties.classExtension ofIncludeDescriptorsProcessorthat prevents pages from being included whendisablePageInclusionis true.classNo-opItemProcessorexclusive implementation.classItemProcessorthat adds a new tag or field to items that have a certain tag/field and value.classItemProcessorthat adds a new tag or field to items on specific paths.classItemProcessorthat extracts a list of text values from descriptor XPath-selected nodes and sets them as the properties of the item.classItemProcessorthat extracts single text values from descriptor XPath-selected nodes and sets them as the properties of the item.Fields in org.craftercms.core.processors.impl declared as ItemProcessorModifier and TypeFieldDescriptionprotected ItemProcessorIncludeDescriptorsProcessor.includedItemsProcessorProcessor to use for included items.Fields in org.craftercms.core.processors.impl with type parameters of type ItemProcessorModifier and TypeFieldDescriptionprotected List<ItemProcessor>ItemProcessorPipeline.processorsList of processors which conforms the pipelineMethods in org.craftercms.core.processors.impl with parameters of type ItemProcessorModifier and TypeMethodDescriptionvoidItemProcessorPipeline.addProcessor(ItemProcessor processor) Adds a processor to the pipeline of processors.booleanItemProcessorPipeline.removeProcessor(ItemProcessor processor) Removes a processor from the pipeline of processors.voidIncludeDescriptorsProcessor.setIncludedItemsProcessor(ItemProcessor includedItemsProcessor) Sets the processor to use for included items.Method parameters in org.craftercms.core.processors.impl with type arguments of type ItemProcessorModifier and TypeMethodDescriptionvoidItemProcessorPipeline.addProcessors(Collection<ItemProcessor> processors) Adds several processors to the pipeline of processors.voidItemProcessorPipeline.setProcessors(List<ItemProcessor> processors) Sets the list of processors.Constructors in org.craftercms.core.processors.impl with parameters of type ItemProcessorModifierConstructorDescriptionItemProcessorPipeline(ItemProcessor... processors) Constructor that receives the list of processors (as an array) which conform the pipeline.Constructor parameters in org.craftercms.core.processors.impl with type arguments of type ItemProcessorModifierConstructorDescriptionItemProcessorPipeline(List<ItemProcessor> processors) Constructor that receives the list of processors which conform the pipeline. -
Uses of ItemProcessor in org.craftercms.core.processors.impl.resolvers
Fields in org.craftercms.core.processors.impl.resolvers declared as ItemProcessorModifier and TypeFieldDescriptionprotected ItemProcessorItemProcessorResolverChain.defaultProcessorThe default processor to use if no resolver returns a processor.Fields in org.craftercms.core.processors.impl.resolvers with type parameters of type ItemProcessorModifier and TypeFieldDescriptionprotected Map<String,ItemProcessor> MetaDataProcessorResolver.elementValueToProcessorMappingsMappings of processor element values to processor names.protected Map<String,ItemProcessor> UrlPatternProcessorResolver.patternToProcessorMappingsMappings of url patterns to processor names.Methods in org.craftercms.core.processors.impl.resolvers that return ItemProcessorModifier and TypeMethodDescriptionItemProcessorResolverChain.getProcessor(Item item) Returns theItemProcessorto use for the given item.MetaDataProcessorResolver.getProcessor(Item item) Looks for the processor element (by querying it with theprocessorElementXPathQuery) in the item's descriptor.SingleProcessorResolver.getProcessor(Item item) Returns the same processor for any item.UrlPatternProcessorResolver.getProcessor(Item item) If the item url matches one of the patterns defined inpatternToProcessorMappings, the processor mapped to that pattern is returned.Methods in org.craftercms.core.processors.impl.resolvers with parameters of type ItemProcessorModifier and TypeMethodDescriptionvoidItemProcessorResolverChain.setDefaultProcessor(ItemProcessor defaultProcessor) Sets the default to use if no resolver returns a processor.voidSingleProcessorResolver.setProcessor(ItemProcessor processor) Sets the processor to always return.Method parameters in org.craftercms.core.processors.impl.resolvers with type arguments of type ItemProcessorModifier and TypeMethodDescriptionvoidMetaDataProcessorResolver.setElementValueToProcessorMappings(Map<String, ItemProcessor> elementValueToProcessorMappings) Sets the mappings of processor element values to processor names.voidUrlPatternProcessorResolver.setPatternToProcessorMappings(Map<String, ItemProcessor> patternToProcessorMappings) Sets the mappings of url patterns to processor names. -
Uses of ItemProcessor in org.craftercms.core.processors.impl.template
Classes in org.craftercms.core.processors.impl.template that implement ItemProcessorModifier and TypeClassDescriptionclassItemProcessorthat processes the content of certain XML nodes in item descriptors as templates. -
Uses of ItemProcessor in org.craftercms.core.service
Methods in org.craftercms.core.service with parameters of type ItemProcessorModifier and TypeMethodDescriptionContentStoreService.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.ContentStoreService.findChildren(Context context, CachingOptions cachingOptions, String url, ItemFilter filter, ItemProcessor processor, boolean flatten) Returns the children of the folder at the given url, returning null if the folder can't be found.default ItemContentStoreService.findItem(Context context, CachingOptions cachingOptions, String url, ItemProcessor processor) Returns the content store item for the given url, returning null if not found.ContentStoreService.findItem(Context context, CachingOptions cachingOptions, String url, ItemProcessor processor, boolean flatten) Returns the content store item for the given url, returning null if not found.default TreeContentStoreService.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.ContentStoreService.findTree(Context context, CachingOptions cachingOptions, String url, int depth, ItemFilter filter, ItemProcessor processor, boolean flatten) Returns the folder at the given url as a tree, or null if the folder wasn't found.ContentStoreService.getChildren(Context context, CachingOptions cachingOptions, String url, ItemFilter filter, ItemProcessor processor) Returns the children of the folder at the given url.ContentStoreService.getChildren(Context context, CachingOptions cachingOptions, String url, ItemFilter filter, ItemProcessor processor, boolean flatten) Returns the children of the folder at the given url.default ItemContentStoreService.getItem(Context context, CachingOptions cachingOptions, String url, ItemProcessor processor) Returns the content store item for the given url.ContentStoreService.getItem(Context context, CachingOptions cachingOptions, String url, ItemProcessor processor, boolean flatten) Returns the content store item for the given url.default TreeContentStoreService.getTree(Context context, CachingOptions cachingOptions, String url, int depth, ItemFilter filter, ItemProcessor processor) Returns the folder at the given url as a tree.ContentStoreService.getTree(Context context, CachingOptions cachingOptions, String url, int depth, ItemFilter filter, ItemProcessor processor, boolean flatten) Returns the folder at the given url as a tree. -
Uses of ItemProcessor in org.craftercms.core.service.impl
Fields in org.craftercms.core.service.impl declared as ItemProcessorModifier and TypeFieldDescriptionprotected ItemProcessorAbstractCachedContentStoreService.flatteningProcessorItem processor used for flattening descriptorsMethods in org.craftercms.core.service.impl that return ItemProcessorModifier and TypeMethodDescriptionprotected ItemProcessorAbstractCachedContentStoreService.getProcessor(ItemProcessor processor, boolean flatten) Methods in org.craftercms.core.service.impl with parameters of type ItemProcessorModifier and TypeMethodDescriptionAbstractCachedContentStoreService.doFindChildren(Context context, CachingOptions cachingOptions, String url, ItemFilter filter, ItemProcessor processor, boolean flatten) ContentStoreServiceImpl.doFindChildren(Context context, CachingOptions cachingOptions, String url, Integer depth, ItemFilter filter, ItemProcessor processor, boolean flatten) Does the following: Retrieves the children from the underlying repository (without their descriptors). Filters the returned list ifItemFilter.runBeforeProcessing()returnstrue. CallsContentStoreService.getTree(Context, String)orContentStoreService.getItem(Context, String)for each item in the list (depending on whether the item is a folder or not, and ifdepthis not null), to obtain the merged and processed version of each item. Filters the processed list ifItemFilter.runAfterProcessing()returnstrue. Returns the final list of processed items.ContentStoreServiceImpl.doFindChildren(Context context, CachingOptions cachingOptions, String url, ItemFilter filter, ItemProcessor processor, boolean flatten) protected abstract ItemAbstractCachedContentStoreService.doFindItem(Context context, CachingOptions cachingOptions, String url, ItemProcessor processor) protected ItemContentStoreServiceImpl.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 TreeAbstractCachedContentStoreService.doFindTree(Context context, CachingOptions cachingOptions, String url, int depth, ItemFilter filter, ItemProcessor processor, boolean flatten) protected TreeContentStoreServiceImpl.doFindTree(Context context, CachingOptions cachingOptions, String url, int depth, ItemFilter filter, ItemProcessor processor, boolean flatten) protected ItemContentStoreServiceImpl.doProcessing(Context context, CachingOptions cachingOptions, Item item, ItemProcessor additionalProcessor) Executes processing for the specifiedItem: Gets the mainItemProcessorfor the item from theItemProcessorResolver. Calls the main processor'sprocessmethod to process the item. If an additional processor was passed to this method, the additional processor is also called. Returns the processed item.AbstractCachedContentStoreService.findChildren(Context context, CachingOptions cachingOptions, String url, ItemFilter filter, ItemProcessor processor, boolean flatten) AbstractCachedContentStoreService.findItem(Context context, CachingOptions cachingOptions, String url, ItemProcessor processor, boolean flatten) AbstractCachedContentStoreService.findTree(Context context, CachingOptions cachingOptions, String url, int depth, ItemFilter filter, ItemProcessor processor, boolean flatten) AbstractCachedContentStoreService.getChildren(Context context, CachingOptions cachingOptions, String url, ItemFilter filter, ItemProcessor processor, boolean flatten) ContentStoreServiceImpl.getChildrenInternal(Context context, CachingOptions cachingOptions, String url, ItemProcessor processor, boolean flatten) This method is meant to be overridden when the children need to be further processed/filteredAbstractCachedContentStoreService.getItem(Context context, CachingOptions cachingOptions, String url, ItemProcessor processor, boolean flatten) protected ItemProcessorAbstractCachedContentStoreService.getProcessor(ItemProcessor processor, boolean flatten) AbstractCachedContentStoreService.getTree(Context context, CachingOptions cachingOptions, String url, int depth, ItemFilter filter, ItemProcessor processor, boolean flatten) voidAbstractCachedContentStoreService.setFlatteningProcessor(ItemProcessor flatteningProcessor)