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:
  • Field Details

  • Constructor Details

    • FilterRegistry

      public FilterRegistry()
      Constructs the registry
  • Method Details

    • 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