01: /**********************************************************************************
02: * $URL: https://source.sakaiproject.org/svn/email/tags/sakai_2-4-1/email-api/api/src/java/org/sakaiproject/email/api/DigestMessage.java $
03: * $Id: DigestMessage.java 7287 2006-03-30 21:21:55Z ggolden@umich.edu $
04: ***********************************************************************************
05: *
06: * Copyright (c) 2003, 2004, 2005, 2006 The Sakai Foundation.
07: *
08: * Licensed under the Educational Community License, Version 1.0 (the "License");
09: * you may not use this file except in compliance with the License.
10: * You may obtain a copy of the License at
11: *
12: * http://www.opensource.org/licenses/ecl1.php
13: *
14: * Unless required by applicable law or agreed to in writing, software
15: * distributed under the License is distributed on an "AS IS" BASIS,
16: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17: * See the License for the specific language governing permissions and
18: * limitations under the License.
19: *
20: **********************************************************************************/package org.sakaiproject.email.api;
21:
22: /**
23: * <p>
24: * DigestMessage is one message in a digest
25: * </p>
26: */
27: public interface DigestMessage {
28: /**
29: * Access the to (user id) of the message.
30: *
31: * @return The to (user id) of the message.
32: */
33: String getTo();
34:
35: /**
36: * Set the to (user id) of the message.
37: *
38: * @param subject
39: * The to (user id) of the message.
40: */
41: void setTo(String to);
42:
43: /**
44: * Access the subject of the message.
45: *
46: * @return The subject of the message.
47: */
48: String getSubject();
49:
50: /**
51: * Set the subject of the message
52: *
53: * @param subject
54: * The subject of the message.
55: */
56: void setSubject(String subject);
57:
58: /**
59: * Access the body of the message.
60: *
61: * @return The body of the message.
62: */
63: String getBody();
64:
65: /**
66: * Set the body of the message
67: *
68: * @param body
69: * The subject of the message.
70: */
71: void setBody(String body);
72: }
|