Package com.axelor.mail.db
Class MailMessage
java.lang.Object
com.axelor.db.Model
com.axelor.auth.db.AuditableModel
com.axelor.mail.db.MailMessage
The model to store different kind of messages like system notifications,
comments, email messages etc.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd the givenMailFlagsitem to theflagscollection.voidaddRecipient(MailAddress item) Add the givenMailAddressitem to therecipientscollection.voidaddReply(MailMessage item) Add the givenMailMessageitem to therepliescollection.voidClear theflagscollection.voidClear therecipientscollection.voidClear therepliescollection.booleangetBody()getFlags()getFrom()getId()Unique message identifiergetRoot()getType()inthashCode()voidremoveFlag(MailFlags item) Remove the givenMailFlagsitem from theflagscollection.voidremoveRecipient(MailAddress item) Remove the givenMailAddressitem from therecipientscollection.voidremoveReply(MailMessage item) Remove the givenMailMessageitem from therepliescollection.voidvoidvoidvoidsetFrom(MailAddress from) voidvoidsetMessageId(String messageId) voidsetParent(MailMessage parent) voidsetRecipients(Set<MailAddress> recipients) voidsetRelatedId(Long relatedId) voidsetRelatedModel(String relatedModel) voidsetRelatedName(String relatedName) voidsetReplies(List<MailMessage> replies) voidsetRoot(MailMessage root) voidsetSubject(String subject) voidsetSummary(String summary) voidtoString()Methods inherited from class com.axelor.auth.db.AuditableModel
getCreatedBy, getCreatedOn, getUpdatedBy, getUpdatedOnMethods inherited from class com.axelor.db.Model
getArchived, getCid, getVersion, isSelected, setArchived, setCid, setSelected, setVersion
-
Constructor Details
-
MailMessage
public MailMessage()
-
-
Method Details
-
getId
-
setId
-
getType
-
setType
-
getAuthor
-
setAuthor
-
getFrom
-
setFrom
-
getRecipients
-
setRecipients
-
addRecipient
Add the givenMailAddressitem to therecipientscollection.- Parameters:
item- the item to add
-
removeRecipient
Remove the givenMailAddressitem from therecipientscollection.- Parameters:
item- the item to remove
-
clearRecipients
public void clearRecipients()Clear therecipientscollection. -
getSubject
-
setSubject
-
getBody
-
setBody
-
getSummary
-
setSummary
-
getMessageId
Unique message identifier- Returns:
- the property value
-
setMessageId
-
getRelatedId
-
setRelatedId
-
getRelatedModel
-
setRelatedModel
-
getRelatedName
-
setRelatedName
-
getRoot
-
setRoot
-
getParent
-
setParent
-
getReplies
-
setReplies
-
addReply
Add the givenMailMessageitem to therepliescollection.It sets
item.parent = thisto ensure the proper relationship.- Parameters:
item- the item to add
-
removeReply
Remove the givenMailMessageitem from therepliescollection.- Parameters:
item- the item to remove
-
clearReplies
public void clearReplies()Clear therepliescollection. -
getFlags
-
setFlags
-
addFlag
Add the givenMailFlagsitem to theflagscollection.It sets
item.message = thisto ensure the proper relationship.- Parameters:
item- the item to add
-
removeFlag
Remove the givenMailFlagsitem from theflagscollection.- Parameters:
item- the item to remove
-
clearFlags
public void clearFlags()Clear theflagscollection. -
equals
-
hashCode
public int hashCode() -
toString
-