Package org.imixs.workflow.jaxrs
Class AdminPRestService
- java.lang.Object
-
- org.imixs.workflow.jaxrs.AdminPRestService
-
@Path("/adminp") @Produces({"text/html","application/xml","application/json","text/xml"}) public class AdminPRestService extends ObjectThe AdminPRestService provides methods to access the AdminPService EJB- Author:
- rsoika
-
-
Constructor Summary
Constructors Constructor Description AdminPRestService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.ws.rs.core.ResponsedeleteJob(String uniqueid)This method deletes an entityorg.imixs.workflow.xml.XMLDataCollectiongetAllJobs()Returns all existing jobsjakarta.ws.rs.core.StreamingOutputgetHelpHTML()jakarta.ws.rs.core.ResponseputJob(org.imixs.workflow.xml.XMLDocument xmlworkitem)This method saves a entity provided in xml format Note: the method merges the content of the given entity into an existing one because the EntityService method save() did not merge an entity.
-
-
-
Method Detail
-
getHelpHTML
@GET @Produces("text/html") @Path("/help") public jakarta.ws.rs.core.StreamingOutput getHelpHTML()
-
getAllJobs
@GET @Path("/jobs") public org.imixs.workflow.xml.XMLDataCollection getAllJobs()Returns all existing jobs- Parameters:
query-pageSize-pageIndex-items-- Returns:
-
putJob
@POST @Path("/jobs/") @Produces("application/xml") @Consumes({"application/xml","text/xml"}) public jakarta.ws.rs.core.Response putJob(org.imixs.workflow.xml.XMLDocument xmlworkitem)This method saves a entity provided in xml format Note: the method merges the content of the given entity into an existing one because the EntityService method save() did not merge an entity. But the rest service typically consumes only a subset of attributes. So this is the reason why we merge the entity here. In different to the behavior of the EntityService the WorkflowService method process() did this merge automatically.- Parameters:
xmlworkitem- - entity to be saved- Returns:
-
deleteJob
@DELETE @Path("/jobs/{uniqueid}") public jakarta.ws.rs.core.Response deleteJob(@PathParam("uniqueid") String uniqueid)This method deletes an entity
-
-