Uses of Class
org.craftercms.core.service.CachingOptions
Packages that use CachingOptions
Package
Description
-
Uses of CachingOptions in org.craftercms.core.processors
Methods in org.craftercms.core.processors with parameters of type CachingOptions -
Uses of CachingOptions in org.craftercms.core.processors.impl
Methods in org.craftercms.core.processors.impl with parameters of type CachingOptionsModifier and TypeMethodDescriptionprotected ItemIncludeDescriptorsProcessor.getItemToInclude(Context context, CachingOptions cachingOptions, String includeSrcPath) 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 CachingOptions in org.craftercms.core.processors.impl.template
Methods in org.craftercms.core.processors.impl.template with parameters of type CachingOptionsModifier 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. -
Uses of CachingOptions in org.craftercms.core.service
Fields in org.craftercms.core.service declared as CachingOptionsModifier and TypeFieldDescriptionstatic final CachingOptionsCachingOptions.CACHE_OFF_CACHING_OPTIONSstatic final CachingOptionsCachingOptions.DEFAULT_CACHING_OPTIONSMethods in org.craftercms.core.service with parameters of type CachingOptionsModifier and TypeMethodDescriptionbooleanContentStoreService.exists(Context context, CachingOptions cachingOptions, String url) Returns true if the file or folder at the specified URL existsContentStoreService.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.findContent(Context context, CachingOptions cachingOptions, String url) Returns the content of the file 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 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.ContentStoreService.getContent(Context context, CachingOptions cachingOptions, String url) Returns the content of the file 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.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.voidCacheService.put(Context context, Object key, Object value, CachingOptions cachingOptions, CacheLoader loader, Object... loaderParams) Puts and item in the scope of the given context. -
Uses of CachingOptions in org.craftercms.core.service.impl
Fields in org.craftercms.core.service.impl declared as CachingOptionsModifier and TypeFieldDescriptionprotected CachingOptionsAbstractCachedContentStoreService.defaultCachingOptionsThe default caching options to use when none are specified in the method.Methods in org.craftercms.core.service.impl with parameters of type CachingOptionsModifier and TypeMethodDescriptionprotected abstract booleanAbstractCachedContentStoreService.doExists(Context context, CachingOptions cachingOptions, String url) booleanContentStoreServiceImpl.doExists(Context context, CachingOptions cachingOptions, String url) 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) 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.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.booleanAbstractCachedContentStoreService.exists(Context context, CachingOptions cachingOptions, String url) AbstractCachedContentStoreService.findChildren(Context context, CachingOptions cachingOptions, String url, ItemFilter filter, ItemProcessor processor, boolean flatten) ContentStoreServiceImpl.findContent(Context context, CachingOptions cachingOptions, String url) 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/filteredContentStoreServiceImpl.getContent(Context context, CachingOptions cachingOptions, String url) Returns the content of the file for the given url.AbstractCachedContentStoreService.getItem(Context context, CachingOptions cachingOptions, String url, ItemProcessor processor, boolean flatten) AbstractCachedContentStoreService.getTree(Context context, CachingOptions cachingOptions, String url, int depth, ItemFilter filter, ItemProcessor processor, boolean flatten) voidCacheServiceImpl.put(Context context, Object key, Object value, CachingOptions cachingOptions, CacheLoader loader, Object... loaderParams) voidAbstractCachedContentStoreService.setDefaultCachingOptions(CachingOptions defaultCachingOptions) Sets the default caching options to use when none are specified in the method. -
Uses of CachingOptions in org.craftercms.core.store
Methods in org.craftercms.core.store with parameters of type CachingOptionsModifier and TypeMethodDescriptionbooleanContentStoreAdapter.exists(Context context, CachingOptions cachingOptions, String path) ContentStoreAdapter.findContent(Context context, CachingOptions cachingOptions, String path) ContentStoreAdapter.findItem(Context context, CachingOptions cachingOptions, String path, boolean withDescriptor) ContentStoreAdapter.findItems(Context context, CachingOptions cachingOptions, String path) -
Uses of CachingOptions in org.craftercms.core.store.impl
Fields in org.craftercms.core.store.impl declared as CachingOptionsModifier and TypeFieldDescriptionprotected CachingOptionsAbstractCachedContentStoreAdapter.defaultCachingOptionsMethods in org.craftercms.core.store.impl with parameters of type CachingOptionsModifier and TypeMethodDescriptionprotected abstract booleanAbstractCachedContentStoreAdapter.doExists(Context context, CachingOptions cachingOptions, String path) booleanAbstractFileBasedContentStoreAdapter.doExists(Context context, CachingOptions cachingOptions, String path) protected abstract ContentAbstractCachedContentStoreAdapter.doFindContent(Context context, CachingOptions cachingOptions, String path) protected ContentAbstractFileBasedContentStoreAdapter.doFindContent(Context context, CachingOptions cachingOptions, String path) protected abstract ItemAbstractCachedContentStoreAdapter.doFindItem(Context context, CachingOptions cachingOptions, String path, boolean withDescriptor) protected ItemAbstractFileBasedContentStoreAdapter.doFindItem(Context context, CachingOptions cachingOptions, String path, boolean withDescriptor) AbstractCachedContentStoreAdapter.doFindItems(Context context, CachingOptions cachingOptions, String path) AbstractFileBasedContentStoreAdapter.doFindItems(Context context, CachingOptions cachingOptions, String path) booleanAbstractCachedContentStoreAdapter.exists(Context context, CachingOptions cachingOptions, String path) AbstractCachedContentStoreAdapter.findContent(Context context, CachingOptions cachingOptions, String path) protected abstract FileAbstractFileBasedContentStoreAdapter.findFile(Context context, CachingOptions cachingOptions, String path) Returns theFileat the given path, returning null if not found.AbstractCachedContentStoreAdapter.findItem(Context context, CachingOptions cachingOptions, String path, boolean withDescriptor) AbstractCachedContentStoreAdapter.findItems(Context context, CachingOptions cachingOptions, String path) AbstractFileBasedContentStoreAdapter.getChildren(Context context, CachingOptions cachingOptions, File dir) Returns the list of children of the given directory.protected abstract ContentAbstractFileBasedContentStoreAdapter.getContent(Context context, CachingOptions cachingOptions, File file) Returns theContentfor the given file.voidAbstractCachedContentStoreAdapter.setDefaultCachingOptions(CachingOptions defaultCachingOptions) -
Uses of CachingOptions in org.craftercms.core.store.impl.filesystem
Methods in org.craftercms.core.store.impl.filesystem with parameters of type CachingOptionsModifier and TypeMethodDescriptionprotected FileFileSystemContentStoreAdapter.findFile(Context context, CachingOptions cachingOptions, String path) FileSystemContentStoreAdapter.getChildren(Context context, CachingOptions cachingOptions, File dir) protected ContentFileSystemContentStoreAdapter.getContent(Context context, CachingOptions cachingOptions, File file) -
Uses of CachingOptions in org.craftercms.core.url
Methods in org.craftercms.core.url with parameters of type CachingOptionsModifier and TypeMethodDescriptionUrlTransformationEngine.transformUrl(Context context, CachingOptions cachingOptions, String transformerName, String url) UrlTransformer.transformUrl(Context context, CachingOptions cachingOptions, String url) -
Uses of CachingOptions in org.craftercms.core.url.impl
Methods in org.craftercms.core.url.impl with parameters of type CachingOptionsModifier and TypeMethodDescriptionprotected abstract StringAbstractCachedUrlTransformationEngine.doTransformUrl(Context context, CachingOptions cachingOptions, String transformerName, String url) protected StringUrlTransformationEngineImpl.doTransformUrl(Context context, CachingOptions cachingOptions, String transformerName, String url) protected StringShortToLongUrlTransformer.getLongName(Context context, CachingOptions cachingOptions, String folderPath, String shortName) protected StringShortToLongUrlTransformer.getLongUrl(Context context, CachingOptions cachingOptions, String shortUrl, boolean useShortNameIfLongNameNotFound) AbstractCachedUrlTransformationEngine.transformUrl(Context context, CachingOptions cachingOptions, String transformerName, String url) AddContextPathUrlTransformer.transformUrl(Context context, CachingOptions cachingOptions, String url) AddDebugParamUrlTransformer.transformUrl(Context context, CachingOptions cachingOptions, String url) AddPrefixAndSuffixUrlTransformer.transformUrl(Context context, CachingOptions cachingOptions, String url) AddSchemeAndDomainAndServerPortUrlTransformer.transformUrl(Context context, CachingOptions cachingOptions, String url) AddServletPathUrlTransformer.transformUrl(Context context, CachingOptions cachingOptions, String url) ContentBundleShortToLongUrlTransformer.transformUrl(Context context, CachingOptions cachingOptions, String url) ExtractRequestAttributesUrlTransformer.transformUrl(Context context, CachingOptions cachingOptions, String url) LongToShortUrlTransformer.transformUrl(Context context, CachingOptions cachingOptions, String url) RemovePrefixAndSuffixUrlTransformer.transformUrl(Context context, CachingOptions cachingOptions, String url) ReplacePatternAllUrlTransformer.transformUrl(Context context, CachingOptions cachingOptions, String url) ReplaceSubstringUrlTransformer.transformUrl(Context context, CachingOptions cachingOptions, String url) ShortToLongUrlTransformer.transformUrl(Context context, CachingOptions cachingOptions, String url) UrlTransformerPipeline.transformUrl(Context context, CachingOptions cachingOptions, String url) -
Uses of CachingOptions in org.craftercms.core.util.cache
Methods in org.craftercms.core.util.cache with parameters of type CachingOptionsModifier and TypeMethodDescription<T> TCacheTemplate.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. -
Uses of CachingOptions in org.craftercms.core.util.cache.impl
Methods in org.craftercms.core.util.cache.impl with parameters of type CachingOptionsModifier and TypeMethodDescriptionprotected <T> TDefaultCacheTemplate.doPut(Context context, CachingOptions cachingOptions, org.craftercms.commons.lang.Callback<T> callback, Object key, T obj) <T> TDefaultCacheTemplate.getObject(Context context, CachingOptions cachingOptions, org.craftercms.commons.lang.Callback<T> callback, Object... keyElements) <T> TNoopCacheTemplate.getObject(Context context, CachingOptions options, org.craftercms.commons.lang.Callback<T> callback, Object... keyElements) protected <T> TDefaultCacheTemplate.loadAndPutInCache(Context context, CachingOptions cachingOptions, org.craftercms.commons.lang.Callback<T> callback, Object key) protected <T> TNonLockingCacheTemplate.loadAndPutInCache(Context context, CachingOptions options, org.craftercms.commons.lang.Callback<T> callback, Object key) -
Uses of CachingOptions in org.craftercms.core.xml.mergers
Methods in org.craftercms.core.xml.mergers with parameters of type CachingOptionsModifier and TypeMethodDescriptionDescriptorMergeStrategy.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.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. -
Uses of CachingOptions in org.craftercms.core.xml.mergers.impl.strategies
Methods in org.craftercms.core.xml.mergers.impl.strategies with parameters of type CachingOptionsModifier and TypeMethodDescriptionprotected abstract voidAbstractInheritFromHierarchyMergeStrategy.addInheritedDescriptorsInFolder(Context context, CachingOptions cachingOptions, List<MergeableDescriptor> inheritedDescriptors, String folder, String mainDescriptorUrl, org.dom4j.Document mainDescriptorDom) protected voidCompositeInheritFromHierarchyMergeStrategy.addInheritedDescriptorsInFolder(Context context, CachingOptions cachingOptions, List<MergeableDescriptor> inheritedDescriptors, String folder, String mainDescriptorUrl, org.dom4j.Document mainDescriptorDom) protected voidInheritLevelsMergeStrategy.addInheritedDescriptorsInFolder(Context context, CachingOptions cachingOptions, List<MergeableDescriptor> inheritedDescriptors, String folder, String mainDescriptorUrl, org.dom4j.Document mainDescriptorDom) protected voidInheritVersionsMergeStrategy.addInheritedDescriptorsInFolder(Context context, CachingOptions cachingOptions, List<MergeableDescriptor> inheritedDescriptors, String folder, String mainDescriptorUrl, org.dom4j.Document mainDescriptorDom) protected org.dom4j.DocumentContentBundleMergeStrategy.getDescriptorDom(Context context, CachingOptions cachingOptions, String url) protected org.dom4j.DocumentExplicitParentMergeStrategy.getDescriptorDom(Context context, CachingOptions cachingOptions, String url) AbstractInheritFromHierarchyMergeStrategy.getDescriptors(Context context, CachingOptions cachingOptions, String mainDescriptorUrl, org.dom4j.Document mainDescriptorDom) AbstractInheritFromHierarchyMergeStrategy.getDescriptors(Context context, CachingOptions cachingOptions, String mainDescriptorUrl, org.dom4j.Document mainDescriptorDom, boolean mainDescriptorOptional) ContentBundleMergeStrategy.getDescriptors(Context context, CachingOptions cachingOptions, String mainDescriptorUrl, org.dom4j.Document mainDescriptorDom) ContentBundleMergeStrategy.getDescriptors(Context context, CachingOptions cachingOptions, String mainDescriptorUrl, org.dom4j.Document mainDescriptorDom, boolean mainDescriptorOptional) ExplicitParentMergeStrategy.getDescriptors(Context context, CachingOptions cachingOptions, String mainDescriptorUrl, org.dom4j.Document mainDescriptorDom) ExplicitParentMergeStrategy.getDescriptors(Context context, CachingOptions cachingOptions, String mainDescriptorUrl, org.dom4j.Document mainDescriptorDom, boolean mainDescriptorOptional) SingleFileMergeStrategy.getDescriptors(Context context, CachingOptions cachingOptions, String mainDescriptorUrl, org.dom4j.Document mainDescriptorDom) SingleFileMergeStrategy.getDescriptors(Context context, CachingOptions cachingOptions, String mainDescriptorUrl, org.dom4j.Document mainDescriptorDom, boolean mainDescriptorOptional)