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
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceThe document event structure.static interfaceThe snapshot structure. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEvent(IResourceHistory.IEvent event) Allows to add a custom event the the history of the document.voidaddEvent(String name, String source, IUser fulfiller, IUser addressee, String description, String doneBy) Allows to create and add a custom event.voidaddSnapshot(IResourceHistory.ISnapshot snapshot) Allows to add a snapshot to a document.voidaddSnapshot(String description, IUser fulfiller) Allows to create a snapshot and add it to a document.Collection<? extends IResourceHistory.IEvent> Gets the list ofIResourceHistory.IEventobjects.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.IEventobject 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.IEventobjects.- Returns:
- A java.util.Collection of
IResourceHistory.IEventobjects.
-
addSnapshot
Allows to add a snapshot to a document.- Parameters:
snapshot- TheIResourceHistory.ISnapshotobject 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.ISnapshotobjects.
-