Package com.proxemo.todo4.bom
Class ToDoOutgoingMail
- java.lang.Object
-
- com.proxemo.todo4.bom.ToDoVersionedIdentifiable
-
- com.proxemo.todo4.bom.ToDoOutgoingMail
-
- All Implemented Interfaces:
java.io.Serializable
public class ToDoOutgoingMail extends ToDoVersionedIdentifiable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intMAX_SEND_TRIESstatic intPENDINGstatic intSENDstatic intSENDERROR_ADDRESSUNKNOWNstatic intSENDERROR_GENERICstatic intSENDERROR_OTHER
-
Constructor Summary
Constructors Constructor Description ToDoOutgoingMail()ToDoOutgoingMail(ToDoOutgoingMail om)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidanonymize()java.util.Set<ToDoMailAttachment>getAttachments()java.lang.StringgetBcc()java.lang.StringgetCc()java.lang.StringgetFrom()java.lang.LonggetId()Method returning a canonical id of the object.ToDoInquirygetInquiry()ToDoMailboxgetMailbox()java.util.Set<ToDoMailAttachment>getReplyAttachments()java.lang.StringgetReplyTo()intgetSendCounter()java.util.DategetSendDate()java.lang.StringgetSendErrorMessage()java.lang.StringgetStateAsString()intgetStatus()java.lang.StringgetSubject()ToDoTaskgetTask()java.lang.StringgetText()java.lang.StringgetTo()java.lang.IntegergetVersion()Method returning the version of the instancejava.lang.BooleanisActive()Method that returns whether the instance is active or not (means: logically deleted)booleanisHtmlMail()booleanmaxSendTriesExceeded()voidprepareSending()voidsetActive(java.lang.Boolean active)Method setting the active flag.voidsetAttachments(java.util.Set<ToDoMailAttachment> attachments)voidsetBcc(java.lang.String bcc)voidsetCc(java.lang.String cc)voidsetFrom(java.lang.String from)voidsetHtmlMail(boolean htmlMail)voidsetId(java.lang.Long id)Method setting the canonical id of the object.voidsetInactive()Method to delete an object logically.voidsetInquiry(ToDoInquiry inquiry)voidsetMailbox(ToDoMailbox mailbox)voidsetReplyAttachments(java.util.Set<ToDoMailAttachment> attachments)voidsetReplyTo(java.lang.String replyTo)voidsetSendCounter(int sendCounter)voidsetSendDate(java.util.Date sendDate)voidsetSendErrorMessage(java.lang.String sendErrorMessage)voidsetStatus(int status)voidsetSubject(java.lang.String subject)voidsetTask(ToDoTask task)voidsetText(java.lang.String text)voidsetTo(java.lang.String to)voidsetToActive()Method to undelete an object logically.voidsetVersion(java.lang.Integer version)Method setting the version of the instance, Should under normal circumstances not be manually invoked.-
Methods inherited from class com.proxemo.todo4.bom.ToDoVersionedIdentifiable
areEqual, getActiveAsIcon, getAnonymizeString, getCanonicalId, isTransient, setToTransient
-
-
-
-
Field Detail
-
MAX_SEND_TRIES
public static final int MAX_SEND_TRIES
- See Also:
- Constant Field Values
-
PENDING
public static final int PENDING
- See Also:
- Constant Field Values
-
SEND
public static final int SEND
- See Also:
- Constant Field Values
-
SENDERROR_OTHER
public static final int SENDERROR_OTHER
- See Also:
- Constant Field Values
-
SENDERROR_ADDRESSUNKNOWN
public static final int SENDERROR_ADDRESSUNKNOWN
- See Also:
- Constant Field Values
-
SENDERROR_GENERIC
public static final int SENDERROR_GENERIC
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ToDoOutgoingMail
public ToDoOutgoingMail()
-
ToDoOutgoingMail
public ToDoOutgoingMail(ToDoOutgoingMail om)
-
-
Method Detail
-
getBcc
public java.lang.String getBcc()
-
setBcc
public void setBcc(java.lang.String bcc)
-
getCc
public java.lang.String getCc()
-
setCc
public void setCc(java.lang.String cc)
-
getFrom
public java.lang.String getFrom()
-
setFrom
public void setFrom(java.lang.String from)
-
getReplyTo
public java.lang.String getReplyTo()
-
setReplyTo
public void setReplyTo(java.lang.String replyTo)
-
getSendErrorMessage
public java.lang.String getSendErrorMessage()
-
setSendErrorMessage
public void setSendErrorMessage(java.lang.String sendErrorMessage)
-
getStatus
public int getStatus()
-
setStatus
public void setStatus(int status)
-
getSubject
public java.lang.String getSubject()
-
setSubject
public void setSubject(java.lang.String subject)
-
getTask
public ToDoTask getTask()
-
setTask
public void setTask(ToDoTask task)
-
getText
public java.lang.String getText()
-
setText
public void setText(java.lang.String text)
-
getTo
public java.lang.String getTo()
-
setTo
public void setTo(java.lang.String to)
-
getMailbox
public ToDoMailbox getMailbox()
-
setMailbox
public void setMailbox(ToDoMailbox mailbox)
-
getAttachments
public java.util.Set<ToDoMailAttachment> getAttachments()
-
setAttachments
public void setAttachments(java.util.Set<ToDoMailAttachment> attachments)
-
setReplyAttachments
public void setReplyAttachments(java.util.Set<ToDoMailAttachment> attachments)
-
getReplyAttachments
public java.util.Set<ToDoMailAttachment> getReplyAttachments()
-
isHtmlMail
public boolean isHtmlMail()
-
setHtmlMail
public void setHtmlMail(boolean htmlMail)
-
getSendCounter
public int getSendCounter()
-
setSendCounter
public void setSendCounter(int sendCounter)
-
getSendDate
public java.util.Date getSendDate()
-
setSendDate
public void setSendDate(java.util.Date sendDate)
-
maxSendTriesExceeded
public boolean maxSendTriesExceeded()
-
prepareSending
public void prepareSending()
-
getId
public java.lang.Long getId()
Description copied from class:ToDoVersionedIdentifiableMethod returning a canonical id of the object. Transient objects return -1;- Specified by:
getIdin classToDoVersionedIdentifiable- Returns:
- id the id of the object. Id is canonical for all instances of a class.
-
setId
public void setId(java.lang.Long id)
Description copied from class:ToDoVersionedIdentifiableMethod setting the canonical id of the object. Should under normal circumstances not be manually invoked.- Specified by:
setIdin classToDoVersionedIdentifiable- Parameters:
id- id of the object
-
getVersion
public java.lang.Integer getVersion()
Description copied from class:ToDoVersionedIdentifiableMethod returning the version of the instance- Specified by:
getVersionin classToDoVersionedIdentifiable- Returns:
- the version
-
setVersion
public void setVersion(java.lang.Integer version)
Description copied from class:ToDoVersionedIdentifiableMethod setting the version of the instance, Should under normal circumstances not be manually invoked.- Specified by:
setVersionin classToDoVersionedIdentifiable- Parameters:
version- of the object
-
isActive
public java.lang.Boolean isActive()
Description copied from class:ToDoVersionedIdentifiableMethod that returns whether the instance is active or not (means: logically deleted)- Specified by:
isActivein classToDoVersionedIdentifiable- Returns:
- boolean whether the object is active
-
setActive
public void setActive(java.lang.Boolean active)
Description copied from class:ToDoVersionedIdentifiableMethod setting the active flag. Invoking this method with false logically deletes the instance in the database.- Specified by:
setActivein classToDoVersionedIdentifiable- Parameters:
active- is the object active or not
-
setToActive
public void setToActive()
Description copied from class:ToDoVersionedIdentifiableMethod to undelete an object logically.- Specified by:
setToActivein classToDoVersionedIdentifiable
-
setInactive
public void setInactive()
Description copied from class:ToDoVersionedIdentifiableMethod to delete an object logically.- Specified by:
setInactivein classToDoVersionedIdentifiable
-
getStateAsString
public java.lang.String getStateAsString()
-
anonymize
public void anonymize()
- Specified by:
anonymizein classToDoVersionedIdentifiable
-
getInquiry
public ToDoInquiry getInquiry()
-
setInquiry
public void setInquiry(ToDoInquiry inquiry)
-
-