01: /**********************************************************************************
02: * $URL: https://source.sakaiproject.org/svn/postem/tags/sakai_2-4-1/postem-api/src/java/org/sakaiproject/api/app/postem/data/GradebookManager.java $
03: * $Id: GradebookManager.java 14724 2006-09-15 16:00:15Z lance@indiana.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.postem.data;
21:
22: import java.util.List;
23: import java.util.SortedSet;
24:
25: public interface GradebookManager {
26: public Gradebook createGradebook(String title, String creator,
27: String context, List headings, SortedSet students,
28: Template template);
29:
30: public Gradebook createEmptyGradebook(String creator, String context);
31:
32: public StudentGrades createStudentGradesInGradebook(
33: String username, List grades, Gradebook gradebook);
34:
35: public StudentGrades createStudentGrades(String username,
36: List grades);
37:
38: public Template createTemplate(String template);
39:
40: public Gradebook getGradebookByTitleAndContext(final String title,
41: final String context);
42:
43: public SortedSet getGradebooksByContext(final String context,
44: final String sortBy, final boolean ascending);
45:
46: public SortedSet getReleasedGradebooksByContext(
47: final String context, final String sortBy,
48: final boolean ascending);
49:
50: public SortedSet getStudentGradesForGradebook(
51: final Gradebook gradebook);
52:
53: public void saveGradebook(Gradebook gradebook);
54:
55: public void updateGrades(Gradebook gradebook, List headings,
56: SortedSet students);
57:
58: public void updateTemplate(Gradebook gradebook, String template);
59:
60: public void deleteGradebook(final Gradebook gradebook);
61:
62: public void deleteStudentGrades(final StudentGrades student);
63: }
|