| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
RestControllerBase.handleInvalidContextException(javax.servlet.http.HttpServletRequest request,
InvalidContextException e) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
CacheRestController.clearScope(String contextId) |
Map<String,Object> |
ContentStoreRestController.getChildren(org.springframework.web.context.request.WebRequest request,
javax.servlet.http.HttpServletResponse response,
String contextId,
String url) |
Map<String,Object> |
ContentStoreRestController.getDescriptor(org.springframework.web.context.request.WebRequest request,
javax.servlet.http.HttpServletResponse response,
String contextId,
String url) |
Map<String,Object> |
ContentStoreRestController.getItem(org.springframework.web.context.request.WebRequest request,
javax.servlet.http.HttpServletResponse response,
String contextId,
String url) |
Map<String,Object> |
ContentStoreRestController.getTree(org.springframework.web.context.request.WebRequest request,
javax.servlet.http.HttpServletResponse response,
String contextId,
String url,
Integer depth) |
| Modifier and Type | Method and Description |
|---|---|
void |
CacheService.clearScope(Context context)
Clears the contents of the scope of the given context.
|
boolean |
ContentStoreService.exists(Context context,
String url)
Returns true if the file or folder at the specified URL exists
|
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,
String url)
Returns the children of the folder at the given url, returning null if the folder can't be found.
|
Content |
ContentStoreService.findContent(Context context,
CachingOptions cachingOptions,
String url)
Returns the content of the file for the given url, returning null if not found.
|
Content |
ContentStoreService.findContent(Context context,
String url)
Returns the content of the file for the given url, returning null if not found.
|
Item |
ContentStoreService.findItem(Context context,
CachingOptions cachingOptions,
String url,
ItemProcessor processor)
Returns the content store item for the given url, returning null if not found.
|
Item |
ContentStoreService.findItem(Context context,
String url)
Returns the content store item for the given url, returning null if not found.
|
Tree |
ContentStoreService.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.
|
Tree |
ContentStoreService.findTree(Context context,
String url)
Returns the folder at the given url as a tree, or null if the folder wasn't found.
|
Tree |
ContentStoreService.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.
|
Object |
CacheService.get(Context context,
Object key)
Retrieves an item's value from the scope of the given context, or null if not found.
|
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,
String url)
Returns the children of the folder at the given url.
|
Content |
ContentStoreService.getContent(Context context,
CachingOptions cachingOptions,
String url)
Returns the content of the file for the given url.
|
Content |
ContentStoreService.getContent(Context context,
String url)
Returns the content of the file for the given url.
|
Item |
ContentStoreService.getItem(Context context,
CachingOptions cachingOptions,
String url,
ItemProcessor processor)
Returns the content store item for the given url.
|
CacheItem |
CacheService.getItem(Context context,
Object key)
Retrieves an item from the scope of the given context, or null if not found.
|
Item |
ContentStoreService.getItem(Context context,
String url)
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.
|
int |
CacheService.getSize(Context context)
Returns the quantity of items present in scope of the given context.
|
Tree |
ContentStoreService.getTree(Context context,
CachingOptions cachingOptions,
String url,
int depth,
ItemFilter filter,
ItemProcessor processor)
Returns the folder at the given url as a tree.
|
Tree |
ContentStoreService.getTree(Context context,
String url)
Returns the folder at the given url as a tree.
|
Tree |
ContentStoreService.getTree(Context context,
String url,
int depth)
Returns the folder at the given url as a tree.
|
boolean |
CacheService.hasKey(Context context,
Object key)
Returns true if there's and item with the specified key in the scope of the given context.
|
boolean |
CacheService.hasScope(Context context)
Returns true if the scope of the given context exists.
|
void |
CacheService.put(Context context,
Object key,
Object value)
Puts an item in the scope of the given context.
|
void |
CacheService.put(Context context,
Object key,
Object value,
CachingOptions cachingOptions,
CacheLoader loader,
Object... loaderParams)
Puts and item in the scope of the given context.
|
boolean |
CacheService.remove(Context context,
Object key)
Removes an item from the scope of the given context.
|
void |
CacheService.removeScope(Context context)
Removes the scope associated to the given context
|
| Modifier and Type | Method and Description |
|---|---|
void |
CacheServiceImpl.clearScope(Context context) |
boolean |
ContentStoreServiceImpl.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 List<Item> |
ContentStoreServiceImpl.doFindChildren(Context context,
CachingOptions cachingOptions,
String url,
Integer depth,
ItemFilter filter,
ItemProcessor processor)
Does the following:
Retrieves the children from the underlying repository (without their descriptors).
Filters the returned list if
ItemFilter.runBeforeProcessing() returns true.
Calls AbstractCachedContentStoreService.getTree(Context, String) or AbstractCachedContentStoreService.getItem(Context, String) for each item in the list
(depending on whether the item is a folder or not, and if depth is not null), to obtain the
merged and processed version of each item.
Filters the processed list if ItemFilter.runAfterProcessing() returns true.
Returns the final list of processed items.
|
protected List<Item> |
ContentStoreServiceImpl.doFindChildren(Context context,
CachingOptions cachingOptions,
String url,
ItemFilter filter,
ItemProcessor processor) |
protected abstract List<Item> |
AbstractCachedContentStoreService.doFindChildren(Context context,
CachingOptions cachingOptions,
String url,
ItemFilter filter,
ItemProcessor processor) |
protected Item |
ContentStoreServiceImpl.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 Item |
AbstractCachedContentStoreService.doFindItem(Context context,
CachingOptions cachingOptions,
String url,
ItemProcessor processor) |
protected Tree |
ContentStoreServiceImpl.doFindTree(Context context,
CachingOptions cachingOptions,
String url,
int depth,
ItemFilter filter,
ItemProcessor processor) |
protected abstract Tree |
AbstractCachedContentStoreService.doFindTree(Context context,
CachingOptions cachingOptions,
String url,
int depth,
ItemFilter filter,
ItemProcessor processor) |
boolean |
ContentStoreServiceImpl.exists(Context context,
String url) |
List<Item> |
AbstractCachedContentStoreService.findChildren(Context context,
CachingOptions cachingOptions,
String url,
ItemFilter filter,
ItemProcessor processor) |
List<Item> |
AbstractCachedContentStoreService.findChildren(Context context,
String url) |
Content |
ContentStoreServiceImpl.findContent(Context context,
CachingOptions cachingOptions,
String url) |
Content |
ContentStoreServiceImpl.findContent(Context context,
String url) |
Item |
AbstractCachedContentStoreService.findItem(Context context,
CachingOptions cachingOptions,
String url,
ItemProcessor processor) |
Item |
AbstractCachedContentStoreService.findItem(Context context,
String url) |
Tree |
AbstractCachedContentStoreService.findTree(Context context,
CachingOptions cachingOptions,
String url,
int depth,
ItemFilter filter,
ItemProcessor processor) |
Tree |
AbstractCachedContentStoreService.findTree(Context context,
String url) |
Tree |
AbstractCachedContentStoreService.findTree(Context context,
String url,
int depth) |
Object |
CacheServiceImpl.get(Context context,
Object key) |
List<Item> |
AbstractCachedContentStoreService.getChildren(Context context,
CachingOptions cachingOptions,
String url,
ItemFilter filter,
ItemProcessor processor) |
List<Item> |
AbstractCachedContentStoreService.getChildren(Context context,
String url) |
Item |
AbstractCachedContentStoreService.getItem(Context context,
CachingOptions cachingOptions,
String url,
ItemProcessor processor) |
CacheItem |
CacheServiceImpl.getItem(Context context,
Object key) |
Item |
AbstractCachedContentStoreService.getItem(Context context,
String url) |
Collection<?> |
CacheServiceImpl.getKeys(Context context) |
int |
CacheServiceImpl.getSize(Context context) |
Tree |
AbstractCachedContentStoreService.getTree(Context context,
CachingOptions cachingOptions,
String url,
int depth,
ItemFilter filter,
ItemProcessor processor) |
Tree |
AbstractCachedContentStoreService.getTree(Context context,
String url) |
Tree |
AbstractCachedContentStoreService.getTree(Context context,
String url,
int depth) |
boolean |
CacheServiceImpl.hasKey(Context context,
Object key) |
boolean |
CacheServiceImpl.hasScope(Context context) |
void |
CacheServiceImpl.put(Context context,
Object key,
Object value) |
void |
CacheServiceImpl.put(Context context,
Object key,
Object value,
CachingOptions cachingOptions,
CacheLoader loader,
Object... loaderParams) |
boolean |
CacheServiceImpl.remove(Context context,
Object key) |
void |
CacheServiceImpl.removeScope(Context context) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
ContentStoreAdapter.exists(Context context,
String path) |
Content |
ContentStoreAdapter.findContent(Context context,
CachingOptions cachingOptions,
String path) |
Item |
ContentStoreAdapter.findItem(Context context,
CachingOptions cachingOptions,
String path,
boolean withDescriptor) |
List<Item> |
ContentStoreAdapter.findItems(Context context,
CachingOptions cachingOptions,
String path,
boolean withDescriptor) |
| Modifier and Type | Method and Description |
|---|---|
protected Content |
AbstractFileBasedContentStoreAdapter.doFindContent(Context context,
CachingOptions cachingOptions,
String path) |
protected abstract Content |
AbstractCachedContentStoreAdapter.doFindContent(Context context,
CachingOptions cachingOptions,
String path) |
protected Item |
AbstractFileBasedContentStoreAdapter.doFindItem(Context context,
CachingOptions cachingOptions,
String path,
boolean withDescriptor) |
protected abstract Item |
AbstractCachedContentStoreAdapter.doFindItem(Context context,
CachingOptions cachingOptions,
String path,
boolean withDescriptor) |
protected List<Item> |
AbstractFileBasedContentStoreAdapter.doFindItems(Context context,
CachingOptions cachingOptions,
String path,
boolean withDescriptor) |
protected abstract List<Item> |
AbstractCachedContentStoreAdapter.doFindItems(Context context,
CachingOptions cachingOptions,
String path,
boolean withDescriptor) |
Content |
AbstractCachedContentStoreAdapter.findContent(Context context,
CachingOptions cachingOptions,
String path) |
protected abstract File |
AbstractFileBasedContentStoreAdapter.findFile(Context context,
String path)
Returns the
File at the given path, returning null if not found. |
Item |
AbstractCachedContentStoreAdapter.findItem(Context context,
CachingOptions cachingOptions,
String path,
boolean withDescriptor) |
List<Item> |
AbstractCachedContentStoreAdapter.findItems(Context context,
CachingOptions cachingOptions,
String path,
boolean withDescriptor) |
protected abstract List<File> |
AbstractFileBasedContentStoreAdapter.getChildren(Context context,
File dir)
Returns the list of children of the given directory.
|
| Modifier and Type | Method and Description |
|---|---|
void |
FileSystemContentStoreAdapter.destroyContext(Context context) |
boolean |
FileSystemContentStoreAdapter.validate(Context context) |
Copyright © 2018 CrafterCMS. All rights reserved.