Class AbstractFilter<ItemType,PersistType>
- java.lang.Object
-
- org.alfresco.repo.forms.processor.AbstractFilter<ItemType,PersistType>
-
- All Implemented Interfaces:
Filter<ItemType,PersistType>
- Direct Known Subclasses:
WorkflowFormFilter
public abstract class AbstractFilter<ItemType,PersistType> extends java.lang.Object implements Filter<ItemType,PersistType>
Abstract base class for all Filter implementations.- Author:
- Gavin Cornwell
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanactiveprotected FilterRegistryfilterRegistry
-
Constructor Summary
Constructors Constructor Description AbstractFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisActive()Determines whether the filter is activevoidregister()Registers this filter with the filter registryvoidsetActive(boolean active)Sets whether this filter is activevoidsetFilterRegistry(FilterRegistry filterRegistry)Sets the filter registryjava.lang.StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.alfresco.repo.forms.processor.Filter
afterGenerate, afterPersist, beforeGenerate, beforePersist
-
-
-
-
Field Detail
-
filterRegistry
protected FilterRegistry filterRegistry
-
active
protected boolean active
-
-
Method Detail
-
setFilterRegistry
public void setFilterRegistry(FilterRegistry filterRegistry)
Sets the filter registry- Parameters:
filterRegistry- The FilterRegistry instance
-
setActive
public void setActive(boolean active)
Sets whether this filter is active- Parameters:
active- true if the filter should be active
-
register
public void register()
Registers this filter with the filter registry
-
isActive
public boolean isActive()
Description copied from interface:FilterDetermines whether the filter is active- Specified by:
isActivein interfaceFilter<ItemType,PersistType>- Returns:
- true if the filter is active
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-