Class CmsUgcUploadHelper


  • public class CmsUgcUploadHelper
    extends java.lang.Object
    A helper class which processes and stores uploaded form data belonging to a single form edit session.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void consumeFormData​(java.lang.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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • consumeFormData

        public void consumeFormData​(java.lang.String formDataId,
                                    I_CmsFormDataHandler handler)
                             throws java.lang.Exception
        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 process
        handler - the handler to which the form data should be passed
        Throws:
        java.lang.Exception - if something goes wrong