01: /**********************************************************************************
02: *
03: * $Id: GradebookDefinition.java 20758 2007-01-29 18:07:03Z ray@media.berkeley.edu $
04: *
05: ***********************************************************************************
06: *
07: * Copyright (c) 2007 The Regents of the University of California
08: *
09: * Licensed under the Educational Community License, Version 1.0 (the "License");
10: * you may not use this file except in compliance with the License.
11: * You may obtain a copy of the License at
12: *
13: * http://www.opensource.org/licenses/ecl1.php
14: *
15: * Unless required by applicable law or agreed to in writing, software
16: * distributed under the License is distributed on an "AS IS" BASIS,
17: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18: * See the License for the specific language governing permissions and
19: * limitations under the License.
20: *
21: **********************************************************************************/package org.sakaiproject.component.gradebook;
22:
23: import java.io.Externalizable;
24: import java.util.Collection;
25: import java.util.Map;
26:
27: import org.sakaiproject.service.gradebook.shared.Assignment;
28:
29: public class GradebookDefinition extends VersionedExternalizable
30: implements Externalizable {
31: private static final long serialVersionUID = 1L;
32: public static final String EXTERNALIZABLE_VERSION = "1";
33:
34: private String selectedGradingScaleUid;
35: private Map<String, Double> selectedGradingScaleBottomPercents;
36: private Collection<Assignment> assignments;
37:
38: public GradebookDefinition() {
39: }
40:
41: public String getExternalizableVersion() {
42: return EXTERNALIZABLE_VERSION;
43: }
44:
45: public Collection<Assignment> getAssignments() {
46: return assignments;
47: }
48:
49: public void setAssignments(Collection<Assignment> assignments) {
50: this .assignments = assignments;
51: }
52:
53: public Map<String, Double> getSelectedGradingScaleBottomPercents() {
54: return selectedGradingScaleBottomPercents;
55: }
56:
57: public void setSelectedGradingScaleBottomPercents(
58: Map<String, Double> selectedGradingScaleBottomPercents) {
59: this .selectedGradingScaleBottomPercents = selectedGradingScaleBottomPercents;
60: }
61:
62: public String getSelectedGradingScaleUid() {
63: return selectedGradingScaleUid;
64: }
65:
66: public void setSelectedGradingScaleUid(
67: String selectedGradingScaleUid) {
68: this.selectedGradingScaleUid = selectedGradingScaleUid;
69: }
70:
71: }
|