|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.forms.processor.FormProcessorRegistry
public class FormProcessorRegistry
Holds a FormProcessor implementation for each of the types of form that can be processed. By default a node, type, task, and workflow form processor are available.
Given an item the registry selects the relevant form processor, the match is performed via pattern matching on the supplied string.
Field Summary | |
---|---|
protected java.util.List |
processors
|
Constructor Summary | |
---|---|
FormProcessorRegistry()
Constructs the registry |
Method Summary | |
---|---|
void |
addProcessor(FormProcessor processor)
Registers a form processor |
FormProcessor |
getApplicableFormProcessor(Item item)
Returns a FormProcessor for the provided item. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.List processors
Constructor Detail |
---|
public FormProcessorRegistry()
Method Detail |
---|
public void addProcessor(FormProcessor processor)
processor
- The FormProcessor to regsiterpublic FormProcessor getApplicableFormProcessor(Item item)
Each registered processors is asked if it is applicable for the given item, the first processor to positively respond that is also active is selected and returned.
item
- The item to find a form processor for
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |