@Entity public class MailMessage extends AuditableModel
| Constructor and Description |
|---|
MailMessage() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFlag(MailFlags item)
Add the given
MailFlags item to the flags. |
void |
addRecipient(MailAddress item)
Add the given
MailAddress item to the recipients. |
void |
addReply(MailMessage item)
Add the given
MailMessage item to the replies. |
void |
clearFlags()
Clear the
flags collection. |
void |
clearRecipients()
Clear the
recipients collection. |
void |
clearReplies()
Clear the
replies collection. |
boolean |
equals(Object obj) |
User |
getAuthor() |
String |
getBody() |
List<MailFlags> |
getFlags() |
MailAddress |
getFrom() |
Long |
getId() |
String |
getMessageId()
Unique message identifier
|
MailMessage |
getParent() |
Set<MailAddress> |
getRecipients() |
Long |
getRelatedId() |
String |
getRelatedModel() |
String |
getRelatedName() |
List<MailMessage> |
getReplies() |
MailMessage |
getRoot() |
String |
getSubject() |
String |
getSummary() |
String |
getType() |
int |
hashCode() |
void |
removeFlag(MailFlags item)
Remove the given
MailFlags item from the flags. |
void |
removeRecipient(MailAddress item)
Remove the given
MailAddress item from the recipients. |
void |
removeReply(MailMessage item)
Remove the given
MailMessage item from the replies. |
void |
setAuthor(User author) |
void |
setBody(String body) |
void |
setFlags(List<MailFlags> flags) |
void |
setFrom(MailAddress from) |
void |
setId(Long id) |
void |
setMessageId(String messageId) |
void |
setParent(MailMessage parent) |
void |
setRecipients(Set<MailAddress> recipients) |
void |
setRelatedId(Long relatedId) |
void |
setRelatedModel(String relatedModel) |
void |
setRelatedName(String relatedName) |
void |
setReplies(List<MailMessage> replies) |
void |
setRoot(MailMessage root) |
void |
setSubject(String subject) |
void |
setSummary(String summary) |
void |
setType(String type) |
String |
toString() |
getCreatedBy, getCreatedOn, getUpdatedBy, getUpdatedOngetArchived, getVersion, isSelected, setArchived, setSelected, setVersionpublic String getType()
public void setType(String type)
public User getAuthor()
public void setAuthor(User author)
public MailAddress getFrom()
public void setFrom(MailAddress from)
public Set<MailAddress> getRecipients()
public void setRecipients(Set<MailAddress> recipients)
public void addRecipient(MailAddress item)
MailAddress item to the recipients.item - the item to addpublic void removeRecipient(MailAddress item)
MailAddress item from the recipients.item - the item to removepublic void clearRecipients()
recipients collection.public String getSubject()
public void setSubject(String subject)
public String getBody()
public void setBody(String body)
public String getSummary()
public void setSummary(String summary)
public String getMessageId()
public void setMessageId(String messageId)
public Long getRelatedId()
public void setRelatedId(Long relatedId)
public String getRelatedModel()
public void setRelatedModel(String relatedModel)
public String getRelatedName()
public void setRelatedName(String relatedName)
public MailMessage getRoot()
public void setRoot(MailMessage root)
public MailMessage getParent()
public void setParent(MailMessage parent)
public List<MailMessage> getReplies()
public void setReplies(List<MailMessage> replies)
public void addReply(MailMessage item)
MailMessage item to the replies.
It sets item.parent = this to ensure the proper relationship.
item - the item to addpublic void removeReply(MailMessage item)
MailMessage item from the replies.item - the item to removepublic void clearReplies()
replies collection.
If you have to query MailMessage records in same transaction, make
sure to call EntityManager.flush() to avoid
unexpected errors.
public void addFlag(MailFlags item)
MailFlags item to the flags.
It sets item.message = this to ensure the proper relationship.
item - the item to addpublic void removeFlag(MailFlags item)
MailFlags item from the flags.item - the item to removepublic void clearFlags()
flags collection.
If you have to query MailFlags records in same transaction, make
sure to call EntityManager.flush() to avoid
unexpected errors.