new FilterProviderByDirectory(directory, optionsopt)
Provides filters by loading all of the files in a directory as filters
Filters are loaded synchronously as there is no way to determine when a filter is required asynchronously
Parameters:
Name | Type | Attributes | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
directory |
String | The directory to read from | ||||||||||||||||
options |
Object |
<optional> |
Options for the was the directory is process
Properties
|
- Implements:
- Provider
- ItemProvider
- Source:
- See:
Methods
getPostFilters() → {Array.Filter}
Returns all the post filters (filters that implement executePost())
Returns:
Array of all the loaded post filters
- Type
- Array.Filter
getPreFilters() → {Array.Filter}
Returns all the pre filters (filters that implement executePre())
Returns:
Array of all the loaded pre filters
- Type
- Array.Filter
processItem(items, itemId, fileName, options)
Processes the specific item and returns the result
Parameters:
Name | Type | Description |
---|---|---|
items |
Map | Map of the items being processed |
itemId |
String | The Id of the item to process |
fileName |
String | The name of the file being processed |
options |
Object | Any options that are being passed to the ItemProcessor (can be null) |
processItems(items, fileName, options)
Processes multiple items at once
Parameters:
Name | Type | Description |
---|---|---|
items |
Map | Map of the items being processed |
fileName |
String | The name of the file being processed |
options |
Object | Any options that are being passed to the ItemProcessor (can be null) |