|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.repo.forms.processor.AbstractFormProcessor
public abstract class AbstractFormProcessor
Abstract base class for all FormProcessor implementations provides a regex pattern match to test for processor applicability
| Field Summary | |
|---|---|
protected boolean |
active
|
protected java.lang.String |
matchPattern
|
protected java.util.regex.Pattern |
patternMatcher
|
protected FormProcessorRegistry |
processorRegistry
|
| Constructor Summary | |
|---|---|
AbstractFormProcessor()
|
|
| Method Summary | |
|---|---|
boolean |
isActive()
Determines whether this form processor is active |
boolean |
isApplicable(Item item)
Determines whether this form processor is applicable for the supplied item |
void |
register()
Registers this processor with the processor registry |
void |
setActive(boolean active)
Sets whether this processor is active |
protected void |
setFormItemType(Form form,
java.lang.String type)
Gets the Item from the form parameter and sets its type
field to type. |
protected void |
setFormItemUrl(Form form,
java.lang.String url)
Gets the Item from the form parameter and sets its URL field
to url. |
void |
setMatchPattern(java.lang.String pattern)
Sets the match pattern |
void |
setProcessorRegistry(FormProcessorRegistry processorRegistry)
Sets the form process registry |
java.lang.String |
toString()
|
| 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.FormProcessor |
|---|
generate, persist |
| Field Detail |
|---|
protected FormProcessorRegistry processorRegistry
protected java.lang.String matchPattern
protected boolean active
protected java.util.regex.Pattern patternMatcher
| Constructor Detail |
|---|
public AbstractFormProcessor()
| Method Detail |
|---|
public void setProcessorRegistry(FormProcessorRegistry processorRegistry)
processorRegistry - The FormProcessorRegistry instancepublic void setMatchPattern(java.lang.String pattern)
pattern - The regex pattern to use to determine if this processor is
applicablepublic void setActive(boolean active)
active - true if the processor should be activepublic void register()
public boolean isActive()
FormProcessor
isActive in interface FormProcessorpublic boolean isApplicable(Item item)
FormProcessor
isApplicable in interface FormProcessoritem - The item the form is being generated for
public java.lang.String toString()
toString in class java.lang.Object
protected void setFormItemType(Form form,
java.lang.String type)
form parameter and sets its type
field to type.
form - type -
protected void setFormItemUrl(Form form,
java.lang.String url)
form parameter and sets its URL field
to url.
form - url -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||