org.sakaiproject.component.gradebook
Class GradebookServiceHibernateImpl
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate3.support.HibernateDaoSupport
org.sakaiproject.component.gradebook.BaseHibernateManager
org.sakaiproject.component.gradebook.GradebookServiceHibernateImpl
- All Implemented Interfaces:
- GradebookService, org.springframework.beans.factory.InitializingBean
public class GradebookServiceHibernateImpl
- extends BaseHibernateManager
- implements GradebookService
A Hibernate implementation of GradebookService.
| Fields inherited from class org.springframework.dao.support.DaoSupport |
logger |
| Fields inherited from interface org.sakaiproject.service.gradebook.shared.GradebookService |
CATEGORY_TYPE_NO_CATEGORY, CATEGORY_TYPE_ONLY_CATEGORY, CATEGORY_TYPE_WEIGHTED_CATEGORY, enableLetterGradeString, GRADE_TYPE_LETTER, GRADE_TYPE_PERCENTAGE, GRADE_TYPE_POINTS, gradePermission, lettergradeComparator, MATH_CONTEXT, validLetterGrade, viewPermission |
|
Method Summary |
void |
addAssignment(String gradebookUid,
Assignment assignmentDefinition)
|
void |
addExternalAssessment(String gradebookUid,
String externalId,
String externalUrl,
String title,
double points,
Date dueDate,
String externalServiceDescription)
|
void |
addExternalAssessment(String gradebookUid,
String externalId,
String externalUrl,
String title,
Double points,
Date dueDate,
String externalServiceDescription,
Boolean ungraded)
|
void |
addGradebook(String uid,
String name)
|
void |
applyDropScores(Collection<AssignmentGradeRecord> gradeRecords)
set the droppedFromGrade attribute of each
of the n highest and the n lowest scores of a
student based on the assignment's category |
boolean |
checkStudentsNotSubmitted(String gradebookUid)
|
boolean |
checkStuendsNotSubmitted(String gradebookUid)
|
boolean |
currentUserHasEditPerm(String gradebookUid)
|
boolean |
currentUserHasGradeAllPerm(String gradebookUid)
|
boolean |
currentUserHasGradingPerm(String gradebookUid)
|
boolean |
currentUserHasViewOwnGradesPerm(String gradebookUid)
|
void |
deleteGradebook(String uid)
|
void |
finalizeGrades(String gradebookUid)
|
List |
getAllAssignmentGradeRecords(Long gradebookId,
Collection studentUids)
|
Assignment |
getAssignment(String gradebookUid,
Long gbItemId)
|
Assignment |
getAssignment(String gradebookUid,
String assignmentName)
|
List |
getAssignments(Long gradebookId,
String sortBy,
boolean ascending)
|
List<Assignment> |
getAssignments(String gradebookUid)
|
Double |
getAssignmentScore(String gradebookUid,
Long gbItemId,
String studentUid)
|
Double |
getAssignmentScore(String gradebookUid,
String assignmentName,
String studentUid)
|
CommentDefinition |
getAssignmentScoreComment(String gradebookUid,
Long gbItemId,
String studentUid)
|
CommentDefinition |
getAssignmentScoreComment(String gradebookUid,
String assignmentName,
String studentUid)
|
String |
getAssignmentScoreString(String gradebookUid,
Long gbItemId,
String studentUid)
|
String |
getAssignmentScoreString(String gradebookUid,
String assignmentName,
String studentUid)
|
protected List |
getAssignmentsCounted(Long gradebookId)
|
Authz |
getAuthz()
|
Map |
getCalculatedCourseGrade(String gradebookUid)
|
List<CategoryDefinition> |
getCategoryDefinitions(String gradebookUid)
|
protected List<Assignment> |
getCountedAssignments(org.hibernate.Session session,
Long gradebookId)
|
CourseGrade |
getCourseGrade(Long gradebookId)
|
Map |
getEnteredCourseGrade(String gradebookUid)
|
GradebookExternalAssessmentService |
getExternalAssessmentService()
|
Map |
getFixedGrade(String gradebookUid)
|
Map |
getFixedPoint(String gradebookUid)
|
GradebookFrameworkService |
getFrameworkService()
|
Gradebook |
getGradebook(Long id)
|
String |
getGradebookDefinitionXml(String gradebookUid)
|
GradebookPermissionService |
getGradebookPermissionService()
|
GradeDefinition |
getGradeDefinitionForStudentForItem(String gradebookUid,
Long gbItemId,
String studentUid)
|
int |
getGradeEntryType(String gradebookUid)
|
protected Map<String,List<AssignmentGradeRecord>> |
getGradeRecordMapForStudents(org.hibernate.Session session,
Long gradebookId,
Collection<String> studentUids)
|
List<GradeDefinition> |
getGradesForStudentsForItem(String gradebookUid,
Long gradableObjectId,
List<String> studentIds)
|
String |
getGradeViewFunctionForUserForStudentForItem(String gradebookUid,
Long itemId,
String studentUid)
|
String |
getGradeViewFunctionForUserForStudentForItem(String gradebookUid,
String itemName,
String studentUid)
|
Map |
getImportCourseGrade(String gradebookUid)
|
String |
getLowestPossibleGradeForGbItem(String gradebookUid,
Long gradebookItemId)
|
Map |
getOldPoint(String gradebookUid)
|
List |
getPointsEarnedCourseGradeRecords(CourseGrade courseGrade,
Collection studentUids)
|
List |
getPointsEarnedCourseGradeRecordsFixing(CourseGrade courseGrade,
Collection studentUids)
|
List<Assignment> |
getViewableAssignmentsForCurrentUser(String gradebookUid)
|
Map |
getViewableSectionUuidToNameMap(String gradebookUid)
|
Map<String,String> |
getViewableStudentsForItemForCurrentUser(String gradebookUid,
Long gradableObjectId)
|
Map<String,String> |
getViewableStudentsForItemForUser(String userUid,
String gradebookUid,
Long gradableObjectId)
|
List<String> |
identifyStudentsWithInvalidGrades(String gradebookUid,
Map<String,String> studentIdToGradeMap)
|
boolean |
isAssignmentDefined(String gradebookUid,
String assignmentName)
|
boolean |
isExternalAssignmentDefined(String gradebookUid,
String externalId)
|
boolean |
isGradableObjectDefined(Long gradableObjectId)
|
boolean |
isGradebookDefined(String gradebookUid)
|
boolean |
isGradeValid(String gradebookUuid,
String grade)
|
GradebookService.PointsPossibleValidation |
isPointsPossibleValid(String gradebookUid,
Assignment gradebookItem,
Double pointsPossible)
|
boolean |
isUserAbleToGradeItemForStudent(String gradebookUid,
Long itemId,
String studentUid)
|
boolean |
isUserAbleToGradeItemForStudent(String gradebookUid,
String itemName,
String studentUid)
|
boolean |
isUserAbleToViewItemForStudent(String gradebookUid,
Long itemId,
String studentUid)
|
boolean |
isUserAbleToViewItemForStudent(String gradebookUid,
String itemName,
String studentUid)
|
boolean |
isUserAllowedToGrade(String gradebookUid,
String userUid)
|
boolean |
isUserAllowedToGradeAll(String gradebookUid,
String userUid)
|
void |
mergeGradebookDefinitionXml(String toGradebookUid,
String fromGradebookXml)
|
void |
removeAssignment(Long assignmentId)
|
void |
removeExternalAssessment(String gradebookUid,
String externalId)
|
void |
saveGradeAndCommentForStudent(String gradebookUid,
Long gradableObjectId,
String studentUid,
String grade,
String comment)
|
void |
saveGradesAndComments(String gradebookUid,
Long gradableObjectId,
List<GradeDefinition> gradeDefList)
|
void |
setAssignmentScore(String gradebookUid,
String assignmentName,
String studentUid,
Double score,
String clientServiceDescription)
|
void |
setAssignmentScoreComment(String gradebookUid,
String assignmentName,
String studentUid,
String commentText)
|
void |
setAssignmentScoreString(String gradebookUid,
String assignmentName,
String studentUid,
String score,
String clientServiceDescription)
|
void |
setAuthz(Authz authz)
|
void |
setAvailableGradingScales(Collection gradingScaleDefinitions)
|
void |
setDefaultGradingScale(String uid)
|
void |
setExternalAssessmentService(GradebookExternalAssessmentService externalAssessmentService)
|
void |
setFrameworkService(GradebookFrameworkService frameworkService)
|
void |
setGradebookPermissionService(GradebookPermissionService gradebookPermissionService)
|
void |
transferGradebookDefinitionXml(String fromGradebookUid,
String toGradebookUid,
String fromGradebookXml)
|
void |
updateAssignment(String gradebookUid,
String assignmentName,
Assignment assignmentDefinition)
|
void |
updateExternalAssessment(String gradebookUid,
String externalId,
String externalUrl,
String title,
double points,
Date dueDate)
|
void |
updateExternalAssessment(String gradebookUid,
String externalId,
String externalUrl,
String title,
Double points,
Date dueDate)
|
void |
updateExternalAssessmentScore(String gradebookUid,
String externalId,
String studentUid,
Double points)
|
void |
updateExternalAssessmentScores(String gradebookUid,
String externalId,
Map studentUidsToScores)
|
| 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, getCourseGradeRecord, getDefaultLetterGradePercentMapping, getEventTrackingService, getGradebook, getGradebookExternalAssessmentService, getGradebookUid, getLetterGradePercentMapping, getPermissionsForGB, getPermissionsForGBForCategoryIds, getPermissionsForUser, getPermissionsForUserAnyCategory, getPermissionsForUserAnyGroup, getPermissionsForUserAnyGroupAnyCategory, getPermissionsForUserAnyGroupForCategory, getPermissionsForUserForCategory, getPermissionsForUserForGoupsAnyCategory, getPermissionsForUserForGroup, getPropertiesMap, getPropertyValue, getSectionAwareness, getServerConfigurationService, getUserUid, getVisibleExternalAssignments, isAssignmentDefined, isExplicitlyEnteredCourseGradeRecords, postEvent, removeCategory, saveOrUpdateLetterGradePercentMapping, setAuthn, setEventTrackingService, setGradebookExternalAssessmentService, setPropertyValue, setSectionAwareness, setServerConfigurationService, studentCanView, updateAssignment, updateCategory, 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 |
GradebookServiceHibernateImpl
public GradebookServiceHibernateImpl()
isAssignmentDefined
public boolean isAssignmentDefined(String gradebookUid,
String assignmentName)
throws GradebookNotFoundException
- Specified by:
isAssignmentDefined in interface GradebookService
- Throws:
GradebookNotFoundException
isUserAbleToGradeItemForStudent
public boolean isUserAbleToGradeItemForStudent(String gradebookUid,
Long itemId,
String studentUid)
- Specified by:
isUserAbleToGradeItemForStudent in interface GradebookService
isUserAbleToGradeItemForStudent
public boolean isUserAbleToGradeItemForStudent(String gradebookUid,
String itemName,
String studentUid)
- Specified by:
isUserAbleToGradeItemForStudent in interface GradebookService
isUserAbleToViewItemForStudent
public boolean isUserAbleToViewItemForStudent(String gradebookUid,
Long itemId,
String studentUid)
- Specified by:
isUserAbleToViewItemForStudent in interface GradebookService
isUserAbleToViewItemForStudent
public boolean isUserAbleToViewItemForStudent(String gradebookUid,
String itemName,
String studentUid)
- Specified by:
isUserAbleToViewItemForStudent in interface GradebookService
getGradeViewFunctionForUserForStudentForItem
public String getGradeViewFunctionForUserForStudentForItem(String gradebookUid,
Long itemId,
String studentUid)
- Specified by:
getGradeViewFunctionForUserForStudentForItem in interface GradebookService
getGradeViewFunctionForUserForStudentForItem
public String getGradeViewFunctionForUserForStudentForItem(String gradebookUid,
String itemName,
String studentUid)
- Specified by:
getGradeViewFunctionForUserForStudentForItem in interface GradebookService
getAssignments
public List<Assignment> getAssignments(String gradebookUid)
throws GradebookNotFoundException
- Specified by:
getAssignments in interface GradebookService
- Throws:
GradebookNotFoundException
getAssignment
public Assignment getAssignment(String gradebookUid,
String assignmentName)
throws GradebookNotFoundException
- Specified by:
getAssignment in interface GradebookService
- Throws:
GradebookNotFoundException
getAssignment
public Assignment getAssignment(String gradebookUid,
Long gbItemId)
throws AssessmentNotFoundException
- Specified by:
getAssignment in interface GradebookService
- Throws:
AssessmentNotFoundException
getAssignmentScore
public Double getAssignmentScore(String gradebookUid,
String assignmentName,
String studentUid)
throws GradebookNotFoundException,
AssessmentNotFoundException
- Specified by:
getAssignmentScore in interface GradebookService
- Throws:
GradebookNotFoundException
AssessmentNotFoundException
getAssignmentScore
public Double getAssignmentScore(String gradebookUid,
Long gbItemId,
String studentUid)
- Specified by:
getAssignmentScore in interface GradebookService
getGradeDefinitionForStudentForItem
public GradeDefinition getGradeDefinitionForStudentForItem(String gradebookUid,
Long gbItemId,
String studentUid)
- Specified by:
getGradeDefinitionForStudentForItem in interface GradebookService
setAssignmentScore
public void setAssignmentScore(String gradebookUid,
String assignmentName,
String studentUid,
Double score,
String clientServiceDescription)
throws GradebookNotFoundException,
AssessmentNotFoundException
- Specified by:
setAssignmentScore in interface GradebookService
- Throws:
GradebookNotFoundException
AssessmentNotFoundException
getAssignmentScoreComment
public CommentDefinition getAssignmentScoreComment(String gradebookUid,
String assignmentName,
String studentUid)
throws GradebookNotFoundException,
AssessmentNotFoundException
- Specified by:
getAssignmentScoreComment in interface GradebookService
- Throws:
GradebookNotFoundException
AssessmentNotFoundException
getAssignmentScoreComment
public CommentDefinition getAssignmentScoreComment(String gradebookUid,
Long gbItemId,
String studentUid)
throws GradebookNotFoundException,
AssessmentNotFoundException
- Specified by:
getAssignmentScoreComment in interface GradebookService
- Throws:
GradebookNotFoundException
AssessmentNotFoundException
setAssignmentScoreComment
public void setAssignmentScoreComment(String gradebookUid,
String assignmentName,
String studentUid,
String commentText)
throws GradebookNotFoundException,
AssessmentNotFoundException
- Specified by:
setAssignmentScoreComment in interface GradebookService
- Throws:
GradebookNotFoundException
AssessmentNotFoundException
getGradebookDefinitionXml
public String getGradebookDefinitionXml(String gradebookUid)
- Specified by:
getGradebookDefinitionXml in interface GradebookService
transferGradebookDefinitionXml
public void transferGradebookDefinitionXml(String fromGradebookUid,
String toGradebookUid,
String fromGradebookXml)
- Specified by:
transferGradebookDefinitionXml in interface GradebookService
mergeGradebookDefinitionXml
public void mergeGradebookDefinitionXml(String toGradebookUid,
String fromGradebookXml)
- Specified by:
mergeGradebookDefinitionXml in interface GradebookService
removeAssignment
public void removeAssignment(Long assignmentId)
throws StaleObjectModificationException
- Specified by:
removeAssignment in interface GradebookService
- Throws:
StaleObjectModificationException
addAssignment
public void addAssignment(String gradebookUid,
Assignment assignmentDefinition)
- Specified by:
addAssignment in interface GradebookService
updateAssignment
public void updateAssignment(String gradebookUid,
String assignmentName,
Assignment assignmentDefinition)
- Specified by:
updateAssignment in interface GradebookService
getAuthz
public Authz getAuthz()
setAuthz
public void setAuthz(Authz authz)
getGradebookPermissionService
public GradebookPermissionService getGradebookPermissionService()
setGradebookPermissionService
public void setGradebookPermissionService(GradebookPermissionService gradebookPermissionService)
addGradebook
public void addGradebook(String uid,
String name)
- Specified by:
addGradebook in interface GradebookService
setAvailableGradingScales
public void setAvailableGradingScales(Collection gradingScaleDefinitions)
- Specified by:
setAvailableGradingScales in interface GradebookService
setDefaultGradingScale
public void setDefaultGradingScale(String uid)
- Specified by:
setDefaultGradingScale in interface GradebookService
deleteGradebook
public void deleteGradebook(String uid)
throws GradebookNotFoundException
- Specified by:
deleteGradebook in interface GradebookService
- Throws:
GradebookNotFoundException
isGradebookDefined
public boolean isGradebookDefined(String gradebookUid)
- Specified by:
isGradebookDefined in interface GradebookService- Overrides:
isGradebookDefined in class BaseHibernateManager
getFrameworkService
public GradebookFrameworkService getFrameworkService()
setFrameworkService
public void setFrameworkService(GradebookFrameworkService frameworkService)
addExternalAssessment
public void addExternalAssessment(String gradebookUid,
String externalId,
String externalUrl,
String title,
double points,
Date dueDate,
String externalServiceDescription)
throws ConflictingAssignmentNameException,
ConflictingExternalIdException,
GradebookNotFoundException
- Specified by:
addExternalAssessment in interface GradebookService
- Throws:
ConflictingAssignmentNameException
ConflictingExternalIdException
GradebookNotFoundException
addExternalAssessment
public void addExternalAssessment(String gradebookUid,
String externalId,
String externalUrl,
String title,
Double points,
Date dueDate,
String externalServiceDescription,
Boolean ungraded)
throws ConflictingAssignmentNameException,
ConflictingExternalIdException,
GradebookNotFoundException
- Specified by:
addExternalAssessment in interface GradebookService
- Throws:
ConflictingAssignmentNameException
ConflictingExternalIdException
GradebookNotFoundException
updateExternalAssessment
public void updateExternalAssessment(String gradebookUid,
String externalId,
String externalUrl,
String title,
double points,
Date dueDate)
throws GradebookNotFoundException,
AssessmentNotFoundException,
AssignmentHasIllegalPointsException
- Specified by:
updateExternalAssessment in interface GradebookService
- Throws:
GradebookNotFoundException
AssessmentNotFoundException
AssignmentHasIllegalPointsException
updateExternalAssessment
public void updateExternalAssessment(String gradebookUid,
String externalId,
String externalUrl,
String title,
Double points,
Date dueDate)
throws GradebookNotFoundException,
AssessmentNotFoundException,
AssignmentHasIllegalPointsException
- Specified by:
updateExternalAssessment in interface GradebookService
- Throws:
GradebookNotFoundException
AssessmentNotFoundException
AssignmentHasIllegalPointsException
removeExternalAssessment
public void removeExternalAssessment(String gradebookUid,
String externalId)
throws GradebookNotFoundException,
AssessmentNotFoundException
- Specified by:
removeExternalAssessment in interface GradebookService
- Throws:
GradebookNotFoundException
AssessmentNotFoundException
updateExternalAssessmentScore
public void updateExternalAssessmentScore(String gradebookUid,
String externalId,
String studentUid,
Double points)
throws GradebookNotFoundException,
AssessmentNotFoundException
- Specified by:
updateExternalAssessmentScore in interface GradebookService
- Throws:
GradebookNotFoundException
AssessmentNotFoundException
updateExternalAssessmentScores
public void updateExternalAssessmentScores(String gradebookUid,
String externalId,
Map studentUidsToScores)
throws GradebookNotFoundException,
AssessmentNotFoundException
- Specified by:
updateExternalAssessmentScores in interface GradebookService
- Throws:
GradebookNotFoundException
AssessmentNotFoundException
isExternalAssignmentDefined
public boolean isExternalAssignmentDefined(String gradebookUid,
String externalId)
throws GradebookNotFoundException
- Specified by:
isExternalAssignmentDefined in interface GradebookService
- Throws:
GradebookNotFoundException
getExternalAssessmentService
public GradebookExternalAssessmentService getExternalAssessmentService()
setExternalAssessmentService
public void setExternalAssessmentService(GradebookExternalAssessmentService externalAssessmentService)
getImportCourseGrade
public Map getImportCourseGrade(String gradebookUid)
- Specified by:
getImportCourseGrade in interface GradebookService
getCourseGrade
public CourseGrade getCourseGrade(Long gradebookId)
- Overrides:
getCourseGrade in class BaseHibernateManager
getPointsEarnedCourseGradeRecords
public List getPointsEarnedCourseGradeRecords(CourseGrade courseGrade,
Collection studentUids)
getGradebook
public Gradebook getGradebook(Long id)
getAssignmentsCounted
protected List getAssignmentsCounted(Long gradebookId)
throws org.hibernate.HibernateException
- Throws:
org.hibernate.HibernateException
checkStudentsNotSubmitted
public boolean checkStudentsNotSubmitted(String gradebookUid)
- Specified by:
checkStudentsNotSubmitted in interface GradebookService
getAllAssignmentGradeRecords
public List getAllAssignmentGradeRecords(Long gradebookId,
Collection studentUids)
getAssignments
public List getAssignments(Long gradebookId,
String sortBy,
boolean ascending)
getViewableAssignmentsForCurrentUser
public List<Assignment> getViewableAssignmentsForCurrentUser(String gradebookUid)
throws GradebookNotFoundException
- Specified by:
getViewableAssignmentsForCurrentUser in interface GradebookService
- Throws:
GradebookNotFoundException
getViewableStudentsForItemForCurrentUser
public Map<String,String> getViewableStudentsForItemForCurrentUser(String gradebookUid,
Long gradableObjectId)
- Specified by:
getViewableStudentsForItemForCurrentUser in interface GradebookService
getViewableStudentsForItemForUser
public Map<String,String> getViewableStudentsForItemForUser(String userUid,
String gradebookUid,
Long gradableObjectId)
- Specified by:
getViewableStudentsForItemForUser in interface GradebookService
isGradableObjectDefined
public boolean isGradableObjectDefined(Long gradableObjectId)
- Specified by:
isGradableObjectDefined in interface GradebookService
getViewableSectionUuidToNameMap
public Map getViewableSectionUuidToNameMap(String gradebookUid)
- Specified by:
getViewableSectionUuidToNameMap in interface GradebookService
currentUserHasGradeAllPerm
public boolean currentUserHasGradeAllPerm(String gradebookUid)
- Specified by:
currentUserHasGradeAllPerm in interface GradebookService
isUserAllowedToGradeAll
public boolean isUserAllowedToGradeAll(String gradebookUid,
String userUid)
- Specified by:
isUserAllowedToGradeAll in interface GradebookService
currentUserHasGradingPerm
public boolean currentUserHasGradingPerm(String gradebookUid)
- Specified by:
currentUserHasGradingPerm in interface GradebookService
isUserAllowedToGrade
public boolean isUserAllowedToGrade(String gradebookUid,
String userUid)
- Specified by:
isUserAllowedToGrade in interface GradebookService
currentUserHasEditPerm
public boolean currentUserHasEditPerm(String gradebookUid)
- Specified by:
currentUserHasEditPerm in interface GradebookService
currentUserHasViewOwnGradesPerm
public boolean currentUserHasViewOwnGradesPerm(String gradebookUid)
- Specified by:
currentUserHasViewOwnGradesPerm in interface GradebookService
getGradesForStudentsForItem
public List<GradeDefinition> getGradesForStudentsForItem(String gradebookUid,
Long gradableObjectId,
List<String> studentIds)
- Specified by:
getGradesForStudentsForItem in interface GradebookService
isGradeValid
public boolean isGradeValid(String gradebookUuid,
String grade)
- Specified by:
isGradeValid in interface GradebookService
identifyStudentsWithInvalidGrades
public List<String> identifyStudentsWithInvalidGrades(String gradebookUid,
Map<String,String> studentIdToGradeMap)
- Specified by:
identifyStudentsWithInvalidGrades in interface GradebookService
saveGradeAndCommentForStudent
public void saveGradeAndCommentForStudent(String gradebookUid,
Long gradableObjectId,
String studentUid,
String grade,
String comment)
- Specified by:
saveGradeAndCommentForStudent in interface GradebookService
saveGradesAndComments
public void saveGradesAndComments(String gradebookUid,
Long gradableObjectId,
List<GradeDefinition> gradeDefList)
- Specified by:
saveGradesAndComments in interface GradebookService
getFixedGrade
public Map getFixedGrade(String gradebookUid)
- Specified by:
getFixedGrade in interface GradebookService
getPointsEarnedCourseGradeRecordsFixing
public List getPointsEarnedCourseGradeRecordsFixing(CourseGrade courseGrade,
Collection studentUids)
getFixedPoint
public Map getFixedPoint(String gradebookUid)
- Specified by:
getFixedPoint in interface GradebookService
getOldPoint
public Map getOldPoint(String gradebookUid)
- Specified by:
getOldPoint in interface GradebookService
getGradeEntryType
public int getGradeEntryType(String gradebookUid)
- Specified by:
getGradeEntryType in interface GradebookService
getEnteredCourseGrade
public Map getEnteredCourseGrade(String gradebookUid)
- Specified by:
getEnteredCourseGrade in interface GradebookService
getCalculatedCourseGrade
public Map getCalculatedCourseGrade(String gradebookUid)
- Specified by:
getCalculatedCourseGrade in interface GradebookService
getAssignmentScoreString
public String getAssignmentScoreString(String gradebookUid,
String assignmentName,
String studentUid)
throws GradebookNotFoundException,
AssessmentNotFoundException
- Specified by:
getAssignmentScoreString in interface GradebookService
- Throws:
GradebookNotFoundException
AssessmentNotFoundException
getAssignmentScoreString
public String getAssignmentScoreString(String gradebookUid,
Long gbItemId,
String studentUid)
throws GradebookNotFoundException,
AssessmentNotFoundException
- Specified by:
getAssignmentScoreString in interface GradebookService
- Throws:
GradebookNotFoundException
AssessmentNotFoundException
setAssignmentScoreString
public void setAssignmentScoreString(String gradebookUid,
String assignmentName,
String studentUid,
String score,
String clientServiceDescription)
throws GradebookNotFoundException,
AssessmentNotFoundException
- Specified by:
setAssignmentScoreString in interface GradebookService
- Throws:
GradebookNotFoundException
AssessmentNotFoundException
finalizeGrades
public void finalizeGrades(String gradebookUid)
throws GradebookNotFoundException
- Specified by:
finalizeGrades in interface GradebookService
- Throws:
GradebookNotFoundException
getLowestPossibleGradeForGbItem
public String getLowestPossibleGradeForGbItem(String gradebookUid,
Long gradebookItemId)
- Specified by:
getLowestPossibleGradeForGbItem in interface GradebookService
getCategoryDefinitions
public List<CategoryDefinition> getCategoryDefinitions(String gradebookUid)
- Specified by:
getCategoryDefinitions in interface GradebookService
checkStuendsNotSubmitted
public boolean checkStuendsNotSubmitted(String gradebookUid)
- Specified by:
checkStuendsNotSubmitted in interface GradebookService
getGradeRecordMapForStudents
protected Map<String,List<AssignmentGradeRecord>> getGradeRecordMapForStudents(org.hibernate.Session session,
Long gradebookId,
Collection<String> studentUids)
- Parameters:
session - gradebookId - studentUids -
- Returns:
- a map of studentUid to a list of that student's AssignmentGradeRecords for the given studentUids list
in the given gradebook. the grade records are all recs for assignments that are not removed and
have a points possible > 0
getCountedAssignments
protected List<Assignment> getCountedAssignments(org.hibernate.Session session,
Long gradebookId)
- Parameters:
session - gradebookId -
- Returns:
- a list of Assignments that have not been removed, are "counted", graded,
and have a points possible > 0
applyDropScores
public void applyDropScores(Collection<AssignmentGradeRecord> gradeRecords)
- set the droppedFromGrade attribute of each
of the n highest and the n lowest scores of a
student based on the assignment's category
- Parameters:
gradeRecords -
isPointsPossibleValid
public GradebookService.PointsPossibleValidation isPointsPossibleValid(String gradebookUid,
Assignment gradebookItem,
Double pointsPossible)
- Specified by:
isPointsPossibleValid in interface GradebookService
Copyright © 2003-2013 Sakai Project. All Rights Reserved.