public abstract class Trigger
extends java.lang.Object
trigger implementations.| Constructor and Description |
|---|
Trigger()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterDownload(AfterDownloadInput input)
This method is called after a file has been downloaded.
|
void |
afterUpload(AfterUploadInput input) |
protected matrix.db.Context |
getContext()
Simplifies the retrieval of a matrix.db.Context for custom
triggers.
|
void |
onDownload(OnDownloadInput input)
This method is called upon a file has been requested for download.
|
void |
onUpload(OnUploadInput input) |
void |
onValidateUpload(ValidateUploadInput input) |
public void onDownload(OnDownloadInput input) throws TriggerAbort
input - The context which provides the
trigger with information around the file being checked out and
provides additional functionality to perform certain actions on
the client.TriggerAbort - If the trigger wants to abort the download, it
should throw an TriggerAbort exception.public void afterDownload(AfterDownloadInput input)
input - The input which provides the
trigger with information around the file that were checked out.
certain actions on the client.public void onUpload(OnUploadInput input) throws TriggerAbort
input - TriggerAbortpublic void onValidateUpload(ValidateUploadInput input)
input - public void afterUpload(AfterUploadInput input)
input - protected final matrix.db.Context getContext()
throws TVCException
return TxManager.getLocalTxContext().getContext();
TVCException - If failed to get the context??Copyright ? Technia AB. All Rights Reserved.