| Package | Description |
|---|---|
| org.craftercms.core.service | |
| org.craftercms.core.service.impl |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.
|
List<Item> |
ContentStoreService.getChildren(Context context,
CachingOptions cachingOptions,
String url,
ItemFilter filter,
ItemProcessor processor)
Returns the children of the folder at the given url.
|
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.
|
| Modifier and Type | Class and Description |
|---|---|
class |
CompositeItemFilter
Composite
ItemFilter implementation. |
class |
ExcludeByUrlItemFilter
ItemFilter that rejects an item if its URL matches any one of a list of regexes. |
class |
IncludeByUrlItemFilter
ItemFilter that rejects an item if its URL doesn't match any one of a list of regexes. |
| Modifier and Type | Method and Description |
|---|---|
void |
CompositeItemFilter.addFilter(ItemFilter filter)
Adds the specified
ItemFilter to the filter list, creating the list if necessary. |
protected List<Item> |
ContentStoreServiceImpl.doFilter(List<Item> items,
ItemFilter filter,
boolean runningBeforeProcessing)
Filters the given list of items by using the specified filter.
|
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
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 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 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) |
List<Item> |
AbstractCachedContentStoreService.findChildren(Context context,
CachingOptions cachingOptions,
String url,
ItemFilter filter,
ItemProcessor processor) |
Tree |
AbstractCachedContentStoreService.findTree(Context context,
CachingOptions cachingOptions,
String url,
int depth,
ItemFilter filter,
ItemProcessor processor) |
List<Item> |
AbstractCachedContentStoreService.getChildren(Context context,
CachingOptions cachingOptions,
String url,
ItemFilter filter,
ItemProcessor processor) |
Tree |
AbstractCachedContentStoreService.getTree(Context context,
CachingOptions cachingOptions,
String url,
int depth,
ItemFilter filter,
ItemProcessor processor) |
boolean |
CompositeItemFilter.removeFilter(ItemFilter filter)
Removes the specified
ItemFilter from the filter list, only if the list is not null. |
| Modifier and Type | Method and Description |
|---|---|
void |
CompositeItemFilter.setFilters(List<ItemFilter> filters)
Sets the list of filters.
|
| Constructor and Description |
|---|
CompositeItemFilter(ItemFilter... filters)
Creates a composite filter with the specified array of
ItemFilters. |
| Constructor and Description |
|---|
CompositeItemFilter(List<ItemFilter> filters)
Creates a composite filter with the specified list of
ItemFilters. |
Copyright © 2018 CrafterCMS. All rights reserved.