001: /**********************************************************************************
002: * $URL: https://source.sakaiproject.org/svn/postem/tags/sakai_2-4-1/postem-api/src/java/org/sakaiproject/api/app/postem/data/Gradebook.java $
003: * $Id: Gradebook.java 14724 2006-09-15 16:00:15Z lance@indiana.edu $
004: ***********************************************************************************
005: *
006: * Copyright (c) 2003, 2004, 2005, 2006 The Sakai Foundation.
007: *
008: * Licensed under the Educational Community License, Version 1.0 (the "License");
009: * you may not use this file except in compliance with the License.
010: * You may obtain a copy of the License at
011: *
012: * http://www.opensource.org/licenses/ecl1.php
013: *
014: * Unless required by applicable law or agreed to in writing, software
015: * distributed under the License is distributed on an "AS IS" BASIS,
016: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
017: * See the License for the specific language governing permissions and
018: * limitations under the License.
019: *
020: **********************************************************************************/package org.sakaiproject.api.app.postem.data;
021:
022: import java.sql.Timestamp;
023: import java.util.List;
024: import java.util.Set;
025: import java.util.TreeMap;
026:
027: public interface Gradebook {
028:
029: final String SORT_BY_TITLE = "title";
030: final String SORT_BY_CREATOR = "creator";
031: final String SORT_BY_MOD_BY = "modBy";
032: final String SORT_BY_MOD_DATE = "modDate";
033: final String SORT_BY_RELEASED = "released";
034:
035: public String getTitle();
036:
037: public void setTitle(String title);
038:
039: public String getCreator();
040:
041: public void setCreator(String creator);
042:
043: public String getCreatorEid();
044:
045: public void setCreatorEid(String creatorUserId);
046:
047: public Timestamp getCreated();
048:
049: public void setCreated(Timestamp created);
050:
051: public String getLastUpdater();
052:
053: public void setLastUpdater(String lastUpdater);
054:
055: public String getLastUpdaterEid();
056:
057: public void setLastUpdaterEid(String lastUpdaterUserId);
058:
059: public String getUpdatedDateTime();
060:
061: public Timestamp getLastUpdated();
062:
063: public void setLastUpdated(Timestamp lastUpdated);
064:
065: public String getContext();
066:
067: public void setContext(String context);
068:
069: public Set getStudents();
070:
071: public void setStudents(Set students);
072:
073: public Template getTemplate();
074:
075: public void setTemplate(Template template);
076:
077: public List getHeadings();
078:
079: public void setHeadings(List headings);
080:
081: public Long getId();
082:
083: public void setId(Long id);
084:
085: public Boolean getReleased();
086:
087: public void setReleased(Boolean released);
088:
089: public String getHeadingsRow();
090:
091: public TreeMap getStudentMap();
092:
093: public boolean hasStudent(String username);
094:
095: public boolean getHasGrades();
096:
097: public boolean getHasTemplate();
098:
099: public boolean getRelease();
100:
101: public void setRelease(boolean release);
102:
103: public Boolean getReleaseStatistics();
104:
105: public void setReleaseStatistics(Boolean releaseStatistics);
106:
107: public boolean getReleaseStats();
108:
109: public void setReleaseStats(boolean releaseStats);
110:
111: public String getProperWidth(int column);
112:
113: public List getRawData(int column);
114:
115: public List getAggregateData(int column) throws Exception;
116:
117: // public Map getTotals(int column);
118:
119: public StudentGrades studentGrades(String username);
120:
121: public String getFirstUploadedUsername();
122:
123: public void setFirstUploadedUsername(String username);
124:
125: }
|