01: /**********************************************************************************
02: * $URL: https://source.sakaiproject.org/svn/sam/trunk/component/src/java/org/sakaiproject/tool/assessment/integration/helper/ifc/GradebookServiceHelper.java $
03: * $Id: GradebookServiceHelper.java 9273 2006-05-10 22:34:28Z daisyf@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.integration.helper.ifc;
21:
22: import java.io.Serializable;
23:
24: import org.sakaiproject.service.gradebook.shared.GradebookService;
25: import org.sakaiproject.tool.assessment.data.dao.assessment.PublishedAssessmentData;
26: import org.sakaiproject.tool.assessment.data.ifc.grading.AssessmentGradingIfc;
27:
28: /**
29: * <p>Description:
30: * This is a context implementation helper delegate interface for
31: * the GradebookService class. Using Spring injection via the
32: * integrationContext.xml selected by the build process for the implementation.
33: * </p>
34: * <p>Sakai Project Copyright (c) 2005</p>
35: * <p> </p>
36: * @author Ed Smiley <esmiley@stanford.edu>
37: */
38: public interface GradebookServiceHelper extends Serializable {
39: public boolean gradebookExists(String gradebookUId,
40: GradebookService g);
41:
42: public boolean isGradebookExist(String SiteId);
43:
44: public void removeExternalAssessment(String gradebookUId,
45: String publishedAssessmentId, GradebookService g)
46: throws Exception;
47:
48: public boolean addToGradebook(
49: PublishedAssessmentData publishedAssessment,
50: GradebookService g) throws Exception;
51:
52: public boolean updateGradebook(
53: PublishedAssessmentData publishedAssessment,
54: GradebookService g) throws Exception;
55:
56: public boolean isAssignmentDefined(String assessmentTitle,
57: GradebookService g) throws Exception;
58:
59: public void updateExternalAssessmentScore(AssessmentGradingIfc ag,
60: GradebookService g) throws Exception;
61: }
|