01: /**********************************************************************************
02: * $URL: https://source.sakaiproject.org/svn/msgcntr/trunk/messageforums-api/src/java/org/sakaiproject/api/app/messageforums/Message.java $
03: * $Id: Message.java 9227 2006-05-15 15:02:42Z cwen@iupui.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.api.app.messageforums;
21:
22: import java.util.List;
23: import java.util.Set;
24:
25: //import org.sakaiproject.component.app.messageforums.dao.hibernate.Type;
26:
27: // TODO: Needs to be able to get to the MutableEntity stuff
28: // TODO: Make Type an interface too
29:
30: public interface Message extends MutableEntity {
31:
32: public Boolean getDraft();
33:
34: public void setDraft(Boolean draft);
35:
36: public Boolean getApproved();
37:
38: public void setApproved(Boolean approved);
39:
40: public Boolean getHasAttachments();
41:
42: public void setHasAttachments(Boolean hasAttachments);
43:
44: public List getAttachments();
45:
46: public void setAttachments(List attachments);
47:
48: public Set getAttachmentsSet();
49:
50: public String getAuthor();
51:
52: public void setAuthor(String author);
53:
54: public String getBody();
55:
56: public void setBody(String body);
57:
58: public String getGradebook();
59:
60: public void setGradebook(String gradebook);
61:
62: public String getGradebookAssignment();
63:
64: public void setGradebookAssignment(String gradebookAssignment);
65:
66: public Message getInReplyTo();
67:
68: public void setInReplyTo(Message inReplyTo);
69:
70: public String getLabel();
71:
72: public void setLabel(String label);
73:
74: public String getTitle();
75:
76: public void setTitle(String title);
77:
78: public String getTypeUuid();
79:
80: public void setTypeUuid(String typeUuid);
81:
82: public void setTopic(Topic topic);
83:
84: public Topic getTopic();
85:
86: public void addAttachment(Attachment attachment);
87:
88: public void removeAttachment(Attachment attachment);
89:
90: public String getGradeComment();
91:
92: public void setGradeComment(String gradeComment);
93:
94: public String getGradeAssignmentName();
95:
96: public void setGradeAssignmentName(String gradeAssignmentName);
97:
98: }
|