Package org.ametys.plugins.forms.content
Class FormManager
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.ametys.plugins.forms.content.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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription_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 Details
-
ROLE
Avalon Role -
ENTRY_WORKFLOW_REINITIALIZATION
Constant for entry workflow reinitialization- See Also:
-
-
Constructor Details
-
FormManager
public FormManager()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
contextualize
- 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
Get the rich texts- Parameters:
dataHolder
- the data holder- Returns:
- the rich texts in a Set
-