Class CmsUgcUploadHelper

java.lang.Object
org.opencms.ugc.CmsUgcUploadHelper

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

  • Constructor Details

  • Method Details

    • consumeFormData

      public void consumeFormData(String formDataId, I_CmsFormDataHandler handler) throws 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:
      Exception - if something goes wrong