001: /**********************************************************************************
002: * $URL: https://source.sakaiproject.org/svn/email/tags/sakai_2-4-1/email-impl/impl/src/java/org/sakaiproject/email/impl/DigestMessage.java $
003: * $Id: DigestMessage.java 7287 2006-03-30 21:21:55Z ggolden@umich.edu $
004: ***********************************************************************************
005: *
006: * Copyright (c) 2003, 2004, 2005, 2006 The Sakai Foundation.
007: *
008: * Licensed under the Educational Community License, Version 1.0 (the "License");
009: * you may not use this file except in compliance with the License.
010: * You may obtain a copy of the License at
011: *
012: * http://www.opensource.org/licenses/ecl1.php
013: *
014: * Unless required by applicable law or agreed to in writing, software
015: * distributed under the License is distributed on an "AS IS" BASIS,
016: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
017: * See the License for the specific language governing permissions and
018: * limitations under the License.
019: *
020: **********************************************************************************/package org.sakaiproject.email.impl;
021:
022: /**
023: * <p>
024: * DigestMessage is one message in a digest
025: * </p>
026: */
027: public class DigestMessage implements
028: org.sakaiproject.email.api.DigestMessage {
029: /** The id of the User who gets this message. */
030: protected String m_to = null;
031:
032: /** The subject. */
033: protected String m_subject = null;
034:
035: /** The body. */
036: protected String m_body = null;
037:
038: /**
039: * Construct.
040: *
041: * @param to
042: * The id of the User who gets this message.
043: * @param subject
044: * The subject.
045: * @param body
046: * The body.
047: */
048: public DigestMessage(String to, String subject, String body) {
049: m_to = to;
050: m_subject = subject;
051: m_body = body;
052: }
053:
054: /**
055: * Access the to (user id) of the message.
056: *
057: * @return The to (user id) of the message.
058: */
059: public String getTo() {
060: return m_to;
061: }
062:
063: /**
064: * Set the to (user id) of the message.
065: *
066: * @param subject
067: * The to (user id) of the message.
068: */
069: public void setTo(String to) {
070: m_to = to;
071: }
072:
073: /**
074: * Access the subject of the message.
075: *
076: * @return The subject of the message.
077: */
078: public String getSubject() {
079: return m_subject;
080: }
081:
082: /**
083: * Set the subject of the message
084: *
085: * @param subject
086: * The subject of the message.
087: */
088: public void setSubject(String subject) {
089: m_subject = subject;
090: }
091:
092: /**
093: * Access the body of the message.
094: *
095: * @return The body of the message.
096: */
097: public String getBody() {
098: return m_body;
099: }
100:
101: /**
102: * Set the body of the message
103: *
104: * @param body
105: * The subject of the message.
106: */
107: public void setBody(String body) {
108: m_body = body;
109: }
110: }
|