Uses of Class
org.craftercms.core.exception.InvalidContextException
-
-
Uses of InvalidContextException in org.craftercms.core.controller.rest
Methods in org.craftercms.core.controller.rest with parameters of type InvalidContextException Modifier and Type Method Description Map<String,Object>ExceptionHandlers. handleInvalidContextException(javax.servlet.http.HttpServletRequest request, InvalidContextException e)Methods in org.craftercms.core.controller.rest that throw InvalidContextException Modifier and Type Method Description Map<String,Object>CacheRestController. clearScope(String contextId, String token)List<Item>ContentStoreRestController. getChildren(org.springframework.web.context.request.WebRequest request, javax.servlet.http.HttpServletResponse response, String contextId, String url, boolean flatten)org.dom4j.DocumentContentStoreRestController. getDescriptor(org.springframework.web.context.request.WebRequest request, javax.servlet.http.HttpServletResponse response, String contextId, String url, boolean flatten)Deprecated.Will be removed in 4.1, usegetIteminsteadItemContentStoreRestController. getItem(org.springframework.web.context.request.WebRequest request, javax.servlet.http.HttpServletResponse response, String contextId, String url, boolean flatten)TreeContentStoreRestController. getTree(org.springframework.web.context.request.WebRequest request, javax.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 InvalidContextException Modifier and Type Method Description voidCacheService. clearScope(Context context)Clears the contents of the scope of the given context.booleanContentStoreService. exists(Context context, String url)Returns 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 existsdefault 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.default 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, 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.ContentContentStoreService. 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, String url)Returns 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.ItemContentStoreService. 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, String url)Returns the folder at the given url as a tree, or null if the folder wasn't found.default TreeContentStoreService. findTree(Context context, String url, int depth)Returns 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.TreeContentStoreService. 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.ObjectCacheService. get(Context context, Object key)Retrieves an item's value from the scope of the given context, or null if not found.default List<Item>ContentStoreService. getChildren(Context context, String url)Returns the children of the folder at the given url.default 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, CachingOptions cachingOptions, String url, ItemFilter filter, ItemProcessor processor, boolean flatten)Returns the children of the folder at the given url.ContentContentStoreService. getContent(Context context, CachingOptions cachingOptions, String url)Returns the content of the file for the given url.CacheItemCacheService. getItem(Context context, Object key)Retrieves an item from the scope of the given context, or null if not found.default ItemContentStoreService. getItem(Context context, String url)Returns 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.ItemContentStoreService. getItem(Context context, CachingOptions cachingOptions, String url, ItemProcessor processor, boolean flatten)Returns the content store item for the given url.Collection<?>CacheService. getKeys(Context context)Returns a list of the keys of the items present in the scope of the given context.intCacheService. getSize(Context context)Returns the quantity of items present in scope of the given context.default TreeContentStoreService. getTree(Context context, String url)Returns the folder at the given url as a tree.default TreeContentStoreService. getTree(Context context, String url, int depth)Returns 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.TreeContentStoreService. 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.booleanCacheService. hasKey(Context context, Object key)Returns true if there's and item with the specified key in the scope of the given context.booleanCacheService. hasScope(Context context)Returns true if the scope of the given context exists.voidCacheService. put(Context context, Object key, Object value)Puts 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.booleanCacheService. remove(Context context, Object key)Removes 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 InvalidContextException Modifier and Type Method Description voidCacheServiceImpl. 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)protected abstract List<Item>AbstractCachedContentStoreService. doFindChildren(Context context, CachingOptions cachingOptions, String url, ItemFilter filter, ItemProcessor processor, boolean flatten)protected List<Item>ContentStoreServiceImpl. doFindChildren(Context context, CachingOptions cachingOptions, String url, Integer depth, ItemFilter filter, ItemProcessor processor, boolean flatten)Does the following:protected List<Item>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)booleanAbstractCachedContentStoreService. exists(Context context, String url)booleanAbstractCachedContentStoreService. exists(Context context, CachingOptions cachingOptions, String url)List<Item>AbstractCachedContentStoreService. findChildren(Context context, CachingOptions cachingOptions, String url, ItemFilter filter, ItemProcessor processor, boolean flatten)ContentContentStoreServiceImpl. findContent(Context context, CachingOptions cachingOptions, String url)ItemAbstractCachedContentStoreService. findItem(Context context, CachingOptions cachingOptions, String url, ItemProcessor processor, boolean flatten)TreeAbstractCachedContentStoreService. findTree(Context context, CachingOptions cachingOptions, String url, int depth, ItemFilter filter, ItemProcessor processor, boolean flatten)ObjectCacheServiceImpl. get(Context context, Object key)List<Item>AbstractCachedContentStoreService. getChildren(Context context, CachingOptions cachingOptions, String url, ItemFilter filter, ItemProcessor processor, boolean flatten)ItemAbstractCachedContentStoreService. getItem(Context context, CachingOptions cachingOptions, String url, ItemProcessor processor, boolean flatten)CacheItemCacheServiceImpl. getItem(Context context, Object key)Collection<?>CacheServiceImpl. getKeys(Context context)intCacheServiceImpl. getSize(Context context)TreeAbstractCachedContentStoreService. getTree(Context context, CachingOptions cachingOptions, String url, int depth, ItemFilter filter, ItemProcessor processor, boolean flatten)booleanCacheServiceImpl. hasKey(Context context, Object key)booleanCacheServiceImpl. hasScope(Context context)voidCacheServiceImpl. put(Context context, Object key, Object value)voidCacheServiceImpl. put(Context context, Object key, Object value, CachingOptions cachingOptions, CacheLoader loader, Object... loaderParams)booleanCacheServiceImpl. remove(Context context, Object key)voidCacheServiceImpl. removeScope(Context context) -
Uses of InvalidContextException in org.craftercms.core.store
Methods in org.craftercms.core.store that throw InvalidContextException Modifier and Type Method Description booleanContentStoreAdapter. exists(Context context, CachingOptions cachingOptions, String path)ContentContentStoreAdapter. findContent(Context context, CachingOptions cachingOptions, String path)ItemContentStoreAdapter. findItem(Context context, CachingOptions cachingOptions, String path, boolean withDescriptor)List<Item>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 InvalidContextException Modifier and Type Method Description protected 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)protected abstract List<Item>AbstractCachedContentStoreAdapter. doFindItems(Context context, CachingOptions cachingOptions, String path)protected List<Item>AbstractFileBasedContentStoreAdapter. doFindItems(Context context, CachingOptions cachingOptions, String path)booleanAbstractCachedContentStoreAdapter. exists(Context context, CachingOptions cachingOptions, String path)ContentAbstractCachedContentStoreAdapter. 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.ItemAbstractCachedContentStoreAdapter. findItem(Context context, CachingOptions cachingOptions, String path, boolean withDescriptor)List<Item>AbstractCachedContentStoreAdapter. findItems(Context context, CachingOptions cachingOptions, String path)protected abstract List<File>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 InvalidContextException Modifier and Type Method Description voidFileSystemContentStoreAdapter. destroyContext(Context context)protected ContentFileSystemContentStoreAdapter. getContent(Context context, CachingOptions cachingOptions, File file)booleanFileSystemContentStoreAdapter. validate(Context context)
-