Class Message
java.lang.Object
com.logicaldoc.core.PersistentObject
com.logicaldoc.core.communication.Message
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
EMail,SystemMessage
This is the parent class for email and system message.
- Version:
- 1.0
- Author:
- Michael Scholz, Marco Meschieri
- See Also:
-
Field Summary
FieldsFields inherited from class com.logicaldoc.core.PersistentObject
DELETED_CODE_DEFAULT, DELETED_CODE_STRONG, id -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintgetHtml()getRecipient(String name) intgetType()inthashCode()booleanisNotify()voidvoidsetHtml(int html) voidvoidsetMessageText(String mess) voidsetNotify(boolean notify) voidsetReceivedDate(Date receivedDate) voidsetRecipients(Set<Recipient> recipients) voidsetSentDate(Date sentDate) voidsetSubject(String subj) voidsetType(int type) booleanMethods inherited from class com.logicaldoc.core.PersistentObject
getCreation, getDeleted, getId, getLastModified, getRecordVersion, getTenantId, setCreation, setDeleted, setId, setLastModified, setRecordVersion, setTenantId, toString
-
Field Details
-
TYPE_SYSTEM
public static final int TYPE_SYSTEM- See Also:
-
TYPE_NOTIFICATION
public static final int TYPE_NOTIFICATION- See Also:
-
-
Constructor Details
-
Message
public Message()
-
-
Method Details
-
isNotify
public boolean isNotify() -
setNotify
public void setNotify(boolean notify) -
getMessageText
-
getAuthor
-
getSubject
-
setMessageText
-
setAuthor
-
setSubject
-
getSentDate
-
setSentDate
-
getType
public int getType() -
setType
public void setType(int type) -
getRecipient
-
wasReadBy
-
getRecipients
-
setRecipients
-
getLocale
-
setLocale
-
getHtml
public int getHtml() -
setHtml
public void setHtml(int html) -
getReceivedDate
-
setReceivedDate
-
hashCode
public int hashCode()- Overrides:
hashCodein classPersistentObject
-
equals
- Overrides:
equalsin classPersistentObject
-