Class FormBuilderResource


  • @Path("/lumis/service/formbuilder/rest/forms/{formId:[A-F0-9]{32}}/answers")
    public class FormBuilderResource
    extends java.lang.Object
    Form builder related operations.
    Since:
    8.2.0
    Version:
    $Revision$ $Date$
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.ws.rs.core.Response getAnswersReport​(@NotNull java.lang.String formId)
      Returns the answers report of the given form.
      void postForm​(java.lang.String formId, javax.ws.rs.core.MultivaluedMap<java.lang.String,​java.lang.String> formParameters)  
      • Methods inherited from class java.lang.Object

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

      • FormBuilderResource

        public FormBuilderResource()
    • Method Detail

      • getAnswersReport

        @GET
        @Path("/report.csv")
        @Produces("text/csv")
        public javax.ws.rs.core.Response getAnswersReport​(@PathParam("formId") @NotNull
                                                          @NotNull java.lang.String formId)
                                                   throws java.lang.Exception
        Returns the answers report of the given form.
        Parameters:
        formId - the form identifier.
        Returns:
        the answers report of the given form.
        Throws:
        java.lang.Exception
        Since:
        8.2.0
      • postForm

        @POST
        @Consumes("application/x-www-form-urlencoded")
        @Produces("application/json")
        public void postForm​(@PathParam("formId")
                             java.lang.String formId,
                             javax.ws.rs.core.MultivaluedMap<java.lang.String,​java.lang.String> formParameters)
                      throws PortalException,
                             org.json.simple.parser.ParseException
        Throws:
        PortalException
        org.json.simple.parser.ParseException