Package org.opencms.ugc
Class CmsUgcUploadHelper
java.lang.Object
org.opencms.ugc.CmsUgcUploadHelper
A helper class which processes and stores uploaded form data belonging to a single form edit session.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
consumeFormData
(String formDataId, I_CmsFormDataHandler handler) Passes the form data with the given ID to the handler object, then removes it and deletes its stored data.
-
Constructor Details
-
CmsUgcUploadHelper
public CmsUgcUploadHelper()
-
-
Method Details
-
consumeFormData
Passes the form data with the given ID to the handler object, then removes it and deletes its stored data.The form data is removed even if an exception is thrown while calling the form data handler.
- Parameters:
formDataId
- the id of the form data to processhandler
- the handler to which the form data should be passed- Throws:
Exception
- if something goes wrong
-