public class AbstractMessageHandlerFactory.Composer extends AbstractMessageHandlerFactory.Handler implements MessageComposer
provider
Modifier and Type | Method and Description |
---|---|
FormResult |
abort()
Abort the composition of the message
|
boolean |
allowNewAttachments() |
boolean |
bccOnly() |
boolean |
canEdit(java.util.List<java.lang.String> path,
SessionService<?> operator)
Is the specified person allowed to edit this message
|
boolean |
editRecipients() |
Input<java.lang.String> |
getEmailInput()
get an
Input for email addresses. |
void |
populate(SessionService<?> operator)
Initialise the message to a starting state if it has not already been set.
|
void |
repopulate(SessionService<?> operator)
re-initialise the message to its starting state
|
FormResult |
send(SessionService<?> operator)
Send the message
|
boolean |
showBcc() |
canView, getContext, getFactory, getMessageProvider, getPath, getTypeName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
editReplyTo
canView, getFactory, getMessageProvider, getPath, getTypeName
public Composer(H provider)
provider
- public FormResult send(SessionService<?> operator) throws java.lang.Exception
MessageComposer
send
in interface MessageComposer
java.lang.Exception
public void repopulate(SessionService<?> operator) throws java.lang.Exception
MessageComposer
repopulate
in interface MessageComposer
java.lang.Exception
public void populate(SessionService<?> operator) throws java.lang.Exception
MessageComposer
populate
in interface MessageComposer
java.lang.Exception
public FormResult abort() throws DataFault
MessageComposer
abort
in interface MessageComposer
DataFault
public boolean canEdit(java.util.List<java.lang.String> path, SessionService<?> operator)
MessageComposer
canEdit
in interface MessageComposer
path
- being editedpublic Input<java.lang.String> getEmailInput()
MessageComposer
Input
for email addresses.
Only used if the composer allows.
Normally this will just be and EmailInput
but a MessageComposer
can substitute something else to make it easier to find the desired email. The
action will accept a comma separated list of multiple values if the composer wishes
to support bulk addgetEmailInput
in interface MessageComposer
public boolean editRecipients()
editRecipients
in interface MessageComposer
public boolean bccOnly()
bccOnly
in interface MessageComposer
public boolean allowNewAttachments()
allowNewAttachments
in interface MessageComposer
public boolean showBcc()
showBcc
in interface MessageComposer