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

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

public class GradebookServiceHelperImpl
extends Object
implements GradebookServiceHelper

Description: This is a stub standalone context implementation helper delegate class for the GradebookService class. The helper methods are stubs because in standalone there isn't gradebook integration. "Standalone" means that Samigo (Tests and Quizzes) is running without the context of the Sakai portal and authentication mechanisms, and therefore we use stub methods.

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)
          STUB.
 boolean gradebookExists(String gradebookUId, GradebookService g)
          Always returns false, because standalone.
 boolean isAssignmentDefined(String assessmentTitle, GradebookService g)
           
 void removeExternalAssessment(String gradebookUId, String publishedAssessmentId, GradebookService g)
          STUB.
 void updateExternalAssessmentScore(AssessmentGradingIfc ag, GradebookService g)
          STUB.
 
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

isAssignmentDefined

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

addToGradebook

public boolean addToGradebook(PublishedAssessmentData publishedAssessment,
                              GradebookService g)
STUB. NO-OP.

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

removeExternalAssessment

public void removeExternalAssessment(String gradebookUId,
                                     String publishedAssessmentId,
                                     GradebookService g)
                              throws Exception
STUB. NO-OP.

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

gradebookExists

public boolean gradebookExists(String gradebookUId,
                               GradebookService g)
Always returns false, because standalone.

Specified by:
gradebookExists in interface GradebookServiceHelper
Parameters:
gradebookUId - the gradebook id
g - the Gradebook Service
Returns:
false, no gradebook integration

updateExternalAssessmentScore

public void updateExternalAssessmentScore(AssessmentGradingIfc ag,
                                          GradebookService g)
                                   throws Exception
STUB. NO-OP.

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