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/AssessmentMetaData.java $
03: * $Id: AssessmentMetaData.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.AssessmentBaseIfc;
23: import org.sakaiproject.tool.assessment.data.ifc.assessment.AssessmentMetaDataIfc;
24:
25: import java.io.*;
26:
27: import org.apache.log4j.*;
28:
29: public class AssessmentMetaData implements Serializable,
30: AssessmentMetaDataIfc {
31: static Category errorLogger = Category.getInstance("errorLogger");
32:
33: private static final long serialVersionUID = 7526471155622776147L;
34:
35: public static final String AUTHORS = "ASSESSMENT_AUTHORS";
36: public static final String KEYWORDS = "ASSESSMENT_KEYWORDS";
37: public static final String OBJECTIVES = "ASSESSMENT_OBJECTIVES";
38: public static final String RUBRICS = "ASSESSMENT_RUBRICS";
39: public static final String BGCOLOR = "ASSESSMENT_BGCOLOR";
40: public static final String BGIMAGE = "ASSESSMENT_BGIMAGE";
41:
42: private Long id;
43: private AssessmentBaseIfc assessment;
44: private String label;
45: private String entry;
46:
47: public AssessmentMetaData() {
48: }
49:
50: public AssessmentMetaData(AssessmentBaseIfc assessment,
51: String label, String entry) {
52: this .assessment = assessment;
53: this .label = label;
54: this .entry = entry;
55: }
56:
57: public Long getId() {
58: return id;
59: }
60:
61: public void setId(Long id) {
62: this .id = id;
63: }
64:
65: public AssessmentBaseIfc getAssessment() {
66: return assessment;
67: }
68:
69: public void setAssessment(AssessmentBaseIfc assessment) {
70: this .assessment = assessment;
71: }
72:
73: public String getLabel() {
74: return label;
75: }
76:
77: public void setLabel(String label) {
78: this .label = label;
79: }
80:
81: public String getEntry() {
82: return entry;
83: }
84:
85: public void setEntry(String entry) {
86: this .entry = entry;
87: }
88:
89: private void writeObject(java.io.ObjectOutputStream out)
90: throws IOException {
91: out.defaultWriteObject();
92: }
93:
94: private void readObject(java.io.ObjectInputStream in)
95: throws IOException, ClassNotFoundException {
96: in.defaultReadObject();
97: }
98:
99: }
|