org.sakaiproject.tool.assessment.shared.impl.grading
Class GradebookServiceImpl

java.lang.Object
  extended byorg.sakaiproject.tool.assessment.shared.impl.grading.GradebookServiceImpl
All Implemented Interfaces:
GradebookServiceAPI

public class GradebookServiceImpl
extends Object
implements GradebookServiceAPI

The GradebookServiceAPI describes an interface for gradebook information for published assessments. Implemented by wrapping GradebookServiceHelper(). Right that is a stub implementation, but this is designed to continue to work if it isn't.

Author:
Ed Smiley

Constructor Summary
GradebookServiceImpl()
           
 
Method Summary
 boolean addToGradebook(PublishedAssessmentIfc publishedAssessment)
          Add this published assessment to the site.
 boolean gradebookExists(String siteId)
          Determine if a gradebook exists for the site.
 boolean isAssignmentDefined(String assessmentTitle)
           
 void removeExternalAssessment(String siteId, String publishedAssessmentId)
          Remove published assessment.
 void updateExternalAssessment(AssessmentGradingIfc ag, String agentIdString)
           
 void updateExternalAssessmentScore(AssessmentGradingIfc ag)
          Update the score in the gradebook.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GradebookServiceImpl

public GradebookServiceImpl()
Method Detail

isAssignmentDefined

public boolean isAssignmentDefined(String assessmentTitle)
Specified by:
isAssignmentDefined in interface GradebookServiceAPI
Returns:

addToGradebook

public boolean addToGradebook(PublishedAssessmentIfc publishedAssessment)
Add this published assessment to the site.

Specified by:
addToGradebook in interface GradebookServiceAPI
Parameters:
publishedAssessment -
Returns:
true if added

removeExternalAssessment

public void removeExternalAssessment(String siteId,
                                     String publishedAssessmentId)
Remove published assessment.

Specified by:
removeExternalAssessment in interface GradebookServiceAPI
Parameters:
siteId - the site id
publishedAssessmentId - teh published assessment id

updateExternalAssessment

public void updateExternalAssessment(AssessmentGradingIfc ag,
                                     String agentIdString)
Specified by:
updateExternalAssessment in interface GradebookServiceAPI
Parameters:
ag - the assessment grading data
agentIdString - agent id

gradebookExists

public boolean gradebookExists(String siteId)
Determine if a gradebook exists for the site.

Specified by:
gradebookExists in interface GradebookServiceAPI
Parameters:
siteId - the site id
Returns:

updateExternalAssessmentScore

public void updateExternalAssessmentScore(AssessmentGradingIfc ag)
Update the score in the gradebook.

Specified by:
updateExternalAssessmentScore in interface GradebookServiceAPI
Parameters:
ag - the assessment grading interface