Uses of Class
org.craftercms.core.exception.InvalidContextException
Packages that use InvalidContextException
Package
Description
-
Uses of InvalidContextException in org.craftercms.core.controller.rest
Methods in org.craftercms.core.controller.rest with parameters of type InvalidContextExceptionModifier and TypeMethodDescriptionExceptionHandlers.handleInvalidContextException(jakarta.servlet.http.HttpServletRequest request, InvalidContextException e) Methods in org.craftercms.core.controller.rest that throw InvalidContextExceptionModifier and TypeMethodDescriptionCacheRestController.clearScope(String contextId, String token) ContentStoreRestController.getChildren(org.springframework.web.context.request.WebRequest request, jakarta.servlet.http.HttpServletResponse response, String contextId, String url, boolean flatten) org.dom4j.DocumentContentStoreRestController.getDescriptor(org.springframework.web.context.request.WebRequest request, jakarta.servlet.http.HttpServletResponse response, String contextId, String url, boolean flatten) Deprecated.ContentStoreRestController.getItem(org.springframework.web.context.request.WebRequest request, jakarta.servlet.http.HttpServletResponse response, String contextId, String url, boolean flatten) ContentStoreRestController.getTree(org.springframework.web.context.request.WebRequest request, jakarta.servlet.http.HttpServletResponse response, String contextId, String url, Integer depth, boolean flatten) -
Uses of InvalidContextException in org.craftercms.core.service
Methods in org.craftercms.core.service that throw InvalidContextExceptionModifier and TypeMethodDescriptionvoidCacheService.clearScope(Context context) Clears the contents of the scope of the given context.booleanReturns true if the file or folder at the specified URL existsbooleanContentStoreService.exists(Context context, CachingOptions cachingOptions, String url) Returns true if the file or folder at the specified URL existsContentStoreService.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.default ContentContentStoreService.findContent(Context context, String url) Returns the content of the file for the given url, returning null if not 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 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 TreeReturns the folder at the given url as a tree, or null if the folder wasn't found.default TreeReturns the folder at the given url as a tree, or null if the folder wasn't 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.Retrieves an item's value from the scope of the given context, or null if not 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.ContentStoreService.getContent(Context context, CachingOptions cachingOptions, String url) Returns the content of the file for the given url.Retrieves an item from the scope of the given context, or 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.Collection<?> Returns a list of the keys of the items present in the scope of the given context.intReturns the quantity of items present in scope of the given context.default TreeReturns the folder at the given url as a tree.default TreeReturns the folder at the given url as a tree.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.booleanReturns true if there's and item with the specified key in the scope of the given context.booleanReturns true if the scope of the given context exists.voidPuts an item in the scope of the given context.voidCacheService.put(Context context, Object key, Object value, CachingOptions cachingOptions, CacheLoader loader, Object... loaderParams) Puts and item in the scope of the given context.booleanRemoves an item from the scope of the given context.voidCacheService.removeScope(Context context) Removes the scope associated to the given context -
Uses of InvalidContextException in org.craftercms.core.service.impl
Methods in org.craftercms.core.service.impl that throw InvalidContextExceptionModifier and TypeMethodDescriptionvoidCacheServiceImpl.clearScope(Context context) booleanContentStoreServiceImpl.destroyContext(Context context) Destroys the specified context, login out of any remote repository (if a login was issued) and destroying the cache scope associated to the context.protected 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) booleanbooleanAbstractCachedContentStoreService.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) AbstractCachedContentStoreService.getItem(Context context, CachingOptions cachingOptions, String url, ItemProcessor processor, boolean flatten) Collection<?> intAbstractCachedContentStoreService.getTree(Context context, CachingOptions cachingOptions, String url, int depth, ItemFilter filter, ItemProcessor processor, boolean flatten) booleanbooleanvoidvoidCacheServiceImpl.put(Context context, Object key, Object value, CachingOptions cachingOptions, CacheLoader loader, Object... loaderParams) booleanvoidCacheServiceImpl.removeScope(Context context) -
Uses of InvalidContextException in org.craftercms.core.store
Methods in org.craftercms.core.store that throw InvalidContextExceptionModifier 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 InvalidContextException in org.craftercms.core.store.impl
Methods in org.craftercms.core.store.impl that throw InvalidContextExceptionModifier and TypeMethodDescriptionprotected abstract booleanAbstractCachedContentStoreAdapter.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. -
Uses of InvalidContextException in org.craftercms.core.store.impl.filesystem
Methods in org.craftercms.core.store.impl.filesystem that throw InvalidContextExceptionModifier and TypeMethodDescriptionvoidFileSystemContentStoreAdapter.destroyContext(Context context) protected ContentFileSystemContentStoreAdapter.getContent(Context context, CachingOptions cachingOptions, File file) boolean
getIteminstead