Class ServiceWorkflow

  • 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/workflow/{appId}")
    public class ServiceWorkflow
    extends AbstractRestWebService
    Service de gestion des workflows.
    Author:
    svuillet
    • Constructor Detail

      • ServiceWorkflow

        public ServiceWorkflow()
    • Method Detail

      • getUserField

        @GET
        @Produces("application/json")
        @Path("userField/{instanceId}/{actionName}/{fieldName}/{role}")
        public List<BaseDTO> getUserField​(@PathParam("instanceId")
                                          String instanceId,
                                          @PathParam("actionName")
                                          String actionName,
                                          @PathParam("fieldName")
                                          String fieldName,
                                          @PathParam("role")
                                          String role)
                                   throws Exception
        Throws:
        Exception
      • getDataInstances

        @GET
        @Produces("application/json")
        @Path("datainstances/{role}")
        public WorkflowDataDTO getDataInstances​(@PathParam("role")
                                                String userRole)
                                         throws Exception
        Throws:
        Exception
      • getActionForm

        @GET
        @Produces("application/json")
        @Path("actionForm/{instanceId}/{role}/{action}")
        public WorkflowFormActionDTO getActionForm​(@PathParam("instanceId")
                                                   String instanceId,
                                                   @PathParam("role")
                                                   String role,
                                                   @PathParam("action")
                                                   String action)
                                            throws Exception
        Throws:
        Exception
      • getResourceBasePath

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

        public String getComponentId()