/********************************************************************************** * * $Id: GradebookDefinition.java 105077 2012-02-24 22:54:29Z ottenhoff@longsight.com $ * *********************************************************************************** * * Copyright (c) 2007, 2008 The Sakai Foundation * * Licensed under the Educational Community License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.opensource.org/licenses/ECL-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * **********************************************************************************/ package org.sakaiproject.component.gradebook; import java.io.Externalizable; import java.util.Collection; import java.util.Map; import java.util.List; import org.sakaiproject.service.gradebook.shared.Assignment; public class GradebookDefinition extends VersionedExternalizable implements Externalizable { private static final long serialVersionUID = 1L; public static final String EXTERNALIZABLE_VERSION = "1"; private String selectedGradingScaleUid; private Map<String, Double> selectedGradingScaleBottomPercents; private Collection<Assignment> assignments; private int gradeType; private int categoryType; private List category; public GradebookDefinition() { } public String getExternalizableVersion() { return EXTERNALIZABLE_VERSION; } public Collection<Assignment> getAssignments() { return assignments; } public void setAssignments(Collection<Assignment> assignments) { this.assignments = assignments; } public Map<String, Double> getSelectedGradingScaleBottomPercents() { return selectedGradingScaleBottomPercents; } public void setSelectedGradingScaleBottomPercents(Map<String, Double> selectedGradingScaleBottomPercents) { this.selectedGradingScaleBottomPercents = selectedGradingScaleBottomPercents; } public String getSelectedGradingScaleUid() { return selectedGradingScaleUid; } public void setSelectedGradingScaleUid(String selectedGradingScaleUid) { this.selectedGradingScaleUid = selectedGradingScaleUid; } public int getGradeType() { return gradeType; } public void setGradeType(int gradeType) { this.gradeType = gradeType; } public int getCategoryType() { return categoryType; } public void setCategoryType(int categoryType) { this.categoryType = categoryType; } public List getCategory() { return category; } public void setCategory(List category) { this.category = category; } }