TracedAction

class TracedAction(    timestamp: Long,     originator: UUID,     forwardAction: FileAction,     reverseAction: FileAction)

A TracedAction records a FileAction that was performed on a file and the FileActions required to undo the initial FileAction.

Author

Richard Arriaga

Parameters

timestamp

The time when this FileAction request was performed.

originator

The Session.id of the session that originator of the change.

forwardAction

The originally requested FileAction that was made to a file.

reverseAction

The FileAction that reverses the forwardAction.

Constructors

Link copied to clipboard
fun TracedAction(    timestamp: Long,     originator: UUID,     forwardAction: FileAction,     reverseAction: FileAction)

Construct a TracedAction.

Functions

Link copied to clipboard
fun isTraced(): Boolean

Answer whether or not this TracedAction is traceable on the traced action stack.

Link copied to clipboard
fun redo(file: AvailFile)

Run the forwardAction on the provided AvailFile.

Link copied to clipboard
fun undo(file: AvailFile)

Run the reverseAction on the provided AvailFile.