Class Message
- java.lang.Object
-
- com.logicaldoc.core.PersistentObject
-
- com.logicaldoc.core.communication.Message
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
EMail
,SystemMessage
public abstract class Message extends PersistentObject
This is the parent class for email and system message.- Version:
- 1.0
- Author:
- Michael Scholz, Marco Meschieri
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
TYPE_NOTIFICATION
static int
TYPE_SYSTEM
-
Fields inherited from class com.logicaldoc.core.PersistentObject
DELETED_CODE_DEFAULT, DELETED_CODE_STRONG
-
-
Constructor Summary
Constructors Constructor Description Message()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAuthor()
int
getHtml()
Locale
getLocale()
String
getMessageText()
Date
getReceivedDate()
Recipient
getRecipient(String name)
Set<Recipient>
getRecipients()
Date
getSentDate()
String
getSubject()
int
getType()
boolean
isNotify()
void
setAuthor(String auth)
void
setHtml(int html)
void
setLocale(Locale locale)
void
setMessageText(String mess)
void
setNotify(boolean notify)
void
setReceivedDate(Date receivedDate)
void
setRecipients(Set<Recipient> recipients)
void
setSentDate(Date sentDate)
void
setSubject(String subj)
void
setType(int type)
boolean
wasReadBy(String name)
-
Methods inherited from class com.logicaldoc.core.PersistentObject
equals, getDeleted, getId, getLastModified, getRecordVersion, getTenantId, hashCode, setDeleted, setId, setLastModified, setRecordVersion, setTenantId, toString
-
-
-
-
Field Detail
-
TYPE_SYSTEM
public static final int TYPE_SYSTEM
- See Also:
- Constant Field Values
-
TYPE_NOTIFICATION
public static final int TYPE_NOTIFICATION
- See Also:
- Constant Field Values
-
-
Method Detail
-
isNotify
public boolean isNotify()
-
setNotify
public void setNotify(boolean notify)
-
getMessageText
public String getMessageText()
-
getAuthor
public String getAuthor()
-
getSubject
public String getSubject()
-
setMessageText
public void setMessageText(String mess)
-
setAuthor
public void setAuthor(String auth)
-
setSubject
public void setSubject(String subj)
-
getSentDate
public Date getSentDate()
-
setSentDate
public void setSentDate(Date sentDate)
-
getType
public int getType()
-
setType
public void setType(int type)
-
wasReadBy
public boolean wasReadBy(String name)
-
getLocale
public Locale getLocale()
-
setLocale
public void setLocale(Locale locale)
-
getHtml
public int getHtml()
-
setHtml
public void setHtml(int html)
-
getReceivedDate
public Date getReceivedDate()
-
setReceivedDate
public void setReceivedDate(Date receivedDate)
-
-