org.sakaiproject.tool.assessment.integration.helper.integrated
Class GradebookServiceHelperImpl

java.lang.Object
  extended byorg.sakaiproject.tool.assessment.integration.helper.integrated.GradebookServiceHelperImpl
All Implemented Interfaces:
GradebookServiceHelper, Serializable

public class GradebookServiceHelperImpl
extends Object
implements GradebookServiceHelper

Description: This is an integrated context implementation helper delegate class for the GradebookService class. "Integrated" means that Samigo (Tests and Quizzes) is running within the context of the Sakai portal and authentication mechanisms, and therefore makes calls on Sakai for things it needs.

Note: To customize behavior you can add your own helper class to the Spring injection via the integrationContext.xml for your context. The particular integrationContext.xml to be used is selected by the build process.

Sakai Project Copyright (c) 2005

Author:
Ed Smiley
See Also:
Serialized Form

Constructor Summary
GradebookServiceHelperImpl()
           
 
Method Summary
 boolean addToGradebook(PublishedAssessmentData publishedAssessment, GradebookService g)
          Add a published assessment to gradebook.
 boolean gradebookExists(String gradebookUId, GradebookService g)
          Does a gradebook exist?
 boolean isAssignmentDefined(String assessmentTitle, GradebookService g)
           
 void removeExternalAssessment(String gradebookUId, String publishedAssessmentId, GradebookService g)
          Remove a published assessment from the gradebook.
 void updateExternalAssessmentScore(AssessmentGradingIfc ag, GradebookService g)
          Update the grading of the assessment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GradebookServiceHelperImpl

public GradebookServiceHelperImpl()
Method Detail

gradebookExists

public boolean gradebookExists(String gradebookUId,
                               GradebookService g)
Does a gradebook exist?

Specified by:
gradebookExists in interface GradebookServiceHelper
Parameters:
gradebookUId - the gradebook id
g - the Gradebook Service
Returns:
true if the given gradebook exists

removeExternalAssessment

public void removeExternalAssessment(String gradebookUId,
                                     String publishedAssessmentId,
                                     GradebookService g)
                              throws Exception
Remove a published assessment from the gradebook.

Specified by:
removeExternalAssessment in interface GradebookServiceHelper
Parameters:
gradebookUId - the gradebook id
g - the Gradebook Service
publishedAssessmentId - the id of the published assessment
Throws:
Exception

isAssignmentDefined

public boolean isAssignmentDefined(String assessmentTitle,
                                   GradebookService g)
                            throws Exception
Specified by:
isAssignmentDefined in interface GradebookServiceHelper
Throws:
Exception

addToGradebook

public boolean addToGradebook(PublishedAssessmentData publishedAssessment,
                              GradebookService g)
                       throws Exception
Add a published assessment to gradebook.

Specified by:
addToGradebook in interface GradebookServiceHelper
Parameters:
publishedAssessment - the published assessment
g - the Gradebook Service
Returns:
false: cannot add to gradebook
Throws:
Exception

updateExternalAssessmentScore

public void updateExternalAssessmentScore(AssessmentGradingIfc ag,
                                          GradebookService g)
                                   throws Exception
Update the grading of the assessment.

Specified by:
updateExternalAssessmentScore in interface GradebookServiceHelper
Parameters:
ag - the assessment grading.
g - the Gradebook Service
Throws:
Exception