Class FilterRegistry<ItemType,PersistType>
- java.lang.Object
-
- org.alfresco.repo.forms.processor.FilterRegistry<ItemType,PersistType>
-
public class FilterRegistry<ItemType,PersistType> extends Object
Holds a list of filters for a type of form processor.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.
- Author:
- Gavin Cornwell
- See Also:
Filter
-
-
Field Summary
Fields Modifier and Type Field Description protected List<Filter<ItemType,PersistType>>filters
-
Constructor Summary
Constructors Constructor Description FilterRegistry()Constructs the registry
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFilter(Filter<ItemType,PersistType> filter)Registers a filterList<Filter<ItemType,PersistType>>getFilters()Returns a list of active filters
-
-
-
Field Detail
-
filters
protected List<Filter<ItemType,PersistType>> filters
-
-
Method Detail
-
addFilter
public void addFilter(Filter<ItemType,PersistType> filter)
Registers a filter- Parameters:
filter- The Filter to regsiter
-
getFilters
public List<Filter<ItemType,PersistType>> getFilters()
Returns a list of active filters- Returns:
- List of active Filter objects
-
-