public class FilterRegistry<ItemType,PersistType> extends Object
Each filter is called before and after the processor generates and persists the form, thus allowing the form and the effected objects to be manipulated prior to generation or persistence or after the fact.
Each filter is responsible for determing whether it applies to the item being processed.
Filter
Modifier and Type | Field and Description |
---|---|
protected List<Filter<ItemType,PersistType>> |
filters |
Constructor and Description |
---|
FilterRegistry()
Constructs the registry
|
Modifier and Type | Method and Description |
---|---|
void |
addFilter(Filter<ItemType,PersistType> filter)
Registers a filter
|
List<Filter<ItemType,PersistType>> |
getFilters()
Returns a list of active filters
|
protected List<Filter<ItemType,PersistType>> filters
public void addFilter(Filter<ItemType,PersistType> filter)
filter
- The Filter to regsiterpublic List<Filter<ItemType,PersistType>> getFilters()
Copyright © 2005–2017 Alfresco Software. All rights reserved.