Package com.axemble.vdoc.sdk.interfaces
Interface IResourceHistory
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
PortalResourceHistory
,ProcessResourceHistory
This class represents the history of a resource.
- Since:
- 1.0, 15/04/2008
- Author:
- vlygeros
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
The document event structure.static interface
The snapshot structure. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addEvent
(IResourceHistory.IEvent event) Allows to add a custom event the the history of the document.void
addEvent
(String name, String source, IUser fulfiller, IUser addressee, String description, String doneBy) Allows to create and add a custom event.void
addSnapshot
(IResourceHistory.ISnapshot snapshot) Allows to add a snapshot to a document.void
addSnapshot
(String description, IUser fulfiller) Allows to create a snapshot and add it to a document.Collection
<? extends IResourceHistory.IEvent> Gets the list ofIResourceHistory.IEvent
objects.Collection
<? extends IResourceHistory.ISnapshot> Gets the list of snapshots.
-
Method Details
-
addEvent
Allows to add a custom event the the history of the document.- Parameters:
event
- TheIResourceHistory.IEvent
object to add.
-
addEvent
void addEvent(String name, String source, IUser fulfiller, IUser addressee, String description, String doneBy) Allows to create and add a custom event.- Parameters:
name
- The system name of the performed action.source
- The system name of the current task.fulfiller
- The person who performed the action.addressee
- The person for whom the action was performed.description
- The comment of the fulfiller.doneBy
- The role of the fulfiller.
-
getEvents
Collection<? extends IResourceHistory.IEvent> getEvents()Gets the list ofIResourceHistory.IEvent
objects.- Returns:
- A java.util.Collection of
IResourceHistory.IEvent
objects.
-
addSnapshot
Allows to add a snapshot to a document.- Parameters:
snapshot
- TheIResourceHistory.ISnapshot
object to add.
-
addSnapshot
Allows to create a snapshot and add it to a document.- Parameters:
description
- The description of the snapshot.fulfiller
- The person who create the snapshot.
-
getSnapshots
Collection<? extends IResourceHistory.ISnapshot> getSnapshots()Gets the list of snapshots.- Returns:
- A java.util.Collection of
IResourceHistory.ISnapshot
objects.
-