Interface OnUserMessageOperationActionScriptObject
-
public interface OnUserMessageOperationActionScriptObject
This 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 InputStream
getAttachmentInputStream()
Get an InputStream of the contents of the attachment.UserMessageFlowAction
getOperation()
Get the operation being performed on the User MessageSubject
getReceiverSubject()
Get the intended recipient for the User Message action This can be null forUserMessageFlowAction.Completed
,UserMessageFlowAction.Created
Subject
getSubject()
Get the subject performing the operationUserMessage
getUserMessage()
Get the user message the operation is being performed onUserMessageAttachment
getUserMessageAttachment()
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.DeletedAttachment
operation, 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.UploadedAttachment
operation 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
-
-