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 int
MAX_SEND_TRIES
static int
PENDING
static int
SEND
static int
SENDERROR_ADDRESSUNKNOWN
static int
SENDERROR_GENERIC
static int
SENDERROR_OTHER
-
Constructor Summary
Constructors Constructor Description ToDoOutgoingMail()
ToDoOutgoingMail(ToDoOutgoingMail om)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
anonymize()
java.util.Set<ToDoMailAttachment>
getAttachments()
java.lang.String
getBcc()
java.lang.String
getCc()
java.lang.String
getFrom()
java.lang.Long
getId()
Method returning a canonical id of the object.ToDoInquiry
getInquiry()
ToDoMailbox
getMailbox()
java.util.Set<ToDoMailAttachment>
getReplyAttachments()
java.lang.String
getReplyTo()
int
getSendCounter()
java.util.Date
getSendDate()
java.lang.String
getSendErrorMessage()
java.lang.String
getStateAsString()
int
getStatus()
java.lang.String
getSubject()
ToDoTask
getTask()
java.lang.String
getText()
java.lang.String
getTo()
java.lang.Integer
getVersion()
Method returning the version of the instancejava.lang.Boolean
isActive()
Method that returns whether the instance is active or not (means: logically deleted)boolean
isHtmlMail()
boolean
maxSendTriesExceeded()
void
prepareSending()
void
setActive(java.lang.Boolean active)
Method setting the active flag.void
setAttachments(java.util.Set<ToDoMailAttachment> attachments)
void
setBcc(java.lang.String bcc)
void
setCc(java.lang.String cc)
void
setFrom(java.lang.String from)
void
setHtmlMail(boolean htmlMail)
void
setId(java.lang.Long id)
Method setting the canonical id of the object.void
setInactive()
Method to delete an object logically.void
setInquiry(ToDoInquiry inquiry)
void
setMailbox(ToDoMailbox mailbox)
void
setReplyAttachments(java.util.Set<ToDoMailAttachment> attachments)
void
setReplyTo(java.lang.String replyTo)
void
setSendCounter(int sendCounter)
void
setSendDate(java.util.Date sendDate)
void
setSendErrorMessage(java.lang.String sendErrorMessage)
void
setStatus(int status)
void
setSubject(java.lang.String subject)
void
setTask(ToDoTask task)
void
setText(java.lang.String text)
void
setTo(java.lang.String to)
void
setToActive()
Method to undelete an object logically.void
setVersion(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
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:ToDoVersionedIdentifiable
Method returning a canonical id of the object. Transient objects return -1;- Specified by:
getId
in 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:ToDoVersionedIdentifiable
Method setting the canonical id of the object. Should under normal circumstances not be manually invoked.- Specified by:
setId
in classToDoVersionedIdentifiable
- Parameters:
id
- id of the object
-
getVersion
public java.lang.Integer getVersion()
Description copied from class:ToDoVersionedIdentifiable
Method returning the version of the instance- Specified by:
getVersion
in classToDoVersionedIdentifiable
- Returns:
- the version
-
setVersion
public void setVersion(java.lang.Integer version)
Description copied from class:ToDoVersionedIdentifiable
Method setting the version of the instance, Should under normal circumstances not be manually invoked.- Specified by:
setVersion
in classToDoVersionedIdentifiable
- Parameters:
version
- of the object
-
isActive
public java.lang.Boolean isActive()
Description copied from class:ToDoVersionedIdentifiable
Method that returns whether the instance is active or not (means: logically deleted)- Specified by:
isActive
in classToDoVersionedIdentifiable
- Returns:
- boolean whether the object is active
-
setActive
public void setActive(java.lang.Boolean active)
Description copied from class:ToDoVersionedIdentifiable
Method setting the active flag. Invoking this method with false logically deletes the instance in the database.- Specified by:
setActive
in classToDoVersionedIdentifiable
- Parameters:
active
- is the object active or not
-
setToActive
public void setToActive()
Description copied from class:ToDoVersionedIdentifiable
Method to undelete an object logically.- Specified by:
setToActive
in classToDoVersionedIdentifiable
-
setInactive
public void setInactive()
Description copied from class:ToDoVersionedIdentifiable
Method to delete an object logically.- Specified by:
setInactive
in classToDoVersionedIdentifiable
-
getStateAsString
public java.lang.String getStateAsString()
-
anonymize
public void anonymize()
- Specified by:
anonymize
in classToDoVersionedIdentifiable
-
getInquiry
public ToDoInquiry getInquiry()
-
setInquiry
public void setInquiry(ToDoInquiry inquiry)
-
-