org.openmrs.notification
Class Message
java.lang.Object
org.openmrs.notification.Message
- All Implemented Interfaces:
- java.io.Serializable
public class Message
- extends java.lang.Object
- implements java.io.Serializable
- See Also:
- Serialized Form
Constructor Summary |
Message()
|
Message(java.lang.Integer id,
java.lang.String recipients,
java.lang.String sender,
java.lang.String subject,
java.lang.String content)
|
Message(java.lang.Integer id,
java.lang.String recipients,
java.lang.String sender,
java.lang.String subject,
java.lang.String content,
java.lang.String contentType)
|
Message(java.lang.Integer id,
java.lang.String recipients,
java.lang.String sender,
java.lang.String subject,
java.lang.String content,
java.lang.String attachment,
java.lang.String attachmentContentType,
java.lang.String attachmentFileName)
|
Message(java.lang.Integer id,
java.lang.String recipients,
java.lang.String sender,
java.lang.String subject,
java.lang.String content,
java.lang.String contentType,
java.lang.String attachment,
java.lang.String attachmentContentType,
java.lang.String attachmentFileName)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Message
public Message()
Message
public Message(java.lang.Integer id,
java.lang.String recipients,
java.lang.String sender,
java.lang.String subject,
java.lang.String content)
Message
public Message(java.lang.Integer id,
java.lang.String recipients,
java.lang.String sender,
java.lang.String subject,
java.lang.String content,
java.lang.String contentType)
Message
public Message(java.lang.Integer id,
java.lang.String recipients,
java.lang.String sender,
java.lang.String subject,
java.lang.String content,
java.lang.String attachment,
java.lang.String attachmentContentType,
java.lang.String attachmentFileName)
- Parameters:
id
- recipients
- sender
- subject
- content
- attachment
- attachmentContentType
- attachmentFileName
- - Expected behavior:
- fill in all parameters
Message
public Message(java.lang.Integer id,
java.lang.String recipients,
java.lang.String sender,
java.lang.String subject,
java.lang.String content,
java.lang.String contentType,
java.lang.String attachment,
java.lang.String attachmentContentType,
java.lang.String attachmentFileName)
setId
public void setId(java.lang.Integer id)
getId
public java.lang.Integer getId()
setRecipients
public void setRecipients(java.lang.String recipients)
- Auto generated method comment
- Parameters:
recipients
- - Expected behavior:
- set multiple recipients
getRecipients
public java.lang.String getRecipients()
addRecipient
public void addRecipient(java.lang.String recipient)
- Add a new receiver of this message. Will append to current list of recipients by inserting a
comma. If no recipients exist, this method has no effect (TODO is this the correct
behavior??!).
- Parameters:
recipient
- a new address to assign- Expected behavior:
- add new recipient
setSender
public void setSender(java.lang.String sender)
getSender
public java.lang.String getSender()
setSubject
public void setSubject(java.lang.String subject)
getSubject
public java.lang.String getSubject()
setSentDate
public void setSentDate(java.util.Date sentDate)
getSentDate
public java.util.Date getSentDate()
setContent
public void setContent(java.lang.String content)
getContent
public java.lang.String getContent()
setContentType
public void setContentType(java.lang.String contentType)
getContentType
public java.lang.String getContentType()
getAttachment
public java.lang.String getAttachment()
setAttachment
public void setAttachment(java.lang.String attachment)
getAttachmentContentType
public java.lang.String getAttachmentContentType()
setAttachmentContentType
public void setAttachmentContentType(java.lang.String attachmentContentType)
getAttachmentFileName
public java.lang.String getAttachmentFileName()
setAttachmentFileName
public void setAttachmentFileName(java.lang.String attachmentFileName)
hasAttachment
public boolean hasAttachment()
- Returns:
- true if this message has an attachment
- Expected behavior:
- return true if this message has an attachment
Generated Apr 27 2012 10:06 PM. NOTE - these libraries are in active development and subject to change