Package org.imixs.workflow.jaxrs
Klasse AdminPRestService
java.lang.Object
org.imixs.workflow.jaxrs.AdminPRestService
@Path("/adminp")
@Produces({"text/html","application/xml","application/json","text/xml"})
public class AdminPRestService
extends Object
The AdminPRestService provides methods to access the AdminPService EJB
- Autor:
- rsoika
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungjakarta.ws.rs.core.ResponseThis method deletes an entityReturns all existing jobsjakarta.ws.rs.core.StreamingOutputjakarta.ws.rs.core.ResponseputJob(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.jakarta.ws.rs.core.ResponserestartJob(String id) Restarts a Job by ID
-
Konstruktordetails
-
AdminPRestService
public AdminPRestService()
-
-
Methodendetails
-
getHelpHTML
@GET @Produces("text/html") @Path("/help") public jakarta.ws.rs.core.StreamingOutput getHelpHTML() -
getAllJobs
Returns all existing jobs- Parameter:
query-pageSize-pageIndex-items-- Gibt zurück:
-
putJob
@POST @Path("/jobs/") @Produces("application/xml") @Consumes({"application/xml","text/xml"}) public jakarta.ws.rs.core.Response putJob(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.- Parameter:
xmlworkitem- - entity to be saved- Gibt zurück:
-
restartJob
@GET @Path("/jobs/restart/{id}") public jakarta.ws.rs.core.Response restartJob(@PathParam("id") String id) Restarts a Job by ID- Parameter:
id-- Gibt zurück:
-
deleteJob
@DELETE @Path("/jobs/{uniqueid}") public jakarta.ws.rs.core.Response deleteJob(@PathParam("uniqueid") String uniqueid) This method deletes an entity
-