Package de.xima.fc.workflow.model.nodes
Class FcEmailProps
- java.lang.Object
-
- de.xima.fc.workflow.taglib.model.BaseActionProps
-
- de.xima.fc.workflow.model.nodes.FcEmailProps
-
- All Implemented Interfaces:
IDescriptionProviding
,INameProviding
,IAttachToFormRecordProviding
,Serializable
@NotEmptyGroup(fields={"to","toDirectClientAuthorizations","toUserGroups","cc","bcc"}, message="{FcEmailProps.to.required}", payload=Omit.class, target=FcEmailProps.class) @NotEmptyIf(field="body",dependants="bodyFormatType",target=FcEmailProps.class) @NotEmptyIf(field="plainBody",dependants="bodyFormatType",target=FcEmailProps.class) public final class FcEmailProps extends BaseActionProps implements Serializable, IAttachToFormRecordProviding
Model class for the email workflow action (EWorkflowNodeType.FC_EMAIL
).- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface de.xima.fc.entities.interfaces.IDescriptionProviding
ATTR_BESCHREIBUNG, ATTR_DESCRIPTION, COL_DESCRIPTION
-
Fields inherited from interface de.xima.fc.entities.interfaces.INameProviding
ATTR_NAME, COL_NAME
-
-
Constructor Summary
Constructors Constructor Description FcEmailProps()
-
Method Summary
-
Methods inherited from class de.xima.fc.workflow.taglib.model.BaseActionProps
getBeschreibung, getColor, getDescription, getIcon, getName, setColor, setDescription, setIcon, setName
-
-
-
-
Method Detail
-
getBody
public String getBody()
- Returns:
- Body of the email, as HTML
-
getBodyFormatType
public EEmailBodyFormatType getBodyFormatType()
- Returns:
- selected mail format type
-
getArchiveFormat
public EEmailArchiveFormat getArchiveFormat()
- Returns:
- selected mail archive type.
-
getEncryptionType
public EMailEncrpytionType getEncryptionType()
- Returns:
- the mail encryption type. (Can be NONE / SMIME / PGP)
-
getFrom
public String getFrom()
- Returns:
- Sender address of the email.
-
getPlainBody
public String getPlainBody()
- Returns:
- Body of the email, as plain text
-
getSenderName
public String getSenderName()
- Returns:
- Name of the sender of the email. This is shown instead of the sender address by many email clients.
-
getSubject
public String getSubject()
- Returns:
- Subject of the email.
-
getToDirectClientAuthorizations
public List<UuidEntityRef> getToDirectClientAuthorizations()
- Returns:
- Recipients of the email (a list of FC direct client authorizations UUIDs).
- Since:
- 8.0.0
-
getToUserGroups
public List<UuidEntityRef> getToUserGroups()
- Returns:
- Recipients of the email (a list of FC user group UUIDs).
-
getToUsers
@Deprecated public List<UuidEntityRef> getToUsers()
Deprecated.- Returns:
- Recipients of the email (a list of FC user account UUIDs).
-
isSendSeparateMails
public boolean isSendSeparateMails()
- Returns:
true
if a separate mail should be generated for each recipient.
-
isAttachToFormRecord
public boolean isAttachToFormRecord()
- Specified by:
isAttachToFormRecord
in interfaceIAttachToFormRecordProviding
- Returns:
- Whether files created by the workflow node are attached to the form record.
-
getArchiveFileName
public String getArchiveFileName()
- Returns:
- The name of the file to be archived. May contain placeholders.
-
setBcc
public void setBcc(List<String> bcc)
- Parameters:
bcc
- The blind copy-recipients of the email
-
setBody
public void setBody(String body)
- Parameters:
body
- Body of the email, as HTML
-
setBodyFormatType
public void setBodyFormatType(EEmailBodyFormatType bodyFormatType)
- Parameters:
bodyFormatType
- selected mail format type
-
setArchiveFormat
public void setArchiveFormat(EEmailArchiveFormat archiveFormat)
- Parameters:
archiveFormat
- selected mail archive type.
-
setEncryptionType
public void setEncryptionType(EMailEncrpytionType encryptionType)
- Parameters:
encryptionType
- the mail encryption type. (Can be NONE / SMIME / PGP)
-
setFrom
public void setFrom(String from)
- Parameters:
from
- Sender address of the email.
-
setMultiFile
public void setMultiFile(MultiFile multiFile)
- Parameters:
multiFile
- a resource of typeMultiFile
-
setPlainBody
public void setPlainBody(String plainBody)
- Parameters:
plainBody
- Body of the email, as plain text
-
setReplyTo
public void setReplyTo(List<String> replyTo)
- Parameters:
replyTo
- Reply-To header of mail
-
setSenderName
public void setSenderName(String senderName)
- Parameters:
senderName
- Name of the sender of the email
-
setSendSeparateMails
public void setSendSeparateMails(boolean sendSeparateMails)
- Parameters:
sendSeparateMails
-true
if a separate mail should generate for every recipients
-
setAttachToFormRecord
public void setAttachToFormRecord(boolean attachToFormRecord)
- Parameters:
attachToFormRecord
- Whether files created by the workflow node are attached to the form record.
-
setArchiveFileName
public void setArchiveFileName(String archiveFileName)
- Parameters:
archiveFileName
- the file name of the archived email. May contain placeholders.
-
setSubject
public void setSubject(String subject)
- Parameters:
subject
- Subject of the email.
-
setToDirectClientAuthorizations
public void setToDirectClientAuthorizations(List<UuidEntityRef> toDirectClientAuthorizations)
- Parameters:
toDirectClientAuthorizations
- Recipients of the email (a list of FC direct client authorizations UUIDs)- Since:
- 8.0.0
-
setToUserGroups
public void setToUserGroups(List<UuidEntityRef> toUserGroups)
- Parameters:
toUserGroups
- Recipients of the email (a list of FC user group UUIDs)
-
setToUsers
@Deprecated public void setToUsers(List<UuidEntityRef> toUsers)
Deprecated.- Parameters:
toUsers
- Recipients of the email (a list of FC user account UUIDs)
-
-