Class ServiceWorkflow
java.lang.Object
org.silverpeas.core.web.rs.RESTWebService
org.silverpeas.mobile.server.services.AbstractRestWebService
org.silverpeas.mobile.server.services.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
-
Nested Class Summary
-
Field Summary
Fields inherited from class org.silverpeas.mobile.server.services.AbstractRestWebService
MAINSESSIONCONTROLLER_ATTRIBUT_NAME, USER_ATTRIBUT_NAMEFields inherited from class org.silverpeas.core.web.rs.RESTWebService
RESPONSE_HEADER_ARRAYSIZEFields inherited from interface org.silverpeas.core.web.SilverpeasWebResource
BASE_PATH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetActionForm(String instanceId, String role, String action) getDataInstances(String userRole) getPresentationForm(String instanceId, String role) protected StringgetUserField(String instanceId, String actionName, String fieldName, String role) getWorkflowInstances(String userRole, int callNumber) Methods inherited from class org.silverpeas.mobile.server.services.AbstractRestWebService
authenticate, createStreamingList, getMainSessionController, getSettings, initSilverpeasSession, makeStreamingListMethods inherited from class org.silverpeas.core.web.rs.RESTWebService
createWebResourceUri, fromPage, getBundle, getBundleLocation, getHighestUserRole, getHttpRequest, getHttpServletRequest, getHttpServletResponse, getLanguage, getOrganisationController, getSilverpeasContext, getUri, getUser, getUserPreferences, getUserRoles, identifiedBy, identifiedBy, initContext, initWebResourceUri, isUserDefined, processMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.silverpeas.core.web.rs.ProtectedWebResource
validateUserAuthorizationMethods inherited from interface org.silverpeas.core.web.rs.WebAuthenticationValidation
validateUserAuthentication
-
Constructor Details
-
ServiceWorkflow
public ServiceWorkflow()
-
-
Method Details
-
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
-
getWorkflowInstances
@GET @Produces("application/json") @Path("instances/{role}/{callNumber}") public StreamingList<WorkflowInstanceDTO> getWorkflowInstances(@PathParam("role") String userRole, @PathParam("callNumber") int callNumber) throws Exception - Throws:
Exception
-
getDataInstances
@GET @Produces("application/json") @Path("datainstances/{role}") public WorkflowDataDTO getDataInstances(@PathParam("role") String userRole) throws Exception - Throws:
Exception
-
getPresentationForm
@GET @Produces("application/json") @Path("presentationForm/{instanceId}/{role}") public WorkflowInstancePresentationFormDTO getPresentationForm(@PathParam("instanceId") String instanceId, @PathParam("role") String role) 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
- Specified by:
getResourceBasePathin classorg.silverpeas.core.web.rs.RESTWebService
-
getComponentId
-