public class BaseAnnouncementService.BaseAnnouncementMessageHeaderEdit extends BaseMessage.BaseMessageHeaderEdit implements AnnouncementMessageHeaderEdit
MessageHeader.MessageAccess| Modifier and Type | Field and Description |
|---|---|
protected String |
m_subject
The subject for the announcement.
|
m_access, m_attachments, m_date, m_draft, m_from, m_groups, m_id, m_message, m_message_order| Constructor and Description |
|---|
BaseAnnouncementMessageHeaderEdit(Message msg,
Element el)
Construct, from an already existing XML DOM element.
|
BaseAnnouncementMessageHeaderEdit(Message msg,
MessageHeader other)
Construct as a copy of another header.
|
BaseAnnouncementMessageHeaderEdit(Message msg,
String id)
Construct.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getSubject()
Access the subject of the announcement.
|
void |
setSubject(String subject)
Set the subject of the announcement.
|
Element |
toXml(Document doc,
Stack stack)
Serialize the resource into XML, adding an element to the doc under the top of the stack element.
|
addAttachment, clearAttachments, clearGroupAccess, getAccess, getAttachments, getDate, getDraft, getFrom, getGroupObjects, getGroups, getId, getMessage_order, removeAttachment, replaceAttachments, setDate, setDraft, setFrom, setGroupAccess, setMessage_orderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearGroupAccess, setDate, setDraft, setFrom, setGroupAccess, setMessage_ordergetAccess, getDate, getDraft, getFrom, getGroupObjects, getGroups, getId, getMessage_orderaddAttachment, clearAttachments, removeAttachment, replaceAttachmentsgetAttachmentsprotected String m_subject
public BaseAnnouncementMessageHeaderEdit(Message msg, String id)
id - The unique (within the channel) message id.from - The User who sent the message to the channel.attachments - The message header attachments, a vector of Reference objects.public BaseAnnouncementMessageHeaderEdit(Message msg, Element el)
el - The header in XML in a DOM element.public BaseAnnouncementMessageHeaderEdit(Message msg, MessageHeader other)
other - The other message header to copy.public String getSubject()
getSubject in interface AnnouncementMessageHeaderpublic void setSubject(String subject)
setSubject in interface AnnouncementMessageHeaderEditsubject - The subject of the announcement.public Element toXml(Document doc, Stack stack)
toXml in interface MessageHeadertoXml in class BaseMessage.BaseMessageHeaderEditdoc - The DOM doc to contain the XML (or null for a string return).stack - The DOM elements, the top of which is the containing element of the new "resource" element.Copyright © 2003–2016 The Sakai Foundation. All rights reserved.