org.sakaiproject.component.gradebook
Class GradebookFrameworkServiceImpl

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
          extended by org.sakaiproject.component.gradebook.BaseHibernateManager
              extended by org.sakaiproject.component.gradebook.GradebookFrameworkServiceImpl
All Implemented Interfaces:
GradebookFrameworkService, org.springframework.beans.factory.InitializingBean

public class GradebookFrameworkServiceImpl
extends BaseHibernateManager
implements GradebookFrameworkService


Field Summary
static String UID_OF_DEFAULT_GRADING_SCALE_PROPERTY
           
 
Fields inherited from class org.sakaiproject.component.gradebook.BaseHibernateManager
authn, eventTrackingService, MAX_NUMBER_OF_SQL_PARAMETERS_IN_LIST, propertiesMap, sectionAwareness
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
GradebookFrameworkServiceImpl()
           
 
Method Summary
 void addGradebook(String uid, String name)
          Creates a new gradebook with the given UID and name
 void deleteGradebook(String uid)
          Deletes the gradebook with the given UID, along with all its associated data.
 void setAvailableGradingScales(Collection gradingScaleDefinitions)
           
 void setDefaultGradingScale(String uid)
           
 
Methods inherited from class org.sakaiproject.component.gradebook.BaseHibernateManager
addPermission, calculateEquivalentPercent, calculateEquivalentPointValueForPercent, convertPointsToLetterGrade, convertPointsToPercentage, createAssignment, createAssignmentForCategory, createCategory, createDefaultLetterGradePercentMapping, createOrUpdateDefaultLetterGradePercentMapping, createUngradedAssignment, createUngradedAssignmentForCategory, deletePermission, filterGradeRecordsByStudents, finalizeNullGradeRecords, getAllStudentUids, getAssignment, getAssignmentGradeRecord, getAssignments, getAssignmentsForCategory, getAssignmentWithoutStats, getAssignmentWithoutStats, getAuthn, getCategories, getCategoriesWithAssignments, getCategory, getComments, getCountedStudentGradeRecords, getCourseGrade, getCourseGradeRecord, getDefaultLetterGradePercentMapping, getEventTrackingService, getGradebook, getGradebookUid, getLetterGradePercentMapping, getPermissionsForGB, getPermissionsForGBForCategoryIds, getPermissionsForUser, getPermissionsForUserAnyCategory, getPermissionsForUserAnyGroup, getPermissionsForUserAnyGroupAnyCategory, getPermissionsForUserAnyGroupForCategory, getPermissionsForUserForCategory, getPermissionsForUserForGoupsAnyCategory, getPermissionsForUserForGroup, getPropertiesMap, getPropertyValue, getSectionAwareness, getUserUid, isAssignmentDefined, isExplicitlyEnteredCourseGradeRecords, isGradebookDefined, postEvent, removeCategory, saveOrUpdateLetterGradePercentMapping, setAuthn, setEventTrackingService, setPropertyValue, setSectionAwareness, updateAssignment, updateCategory, updateGradebook, updatePermission, updatePermission, validateLetterGradeMapping
 
Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory
 
Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.sakaiproject.service.gradebook.shared.GradebookFrameworkService
isGradebookDefined
 

Field Detail

UID_OF_DEFAULT_GRADING_SCALE_PROPERTY

public static final String UID_OF_DEFAULT_GRADING_SCALE_PROPERTY
See Also:
Constant Field Values
Constructor Detail

GradebookFrameworkServiceImpl

public GradebookFrameworkServiceImpl()
Method Detail

addGradebook

public void addGradebook(String uid,
                         String name)
Description copied from interface: GradebookFrameworkService
Creates a new gradebook with the given UID and name

Specified by:
addGradebook in interface GradebookFrameworkService
Parameters:
uid - The UID used to specify a gradebook and its associated data. It is the caller's responsibility to ensure that this is unique within gradebook storage.
name - The name of the gradebook, to be used for logging and other conveniences by the application. This should be the name of the site or the course. It is only used for convenience, and does not need to be unique.

setAvailableGradingScales

public void setAvailableGradingScales(Collection gradingScaleDefinitions)
Specified by:
setAvailableGradingScales in interface GradebookFrameworkService
Parameters:
gradingScaleDefinitions - A collection of GradingScaleDefinition beans.

setDefaultGradingScale

public void setDefaultGradingScale(String uid)
Specified by:
setDefaultGradingScale in interface GradebookFrameworkService
Parameters:
uid - The UID of the grading scale to use as the default for new gradebooks.

deleteGradebook

public void deleteGradebook(String uid)
                     throws GradebookNotFoundException
Description copied from interface: GradebookFrameworkService
Deletes the gradebook with the given UID, along with all its associated data.

Specified by:
deleteGradebook in interface GradebookFrameworkService
Throws:
GradebookNotFoundException


Copyright © 2011 Sakai Project. All Rights Reserved.