Package org.ametys.plugins.forms
Class FormManager
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.ametys.plugins.forms.FormManager
-
- All Implemented Interfaces:
Component
,Contextualizable
,LogEnabled
,Serviceable
public class FormManager extends AbstractLogEnabled implements Component, Serviceable, Contextualizable
Class to handle forms in contents
-
-
Field Summary
Fields Modifier and Type Field Description static String
ENTRY_WORKFLOW_REINITIALIZATION
Constant for entry workflow reinitializationstatic String
ROLE
Avalon Role
-
Constructor Summary
Constructors Constructor Description FormManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Set<RichText>
_getRichTexts(ModelAwareDataHolder dataHolder)
Get the rich textsvoid
contextualize(Context context)
void
processContentForms(Content content)
Find all the forms the content contains and process them.void
service(ServiceManager smanager)
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Field Detail
-
ENTRY_WORKFLOW_REINITIALIZATION
public static final String ENTRY_WORKFLOW_REINITIALIZATION
Constant for entry workflow reinitialization- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FormManager
public FormManager()
-
-
Method Detail
-
service
public void service(ServiceManager smanager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
contextualize
public void contextualize(Context context) throws ContextException
- Specified by:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
processContentForms
public void processContentForms(Content content) throws SAXException, IOException, com.opensymphony.workflow.WorkflowException
Find all the forms the content contains and process them.- Parameters:
content
- the content.- Throws:
SAXException
- if a SAX exception occurs during content parsing.IOException
- if an I/O exception occurs during content parsing.com.opensymphony.workflow.WorkflowException
- if an exception occurs while handling the form's workflow
-
_getRichTexts
protected Set<RichText> _getRichTexts(ModelAwareDataHolder dataHolder)
Get the rich texts- Parameters:
dataHolder
- the data holder- Returns:
- the rich texts in a Set
-
-