BrightSide Workbench Full Report + Source Code
org.turro.elephant.entities.db.MailItem Class Reference
Inheritance diagram for org.turro.elephant.entities.db.MailItem:
Collaboration diagram for org.turro.elephant.entities.db.MailItem:

Public Member Functions

Long getId ()
 
void setId (Long id)
 
Date getItemDate ()
 
void setItemDate (Date itemDate)
 
String getIdContact ()
 
void setIdContact (String idContact)
 
String getContactEmail ()
 
void setContactEmail (String contactEmail)
 
String getContactName ()
 
void setContactName (String contactName)
 
String getIdCategory ()
 
void setIdCategory (String idCategory)
 
String getCategory ()
 
void setCategory (String category)
 
String getDescription ()
 
void setDescription (String description)
 
String getSubject ()
 
void setSubject (String subject)
 
String getMessage ()
 
void setMessage (String message)
 
String getPoolName ()
 
void setPoolName (String poolName)
 
String getReason ()
 
void setReason (String reason)
 
String getSender ()
 
void setSender (String sender)
 
Set< MailAttachmentgetMailAttachments ()
 
void setMailAttachments (Set< MailAttachment > mailAttachments)
 
IContact getIContact ()
 
void setIContact (IContact contact)
 
MailAttachment addAttachment (String description, String name, String entityPath)
 
MailAttachment addFile (String description, String name, String filePath)
 
MailAttachment addImage (String description, String name, String imagePath)
 
MailAttachment addImageURL (String description, String name, String imageURL)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 44 of file MailItem.java.

Member Function Documentation

◆ addAttachment()

MailAttachment org.turro.elephant.entities.db.MailItem.addAttachment ( String  description,
String  name,
String  entityPath 
)

Definition at line 203 of file MailItem.java.

203  {
204  MailAttachment ma = new MailAttachment();
205  ma.setType(MailAttachmentType.ATTACH_ATTACHMENT);
206  ma.setDescription(description);
207  ma.setName(name);
208  ma.setEntityPath(entityPath);
209  ma.setMailItem(this);
210  getMailAttachments().add(ma);
211  return ma;
212  }
Set< MailAttachment > getMailAttachments()
Definition: MailItem.java:171
Here is the call graph for this function:

◆ addFile()

MailAttachment org.turro.elephant.entities.db.MailItem.addFile ( String  description,
String  name,
String  filePath 
)

Definition at line 214 of file MailItem.java.

214  {
215  MailAttachment ma = new MailAttachment();
216  ma.setType(MailAttachmentType.ATTACH_FILE);
217  ma.setDescription(description);
218  ma.setName(name);
219  ma.setEntityPath(filePath);
220  ma.setMailItem(this);
221  getMailAttachments().add(ma);
222  return ma;
223  }
Here is the call graph for this function:

◆ addImage()

MailAttachment org.turro.elephant.entities.db.MailItem.addImage ( String  description,
String  name,
String  imagePath 
)

Definition at line 225 of file MailItem.java.

225  {
226  MailAttachment ma = new MailAttachment();
227  ma.setType(MailAttachmentType.ATTACH_IMAGE);
228  ma.setDescription(description);
229  ma.setName(name);
230  ma.setEntityPath(imagePath);
231  ma.setMailItem(this);
232  getMailAttachments().add(ma);
233  return ma;
234  }
Here is the call graph for this function:

◆ addImageURL()

MailAttachment org.turro.elephant.entities.db.MailItem.addImageURL ( String  description,
String  name,
String  imageURL 
)

Definition at line 236 of file MailItem.java.

236  {
237  MailAttachment ma = new MailAttachment();
238  ma.setType(MailAttachmentType.ATTACH_IMAGE_URL);
239  ma.setDescription(description);
240  ma.setName(name);
241  ma.setEntityPath(imageURL);
242  ma.setMailItem(this);
243  getMailAttachments().add(ma);
244  return ma;
245  }
Here is the call graph for this function:

◆ getCategory()

String org.turro.elephant.entities.db.MailItem.getCategory ( )

Definition at line 115 of file MailItem.java.

115  {
116  return category;
117  }
Here is the caller graph for this function:

◆ getContactEmail()

String org.turro.elephant.entities.db.MailItem.getContactEmail ( )

Definition at line 91 of file MailItem.java.

91  {
92  return contactEmail;
93  }

◆ getContactName()

String org.turro.elephant.entities.db.MailItem.getContactName ( )

Definition at line 99 of file MailItem.java.

99  {
100  return contactName;
101  }

◆ getDescription()

String org.turro.elephant.entities.db.MailItem.getDescription ( )

Definition at line 123 of file MailItem.java.

123  {
124  return description;
125  }

◆ getIContact()

IContact org.turro.elephant.entities.db.MailItem.getIContact ( )

Definition at line 183 of file MailItem.java.

