Interface OnUserMessageOperationActionScriptObject
-
public interface OnUserMessageOperationActionScriptObjectThis class provides methods to get the details of the user operation. The User Message being operated on can be retrieved usinggetUserMessage()The operation that is being performed to the User Message can be retrieved usinggetOperation()This class has no properties.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InputStreamgetAttachmentInputStream()Get an InputStream of the contents of the attachment.UserMessageFlowActiongetOperation()Get the operation being performed on the User MessageSubjectgetReceiverSubject()Get the intended recipient for the User Message action This can be null forUserMessageFlowAction.Completed,UserMessageFlowAction.CreatedSubjectgetSubject()Get the subject performing the operationUserMessagegetUserMessage()Get the user message the operation is being performed onUserMessageAttachmentgetUserMessageAttachment()Get the UserMessageAttachment associated with the flow action.
-
-
-
Method Detail
-
getOperation
UserMessageFlowAction getOperation()
Get the operation being performed on the User Message- Returns:
- the operation
-
getUserMessage
UserMessage getUserMessage()
Get the user message the operation is being performed on- Returns:
- the user message
-
getSubject
Subject getSubject()
Get the subject performing the operation- Returns:
- the subject
-
getReceiverSubject
Subject getReceiverSubject()
Get the intended recipient for the User Message action This can be null forUserMessageFlowAction.Completed,UserMessageFlowAction.Created- Returns:
- the receiver subject
-
getUserMessageAttachment
UserMessageAttachment getUserMessageAttachment()
Get the UserMessageAttachment associated with the flow action. This will be set for theUserMessageFlowAction.AddedAttachment,UserMessageFlowAction.UploadedAttachment,UserMessageFlowAction.ReplacedAttachment,UserMessageFlowAction.DeletedAttachmentoperation, and will be null for all other operations.- Returns:
- the
UserMessageAttachment
-
getAttachmentInputStream
InputStream getAttachmentInputStream() throws Exception
Get an InputStream of the contents of the attachment. This is available only for theUserMessageFlowAction.UploadedAttachmentoperation and otherwise will be null. There is no guarantee that thisInputStream.reset()can be called on this stream.- Returns:
- the contents of the attachment
- Throws:
Exception- if the job file cannot be retrieved
-
-