@Named(value="snapshotService")
@RequestScoped
@Path(value="/snapshot")
@Produces(value={"text/html","application/xml","application/json","text/xml"})
public class SnapshotRestService
extends Object
implements Serializable
The method getWorkitemFile is a wrapper for the WorkflowRestService and returns the file content based on the $uniqueid of the origin workitem.
The method getDocumentsBySyncPoint returns snapshot data from a given modified timestamp. This method is used by an external archive service to sync the snapshot data.
| Constructor and Description |
|---|
SnapshotRestService() |
| Modifier and Type | Method and Description |
|---|---|
org.imixs.workflow.xml.XMLDataCollection |
getDocumentsBySyncPoint(long lSyncpoint)
This method returns the next workitem from a given syncpoint.
|
javax.ws.rs.core.Response |
getWorkItemFile(String uniqueid,
String file,
javax.ws.rs.core.UriInfo uriInfo)
This method wraps the WorkflowRestService method 'getWorkItemFile' and
verifies the target id which can be either a $snapshotid or the deprecated
$blobWorkitemid.
|
String |
ping()
Ping service
|
javax.ws.rs.core.Response |
postSnapshot(org.imixs.workflow.xml.XMLDocument xmlworkitem)
The method restores a snapshot provided in xml format.
|
@GET
@Path(value="/{uniqueid : ([0-9a-f]{8}-.*|[0-9a-f]{11}-.*)}/file/{file}")
public javax.ws.rs.core.Response getWorkItemFile(@PathParam(value="uniqueid")
String uniqueid,
@PathParam(value="file") @Encoded
String file,
@Context
javax.ws.rs.core.UriInfo uriInfo)
uniqueid - file - - file name@GET
@Path(value="/syncpoint/{syncpoint}")
public org.imixs.workflow.xml.XMLDataCollection getDocumentsBySyncPoint(@PathParam(value="syncpoint")
long lSyncpoint)
The syncpoint is compared to the internal modified date of the document entity which can not be modified from businss logic.
If not data is found, the method returns null.
syncpoint - @POST
@Produces(value="application/xml")
@Consumes(value={"application/xml","text/xml"})
public javax.ws.rs.core.Response postSnapshot(org.imixs.workflow.xml.XMLDocument xmlworkitem)
The method updates the origin document as also the snapshot data if needed.
xmlworkitem - - entity to be saved@GET @Path(value="/ping") public String ping()
lSyncpoint - Copyright © 2006–2019 Imixs Software Solutions GmbH. All rights reserved.