Class ServiceFormsOnline

  • All Implemented Interfaces:
    org.silverpeas.core.web.rs.ProtectedWebResource, org.silverpeas.core.web.rs.WebAuthenticationValidation, org.silverpeas.core.web.rs.WebAuthorizationValidation, org.silverpeas.core.web.SilverpeasWebResource

    @WebService
    @Authorized
    @Path("mobile/formsOnline/{appId}")
    public class ServiceFormsOnline
    extends AbstractRestWebService
    • Constructor Detail

      • ServiceFormsOnline

        public ServiceFormsOnline()
    • Method Detail

      • loadRequest

        @POST
        @Consumes("application/json")
        @Produces("application/json")
        @Path("loadRequest/{requestId}")
        public FormRequestDTO loadRequest​(@PathParam("requestId")
                                          String requestId)
      • processRequest

        @POST
        @Consumes("application/json")
        @Produces("application/json")
        @Path("processRequest/{requestId}")
        public void processRequest​(@PathParam("requestId")
                                   String requestId,
                                   ValidationRequestDTO validation)
      • getReceivablesForms

        @GET
        @Produces("application/json")
        @Path("receivables")
        public List<FormDTO> getReceivablesForms()
      • getSendablesForms

        @GET
        @Produces("application/json")
        @Path("sendables")
        public List<FormDTO> getSendablesForms()
      • getRequests

        @GET
        @Produces("application/json")
        @Path("requests/{formId}")
        public List<FormRequestDTO> getRequests​(@PathParam("formId")
                                                String formId)
      • getMyRequests

        @GET
        @Produces("application/json")
        @Path("myrequests")
        public List<FormRequestDTO> getMyRequests()
      • saveForm

        @POST
        @Consumes("multipart/form-data")
        @Produces("application/json")
        @Path("saveForm/{formId}")
        public Boolean saveForm​(@PathParam("formId")
                                String formId)
      • getFormLayer

        @GET
        @Produces("application/json")
        @Path("formlayer/{formName}/{layerType}")
        public FormLayerDTO getFormLayer​(@PathParam("formName")
                                         String formName,
                                         @PathParam("layerType")
                                         String layerType)
      • getForm

        @GET
        @Produces("application/json")
        @Path("form/{formName}")
        public List<FormFieldDTO> getForm​(@PathParam("formName")
                                          String formName)
      • getUserField

        @GET
        @Produces("application/json")
        @Path("form/{formName}/{fieldName}")
        public List<BaseDTO> getUserField​(@PathParam("formName")
                                          String formName,
                                          @PathParam("fieldName")
                                          String fieldName)
      • getResourceBasePath

        protected String getResourceBasePath()
        Specified by:
        getResourceBasePath in class org.silverpeas.core.web.rs.RESTWebService
      • getComponentId

        public String getComponentId()
      • getComponentParameterValue

        public String getComponentParameterValue​(String parameterName)