01: /**********************************************************************************
02: * $URL: https://source.sakaiproject.org/svn/sam/tags/sakai_2-4-1/samigo-hibernate/src/java/org/sakaiproject/tool/assessment/data/dao/assessment/PublishedItemFeedback.java $
03: * $Id: PublishedItemFeedback.java 13062 2006-07-28 21:46:55Z lydial@stanford.edu $
04: ***********************************************************************************
05: *
06: * Copyright (c) 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.tool.assessment.data.dao.assessment;
21:
22: import org.sakaiproject.tool.assessment.data.ifc.assessment.ItemFeedbackIfc;
23: import org.sakaiproject.tool.assessment.data.ifc.assessment.ItemDataIfc;
24:
25: import java.io.*;
26:
27: import org.apache.log4j.*;
28:
29: public class PublishedItemFeedback implements Serializable,
30: ItemFeedbackIfc {
31: static Category errorLogger = Category.getInstance("errorLogger");
32:
33: private static final long serialVersionUID = 7526471155622776147L;
34: public static final String CORRECT_FEEDBACK = "Correct Feedback";
35: public static final String INCORRECT_FEEDBACK = "InCorrect Feedback";
36:
37: private Long id;
38: private ItemDataIfc item;
39: private String typeId;
40: private String text;
41:
42: public PublishedItemFeedback() {
43: }
44:
45: public PublishedItemFeedback(PublishedItemData item, String typeId,
46: String text) {
47: this .item = item;
48: this .typeId = typeId;
49: this .text = text;
50: }
51:
52: public Long getId() {
53: return id;
54: }
55:
56: public void setId(Long id) {
57: this .id = id;
58: }
59:
60: public ItemDataIfc getItem() {
61: return item;
62: }
63:
64: public void setItem(ItemDataIfc item) {
65: this .item = item;
66: }
67:
68: public String getTypeId() {
69: return typeId;
70: }
71:
72: public void setTypeId(String typeId) {
73: this .typeId = typeId;
74: }
75:
76: public String getText() {
77: return text;
78: }
79:
80: public void setText(String text) {
81: this .text = text;
82: }
83:
84: private void writeObject(java.io.ObjectOutputStream out)
85: throws IOException {
86: out.defaultWriteObject();
87: }
88:
89: private void readObject(java.io.ObjectInputStream in)
90: throws IOException, ClassNotFoundException {
91: in.defaultReadObject();
92: }
93:
94: }
|