Class GradebookFrameworkServiceImpl
- java.lang.Object
-
- org.springframework.dao.support.DaoSupport
-
- org.springframework.orm.hibernate5.support.HibernateDaoSupport
-
- org.sakaiproject.component.gradebook.BaseHibernateManager
-
- org.sakaiproject.component.gradebook.GradebookFrameworkServiceImpl
-
- All Implemented Interfaces:
GradebookFrameworkService,org.springframework.beans.factory.InitializingBean
public class GradebookFrameworkServiceImpl extends BaseHibernateManager implements GradebookFrameworkService
-
-
Field Summary
Fields Modifier and Type Field Description static StringPROP_ASSIGNMENT_STATS_DISPLAYEDstatic StringPROP_ASSIGNMENTS_DISPLAYEDstatic StringPROP_COURSE_GRADE_DISPLAYEDstatic StringPROP_COURSE_GRADE_STATS_DISPLAYEDstatic StringPROP_COURSE_POINTS_DISPLAYEDstatic StringUID_OF_DEFAULT_GRADING_SCALE_PROPERTY-
Fields inherited from class org.sakaiproject.component.gradebook.BaseHibernateManager
authn, eventTrackingService, externalAssessmentService, propertiesMap, sectionAwareness, serverConfigurationService
-
-
Constructor Summary
Constructors Constructor Description GradebookFrameworkServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddGradebook(String uid, String name)voiddeleteGradebook(String uid)List<GradingScaleDefinition>getAvailableGradingScaleDefinitions()List<GradingScale>getAvailableGradingScales()voidsaveGradeMappingToGradebook(String scaleUuid, String gradebookUid)voidsetAvailableGradingScales(Collection gradingScaleDefinitions)voidsetDefaultGradingScale(String uid)-
Methods inherited from class org.sakaiproject.component.gradebook.BaseHibernateManager
addPermission, assignmentNameExists, calculateEquivalentPercent, calculateEquivalentPointValueForPercent, convertPointsToLetterGrade, convertPointsToPercentage, createAssignment, createAssignmentForCategory, createCategory, createCategory, createDefaultLetterGradePercentMapping, createOrUpdateDefaultLetterGradePercentMapping, createUngradedAssignment, createUngradedAssignmentForCategory, deletePermission, filterGradeRecordsByStudents, finalizeNullGradeRecords, getAllStudentUids, getAssignment, getAssignmentById, getAssignmentGradeRecord, getAssignments, getAssignmentScoreComment, getAssignmentsForCategory, getAssignmentWithoutStats, getAssignmentWithoutStats, getAuthn, getCategories, getCategoriesWithAssignments, getCategory, getComments, getCountedStudentGradeRecords, getCourseGrade, getCourseGradeOverrides, getCourseGradeRecord, getDefaultLetterGradePercentMapping, getEventTrackingService, getGradebook, getGradebookExternalAssessmentService, getGradebookUid, getIsAssignmentExcused, getLetterGradePercentMapping, getPermissionsForGB, getPermissionsForGBForCategoryIds, getPermissionsForUser, getPermissionsForUserAnyCategory, getPermissionsForUserAnyGroup, getPermissionsForUserAnyGroupAnyCategory, getPermissionsForUserAnyGroupForCategory, getPermissionsForUserForCategory, getPermissionsForUserForGoupsAnyCategory, getPermissionsForUserForGroup, getPropertyValue, getSectionAwareness, getServerConfigurationService, getUserUid, getVisibleExternalAssignments, isAssignmentDefined, isExplicitlyEnteredCourseGradeRecords, isGradebookDefined, postEvent, removeCategory, saveNewAssignment, saveOrUpdateLetterGradePercentMapping, setAssignmentScoreComment, setAuthn, setEventTrackingService, setGradebookExternalAssessmentService, setPropertyValue, setSectionAwareness, setServerConfigurationService, studentCanView, updateAssignment, updateCategory, updateGradebook, updateGradeMapping, updatePermission, updatePermission, validateLetterGradeMapping
-
Methods inherited from class org.springframework.orm.hibernate5.support.HibernateDaoSupport
checkDaoConfig, createHibernateTemplate, currentSession, getHibernateTemplate, getSessionFactory, setHibernateTemplate, setSessionFactory
-
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, updateGradeMapping
-
-
-
-
Field Detail
-
UID_OF_DEFAULT_GRADING_SCALE_PROPERTY
public static final String UID_OF_DEFAULT_GRADING_SCALE_PROPERTY
- See Also:
- Constant Field Values
-
PROP_COURSE_POINTS_DISPLAYED
public static final String PROP_COURSE_POINTS_DISPLAYED
- See Also:
- Constant Field Values
-
PROP_COURSE_GRADE_DISPLAYED
public static final String PROP_COURSE_GRADE_DISPLAYED
- See Also:
- Constant Field Values
-
PROP_ASSIGNMENTS_DISPLAYED
public static final String PROP_ASSIGNMENTS_DISPLAYED
- See Also:
- Constant Field Values
-
PROP_ASSIGNMENT_STATS_DISPLAYED
public static final String PROP_ASSIGNMENT_STATS_DISPLAYED
- See Also:
- Constant Field Values
-
PROP_COURSE_GRADE_STATS_DISPLAYED
public static final String PROP_COURSE_GRADE_STATS_DISPLAYED
- See Also:
- Constant Field Values
-
-
Method Detail
-
addGradebook
public void addGradebook(String uid, String name)
- Specified by:
addGradebookin interfaceGradebookFrameworkService
-
setAvailableGradingScales
public void setAvailableGradingScales(Collection gradingScaleDefinitions)
- Specified by:
setAvailableGradingScalesin interfaceGradebookFrameworkService
-
saveGradeMappingToGradebook
public void saveGradeMappingToGradebook(String scaleUuid, String gradebookUid)
- Specified by:
saveGradeMappingToGradebookin interfaceGradebookFrameworkService
-
getAvailableGradingScales
public List<GradingScale> getAvailableGradingScales()
- Specified by:
getAvailableGradingScalesin interfaceGradebookFrameworkService
-
getAvailableGradingScaleDefinitions
public List<GradingScaleDefinition> getAvailableGradingScaleDefinitions()
- Specified by:
getAvailableGradingScaleDefinitionsin interfaceGradebookFrameworkService
-
setDefaultGradingScale
public void setDefaultGradingScale(String uid)
- Specified by:
setDefaultGradingScalein interfaceGradebookFrameworkService
-
deleteGradebook
public void deleteGradebook(String uid) throws GradebookNotFoundException
- Specified by:
deleteGradebookin interfaceGradebookFrameworkService- Throws:
GradebookNotFoundException
-
-