@DeclareRoles(value="org.imixs.ACCESSLEVEL.MANAGERACCESS") @RunAs(value="org.imixs.ACCESSLEVEL.MANAGERACCESS") public class SnapshotService extends Object
7009e427-7078-4492-af78-0a1145a736df-[SNAPSHOT TIMESTAMP]
During the snapshot creation the snapshot-uniquId is stored into the origin workitem.
The SnapshotService implements the CDI Observer pattern provided from the DocumentService.
Model entries are not part of the snapshot concept
Note: The SnapshotService replaces the BlobWorkitems mechanism which was earlier part of the DMSPlugin from the imixs-marty project. The SnapshotService provides a migration mechanism for old BlobWorkitems. The old BlobWorkitems will not be deleted. If the DMSPlugin is still active and documents from the type 'workitemlob' will be saved, the SnapshotService throws a SnapshotException.
ArchivePushService
Since version 2.0 the SnapshotService can be connected to the
ImixsArchiveService. If the environment variable 'ARCHIVE_SERVICE_ENDPONT' is
set, than the snapshot service creates a EventLog entry each time a snapshot
was generated. The ArchivePushService sanns for the EventLog entires in an
asynchronious way and push the snaphots directyl into the Archive
(Cassandra).
| Modifier and Type | Field and Description |
|---|---|
static String |
ARCHIVE_SERVICE_AUTHMETHOD |
static String |
ARCHIVE_SERVICE_ENDPOINT |
static String |
ARCHIVE_SERVICE_INTERVAL |
static String |
ARCHIVE_SERVICE_PASSWORD |
static String |
ARCHIVE_SERVICE_USER |
static String |
EVENTLOG_TOPIC_ADD |
static String |
EVENTLOG_TOPIC_REMOVE |
static String |
ITEM_DMS |
static String |
ITEM_DMS_FILE_COUNT |
static String |
ITEM_DMS_FILE_NAMES |
static String |
ITEM_MD5_CHECKSUM |
static String |
NOSNAPSHOT |
static String |
PROPERTY_SNAPSHOT_HISTORY |
static String |
PROPERTY_SNAPSHOT_OVERWRITEFILECONTENT |
static String |
PROPERTY_SNAPSHOT_WORKITEMLOB_SUPPORT |
static String |
REGEX_URL_PATTERN |
static String |
SKIPSNAPSHOT |
static String |
SNAPSHOTID |
static String |
TYPE_PRAFIX |
| Constructor and Description |
|---|
SnapshotService() |
| Modifier and Type | Method and Description |
|---|---|
List<org.imixs.workflow.ItemCollection> |
findAllSnapshots(String uniqueid)
This method returns all existing Snapshot-workitems for a given $UNIQUEID.
|
org.imixs.workflow.FileData |
getWorkItemFile(String uniqueid,
String file)
This method returns the fileData from a snapshot by a given origin workItem
uniqueid.
|
void |
onDelete(org.imixs.workflow.engine.DocumentEvent documentEvent)
All existing snapshot-workitems will be deleted when the workitem is removed.
|
void |
onSave(org.imixs.workflow.engine.DocumentEvent documentEvent)
The snapshot-workitem is created immediately after the workitem was processed
and before the workitem is saved.
|
public static final String REGEX_URL_PATTERN
public static final String SNAPSHOTID
public static final String TYPE_PRAFIX
public static final String NOSNAPSHOT
public static final String SKIPSNAPSHOT
public static final String ITEM_DMS_FILE_NAMES
public static final String ITEM_DMS_FILE_COUNT
public static final String ITEM_DMS
public static final String PROPERTY_SNAPSHOT_WORKITEMLOB_SUPPORT
public static final String PROPERTY_SNAPSHOT_HISTORY
public static final String PROPERTY_SNAPSHOT_OVERWRITEFILECONTENT
public static final String ARCHIVE_SERVICE_ENDPOINT
public static final String ARCHIVE_SERVICE_INTERVAL
public static final String ARCHIVE_SERVICE_USER
public static final String ARCHIVE_SERVICE_PASSWORD
public static final String ARCHIVE_SERVICE_AUTHMETHOD
public static final String EVENTLOG_TOPIC_ADD
public static final String EVENTLOG_TOPIC_REMOVE
public static final String ITEM_MD5_CHECKSUM
public void onSave(@Observes
org.imixs.workflow.engine.DocumentEvent documentEvent)
public void onDelete(@Observes
org.imixs.workflow.engine.DocumentEvent documentEvent)
public List<org.imixs.workflow.ItemCollection> findAllSnapshots(String uniqueid)
uniqueid - Copyright © 2006–2020 Imixs Software Solutions GmbH. All rights reserved.