Package org.imixs.archive.service
Class RemoteAPIService
java.lang.Object
org.imixs.archive.service.RemoteAPIService
The RemoteService is used to access the remote API from the worklfow
instance. All remote clients are based on the Imixs-Rest API.
To access the API the services uses the Imixs-Melman DocumentClient.
- Version:
- 1.0
- Author:
- rsoika
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteSnapshot(String id, org.imixs.melman.DocumentClient documentClient) readSnapshotIDByUniqueID(String uniqueid, org.imixs.melman.DocumentClient documentClient) This method read the current snapshot id for a given UnqiueID.org.imixs.workflow.xml.XMLDataCollectionreadSyncData(long syncPoint, org.imixs.melman.DocumentClient documentClient) This method read sync data.voidrestoreSnapshot(org.imixs.workflow.ItemCollection snapshot, org.imixs.melman.DocumentClient documentClient)
-
Field Details
-
SNAPSHOT_RESOURCE
- See Also:
-
DOCUMENTS_RESOURCE
- See Also:
-
SNAPSHOT_SYNCPOINT_RESOURCE
- See Also:
-
-
Constructor Details
-
RemoteAPIService
public RemoteAPIService()
-
-
Method Details
-
readSyncData
public org.imixs.workflow.xml.XMLDataCollection readSyncData(long syncPoint, org.imixs.melman.DocumentClient documentClient) throws ArchiveException This method read sync data. The method returns the first workitem from the given syncpoint. If no data is available the method returns null.- Returns:
- an XMLDataCollection instance representing the data to sync or null if no data form the given syncpoint is available.
- Throws:
ArchiveException
-
readSnapshotIDByUniqueID
public String readSnapshotIDByUniqueID(String uniqueid, org.imixs.melman.DocumentClient documentClient) throws ArchiveException This method read the current snapshot id for a given UnqiueID. This information can be used to verify the sync status of a single process instance. The method throws a ArchiveException in case the snapshot did not exist- Returns:
- the current snapshotId
- Throws:
ArchiveException
-
restoreSnapshot
public void restoreSnapshot(org.imixs.workflow.ItemCollection snapshot, org.imixs.melman.DocumentClient documentClient) throws ArchiveException - Throws:
ArchiveException
-
deleteSnapshot
public void deleteSnapshot(String id, org.imixs.melman.DocumentClient documentClient) throws ArchiveException - Throws:
ArchiveException
-