Uses of Class
org.craftercms.core.service.Item
Packages that use Item
Package
Description
-
Uses of Item in org.craftercms.core.controller.rest
Methods in org.craftercms.core.controller.rest that return ItemModifier and TypeMethodDescriptionContentStoreRestController.getItem(org.springframework.web.context.request.WebRequest request, javax.servlet.http.HttpServletResponse response, String contextId, String url, boolean flatten) Methods in org.craftercms.core.controller.rest that return types with arguments of type ItemModifier and TypeMethodDescriptionContentStoreRestController.getChildren(org.springframework.web.context.request.WebRequest request, javax.servlet.http.HttpServletResponse response, String contextId, String url, boolean flatten) -
Uses of Item in org.craftercms.core.processors
Methods in org.craftercms.core.processors that return ItemModifier and TypeMethodDescriptionItemProcessor.process(Context context, CachingOptions cachingOptions, Item item) Processes anItem.Methods in org.craftercms.core.processors with parameters of type ItemModifier and TypeMethodDescriptionItemProcessorResolver.getProcessor(Item item) Returns aItemProcessorfor a givenItem.ItemProcessor.process(Context context, CachingOptions cachingOptions, Item item) Processes anItem. -
Uses of Item in org.craftercms.core.processors.impl
Methods in org.craftercms.core.processors.impl that return ItemModifier and TypeMethodDescriptionprotected ItemIncludeDescriptorsProcessor.getItemToInclude(Context context, CachingOptions cachingOptions, String includeSrcPath) AbstractTaggingProcessor.process(Context context, CachingOptions cachingOptions, Item item) AttributeAddingProcessor.process(Context context, CachingOptions cachingOptions, Item item) FieldRenamingProcessor.process(Context context, CachingOptions cachingOptions, 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.ItemProcessorPipeline.process(Context context, CachingOptions cachingOptions, Item item) Processes the givenItem, by calling a pipeline of processors.ItemUrlTransformingProcessor.process(Context context, CachingOptions cachingOptions, Item item) SkipAllItemProcessor.process(Context context, CachingOptions cachingOptions, Item item) TextMetaDataCollectionExtractingProcessor.process(Context context, CachingOptions cachingOptions, Item item) For every XPath query provided inmetaDataNodesXPathQueries, 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.TextMetaDataExtractingProcessor.process(Context context, CachingOptions cachingOptions, Item item) For every XPath query provided inmetaDataNodesXPathQueries, a single node is selected and its text value is extracted and put in the item's properties.Methods in org.craftercms.core.processors.impl with parameters of type ItemModifier and TypeMethodDescriptionprotected voidAbstractTaggingProcessor.addNewField(Item item, String values) Tags the item adding the new field with the specified values.protected voidIncludeDescriptorsProcessor.doInclude(Item item, org.dom4j.Element includeElement, Item itemToInclude) protected abstract StringAbstractTaggingProcessor.getTagValues(Item item) If this method returns null or an empty string the item will not be tagged.protected StringTaggingByFieldValueProcessor.getTagValues(Item item) protected StringTaggingByPathProcessor.getTagValues(Item item) protected voidIncludeDescriptorsProcessor.includeDescriptors(Context context, CachingOptions cachingOptions, Item item) AbstractTaggingProcessor.process(Context context, CachingOptions cachingOptions, Item item) AttributeAddingProcessor.process(Context context, CachingOptions cachingOptions, Item item) FieldRenamingProcessor.process(Context context, CachingOptions cachingOptions, 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.ItemProcessorPipeline.process(Context context, CachingOptions cachingOptions, Item item) Processes the givenItem, by calling a pipeline of processors.ItemUrlTransformingProcessor.process(Context context, CachingOptions cachingOptions, Item item) SkipAllItemProcessor.process(Context context, CachingOptions cachingOptions, Item item) TextMetaDataCollectionExtractingProcessor.process(Context context, CachingOptions cachingOptions, Item item) For every XPath query provided inmetaDataNodesXPathQueries, 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.TextMetaDataExtractingProcessor.process(Context context, CachingOptions cachingOptions, Item item) For every XPath query provided inmetaDataNodesXPathQueries, a single node is selected and its text value is extracted and put in the item's properties. -
Uses of Item in org.craftercms.core.processors.impl.resolvers
Methods in org.craftercms.core.processors.impl.resolvers with parameters of type ItemModifier 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. -
Uses of Item in org.craftercms.core.processors.impl.template
Methods in org.craftercms.core.processors.impl.template that return ItemModifier and TypeMethodDescriptionTemplateProcessor.process(Context context, CachingOptions cachingOptions, Item item) Processes the content of certain nodes (found by theNodeScannerin the item's descriptor as templates, by compiling the node text templates through thetemplateCompilerand then processing the compiled template with a model returned bymodelFactory.Methods in org.craftercms.core.processors.impl.template with parameters of type ItemModifier and TypeMethodDescriptionReturns always theBeanFactoryof the current Spring application context as the model.Returns the model for a given template of a given node.TemplateProcessor.process(Context context, CachingOptions cachingOptions, Item item) Processes the content of certain nodes (found by theNodeScannerin the item's descriptor as templates, by compiling the node text templates through thetemplateCompilerand then processing the compiled template with a model returned bymodelFactory. -
Uses of Item in org.craftercms.core.service
Subclasses of Item in org.craftercms.core.serviceFields in org.craftercms.core.service with type parameters of type ItemMethods in org.craftercms.core.service that return ItemModifier and TypeMethodDescriptiondefault ItemReturns the content store item for the given url, returning null if not 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 ItemReturns the content store item for 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.Methods in org.craftercms.core.service that return types with arguments of type ItemModifier and TypeMethodDescriptionContentStoreService.findChildren(Context context, String url) 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) 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.ContentStoreService.getChildren(Context context, String url) Returns the children of the folder at the given url.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.Tree.getChildren()Returns the tree's children.Methods in org.craftercms.core.service with parameters of type ItemModifier and TypeMethodDescriptionbooleanItemFilter.accepts(Item item, List<Item> acceptedItems, List<Item> rejectedItems, boolean runningBeforeProcessing) Return true if the given item is accepted by the filter.voidAdds a child.booleanTree.removeChild(Item child) Removes a child.Method parameters in org.craftercms.core.service with type arguments of type ItemModifier and TypeMethodDescriptionbooleanItemFilter.accepts(Item item, List<Item> acceptedItems, List<Item> rejectedItems, boolean runningBeforeProcessing) Return true if the given item is accepted by the filter.voidTree.setChildren(List<Item> children) Sets the tree's children.Constructors in org.craftercms.core.service with parameters of type ItemModifierConstructorDescriptionCopy constructor.Copy constructor.Copy constructor that takes an item and calls theItem(Item).Copy constructor that takes an item and calls theItem(Item, boolean). -
Uses of Item in org.craftercms.core.service.impl
Methods in org.craftercms.core.service.impl that return ItemModifier and TypeMethodDescriptionprotected 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 ItemContentStoreServiceImpl.doMerging(Context context, CachingOptions cachingOptions, Item item) Executes merging for the specifiedItem: Gets theDescriptorMergeStrategyfor the item's descriptor from theDescriptorMergeStrategyResolver. 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 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.findItem(Context context, CachingOptions cachingOptions, String url, ItemProcessor processor, boolean flatten) AbstractCachedContentStoreService.getItem(Context context, CachingOptions cachingOptions, String url, ItemProcessor processor, boolean flatten) Methods in org.craftercms.core.service.impl that return types with arguments of type ItemModifier and TypeMethodDescriptionContentStoreServiceImpl.doFilter(List<Item> items, ItemFilter filter, boolean runningBeforeProcessing) Filters the given list of items by using the specified filter.AbstractCachedContentStoreService.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) AbstractCachedContentStoreService.findChildren(Context context, CachingOptions cachingOptions, String url, 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/filteredMethods in org.craftercms.core.service.impl with parameters of type ItemModifier and TypeMethodDescriptionbooleanCompositeItemFilter.accepts(Item item, List<Item> acceptedItems, List<Item> rejectedItems, boolean runningBeforeProcessing) IfrunningBeforeProcessingis true, calls all filters that need to be run before processing.booleanExcludeByUrlItemFilter.accepts(Item item, List<Item> acceptedItems, List<Item> rejectedItems, boolean runningBeforeProcessing) booleanIncludeByUrlItemFilter.accepts(Item item, List<Item> acceptedItems, List<Item> rejectedItems, boolean runningBeforeProcessing) protected ItemContentStoreServiceImpl.doMerging(Context context, CachingOptions cachingOptions, Item item) Executes merging for the specifiedItem: Gets theDescriptorMergeStrategyfor the item's descriptor from theDescriptorMergeStrategyResolver. 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 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.Method parameters in org.craftercms.core.service.impl with type arguments of type ItemModifier and TypeMethodDescriptionbooleanCompositeItemFilter.accepts(Item item, List<Item> acceptedItems, List<Item> rejectedItems, boolean runningBeforeProcessing) IfrunningBeforeProcessingis true, calls all filters that need to be run before processing.booleanExcludeByUrlItemFilter.accepts(Item item, List<Item> acceptedItems, List<Item> rejectedItems, boolean runningBeforeProcessing) booleanIncludeByUrlItemFilter.accepts(Item item, List<Item> acceptedItems, List<Item> rejectedItems, boolean runningBeforeProcessing) ContentStoreServiceImpl.doFilter(List<Item> items, ItemFilter filter, boolean runningBeforeProcessing) Filters the given list of items by using the specified filter. -
Uses of Item in org.craftercms.core.store
Methods in org.craftercms.core.store that return ItemModifier and TypeMethodDescriptionContentStoreAdapter.findItem(Context context, CachingOptions cachingOptions, String path, boolean withDescriptor) Methods in org.craftercms.core.store that return types with arguments of type Item -
Uses of Item in org.craftercms.core.store.impl
Methods in org.craftercms.core.store.impl that return ItemModifier and TypeMethodDescriptionprotected abstract ItemAbstractCachedContentStoreAdapter.doFindItem(Context context, CachingOptions cachingOptions, String path, boolean withDescriptor) protected ItemAbstractFileBasedContentStoreAdapter.doFindItem(Context context, CachingOptions cachingOptions, String path, boolean withDescriptor) AbstractCachedContentStoreAdapter.findItem(Context context, CachingOptions cachingOptions, String path, boolean withDescriptor) Methods in org.craftercms.core.store.impl that return types with arguments of type ItemModifier and TypeMethodDescriptionAbstractCachedContentStoreAdapter.doFindItems(Context context, CachingOptions cachingOptions, String path) AbstractFileBasedContentStoreAdapter.doFindItems(Context context, CachingOptions cachingOptions, String path) AbstractCachedContentStoreAdapter.findItems(Context context, CachingOptions cachingOptions, String path)