183  {
184  if(_contact == null) {
185  _contact = Contacts.getContactById(idContact);
186  }
187  return _contact;
188  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getId()

Long org.turro.elephant.entities.db.MailItem.getId ( )

Definition at line 66 of file MailItem.java.

66  {
67  return id;
68  }
Here is the caller graph for this function:

◆ getIdCategory()

String org.turro.elephant.entities.db.MailItem.getIdCategory ( )

Definition at line 107 of file MailItem.java.

107  {
108  return idCategory;
109  }
Here is the caller graph for this function:

◆ getIdContact()

String org.turro.elephant.entities.db.MailItem.getIdContact ( )

Definition at line 82 of file MailItem.java.

82  {
83  return idContact;
84  }
Here is the caller graph for this function:

◆ getItemDate()

Date org.turro.elephant.entities.db.MailItem.getItemDate ( )

Definition at line 74 of file MailItem.java.

74  {
75  return itemDate;
76  }
Here is the caller graph for this function:

◆ getMailAttachments()

Set<MailAttachment> org.turro.elephant.entities.db.MailItem.getMailAttachments ( )

Definition at line 171 of file MailItem.java.

171  {
172  return mailAttachments;
173  }
Here is the caller graph for this function:

◆ getMessage()

String org.turro.elephant.entities.db.MailItem.getMessage ( )

Definition at line 139 of file MailItem.java.

139  {
140  return message;
141  }

◆ getPoolName()

String org.turro.elephant.entities.db.MailItem.getPoolName ( )

Definition at line 147 of file MailItem.java.

147  {
148  return poolName;
149  }
Here is the caller graph for this function:

◆ getReason()

String org.turro.elephant.entities.db.MailItem.getReason ( )

Definition at line 155 of file MailItem.java.

155  {
156  return reason;
157  }
Here is the caller graph for this function:

◆ getSender()

String org.turro.elephant.entities.db.MailItem.getSender ( )

Definition at line 163 of file MailItem.java.

163  {
164  return sender;
165  }

◆ getSubject()

String org.turro.elephant.entities.db.MailItem.getSubject ( )

Definition at line 131 of file MailItem.java.

131  {
132  return subject;
133  }
Here is the caller graph for this function:

◆ setCategory()

void org.turro.elephant.entities.db.MailItem.setCategory ( String  category)

Definition at line 119 of file MailItem.java.

119  {
120  this.category = category;
121  }
Here is the caller graph for this function:

◆ setContactEmail()

void org.turro.elephant.entities.db.MailItem.setContactEmail ( String  contactEmail)

Definition at line 95 of file MailItem.java.

95  {
96  this.contactEmail = contactEmail;
97  }

◆ setContactName()

void org.turro.elephant.entities.db.MailItem.setContactName ( String  contactName)

Definition at line 103 of file MailItem.java.

103  {
104  this.contactName = contactName;
105  }

◆ setDescription()

void org.turro.elephant.entities.db.MailItem.setDescription ( String  description)

Definition at line 127 of file MailItem.java.

127  {
128  this.description = description;
129  }
Here is the caller graph for this function:

◆ setIContact()

void org.turro.elephant.entities.db.MailItem.setIContact ( IContact  contact)

Definition at line 190 of file MailItem.java.

190  {
191  _contact = contact;
192  idContact = _contact != null ? _contact.getId() : null;
193  contactName = _contact != null ? _contact.getName() : null;
194  contactEmail = _contact != null ? _contact.getConnector(IUser.CONNECTOR_EMAIL) : null;
195  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setId()

void org.turro.elephant.entities.db.MailItem.setId ( Long  id)

Definition at line 70 of file MailItem.java.

70  {
71  this.id = id;
72  }

◆ setIdCategory()

void org.turro.elephant.entities.db.MailItem.setIdCategory ( String  idCategory)

Definition at line 111 of file MailItem.java.

111  {
112  this.idCategory = idCategory;
113  }
Here is the caller graph for this function:

◆ setIdContact()

void org.turro.elephant.entities.db.MailItem.setIdContact ( String  idContact)

Definition at line 86 of file MailItem.java.

86  {
87  this.idContact = idContact;
88  resetIContact();
89  }

◆ setItemDate()

void org.turro.elephant.entities.db.MailItem.setItemDate ( Date  itemDate)

Definition at line 78 of file MailItem.java.

78  {
79  this.itemDate = itemDate;
80  }
Here is the caller graph for this function:

◆ setMailAttachments()

void org.turro.elephant.entities.db.MailItem.setMailAttachments ( Set< MailAttachment mailAttachments)

Definition at line 175 of file MailItem.java.

175  {
176  this.mailAttachments = mailAttachments;
177  }

◆ setMessage()

void org.turro.elephant.entities.db.MailItem.setMessage ( String  message)

Definition at line 143 of file MailItem.java.

143  {
144  this.message = message;
145  }
Here is the caller graph for this function:

◆ setPoolName()

void org.turro.elephant.entities.db.MailItem.setPoolName ( String  poolName)

Definition at line 151 of file MailItem.java.

151  {
152  this.poolName = poolName;
153  }
Here is the caller graph for this function:

◆ setReason()

void org.turro.elephant.entities.db.MailItem.setReason ( String  reason)

Definition at line 159 of file MailItem.java.

159  {
160  this.reason = reason;
161  }
Here is the caller graph for this function:

◆ setSender()

void org.turro.elephant.entities.db.MailItem.setSender ( String  sender)

Definition at line 167 of file MailItem.java.

167  {
168  this.sender = sender;
169  }

◆ setSubject()

void org.turro.elephant.entities.db.MailItem.setSubject ( String  subject)

Definition at line 135 of file MailItem.java.

135  {
136  this.subject = subject;
137  }
Here is the caller graph for this function:

The documentation for this class was generated from the following file: