Package com.groiss.mail
Interface MailQueueItem
- All Superinterfaces:
KeyValuePair<String,
,String> Persistent
,Serializable
Item in the mail queue.
-
Field Summary
Fields inherited from interface com.groiss.store.Persistent
emptyKeys
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
boolean
isLogged()
void
setReferencedObject
(Persistent refObj) Possibility to set the reference of the mail queue item in "@enterprise" which is represented by aPersistent
.Methods inherited from interface com.groiss.store.Persistent
afterDelete, afterInsert, afterRead, afterUpdate, beforeDelete, beforeInsert, beforeUpdate, dbFields, getKey, getKeys, getLocalClassName, getLocalObjectName, getOid, getStore, getTableName, getValue, isFilled, isValid, setFilled, setOid, setOid, toListString
-
Method Details
-
getMailAsBytes
byte[] getMailAsBytes()- Returns:
- The
Message
object as byte array.
-
getCreatedAt
Date getCreatedAt()- Returns:
- The creation date of the mail queue item.
-
getLastTry
Date getLastTry()- Returns:
- The date when email of mail queue item has been tried to send the last time.
-
getStatus
String getStatus()- Returns:
- The status of the mail queue item. If a new mail queue item has been inserted (without errors), the status is 'new'. In case of an error during sending the mail, the error message is returned.
-
getSubject
String getSubject()- Returns:
- The subject of the mail object.
-
getSender
Persistent getSender() -
getReferencedObject
Persistent getReferencedObject()- Returns:
- The referenced object in "@enterprise" as
Persistent
, e.g. the "@enterprise" Email object in case of sending email via appropriate tab at process instance.
-
isLogged
boolean isLogged()- Returns:
true
, if the message is also stored inMessageJournal
, otherwisefalse
-
setReferencedObject
Possibility to set the reference of the mail queue item in "@enterprise" which is represented by aPersistent
.- Parameters:
refObj
- the representation of theMessage
object in "@enterprise" of that mail queue item.
-