org.kuali.student.enrollment.class2.grading.service.impl
Class GradingServiceImpl
java.lang.Object
org.kuali.student.enrollment.class2.grading.service.impl.GradingServiceImpl
- All Implemented Interfaces:
- GradingService
public class GradingServiceImpl
- extends Object
- implements GradingService
|
Method Summary |
GradeRosterEntryInfo |
addEntrytoInterimRoster(GradeRosterEntryInfo gradeRosterEntry,
String gradeRosterId,
ContextInfo context)
This method ... |
GradeRosterInfo |
buildInterimGradeRosterByType(String courseOfferingId,
List<String> activityOfferingIds,
String rosterTypeKey,
ContextInfo context)
Build an interim roster of given type. |
StatusInfo |
deleteInterimGradeRoster(String gradeRosterId,
ContextInfo context)
Delete an interim grade roster |
CourseOfferingService |
getCourseOfferingService()
|
CourseRegistrationService |
getCourseRegistrationService()
|
GradeRosterEntryInfo |
getFinalGradeForStudentInCourseOffering(String studentId,
String courseOfferingId,
ContextInfo context)
This method ... |
List<GradeRosterInfo> |
getFinalGradeRostersForActivityOffering(String activityOfferingId,
ContextInfo context)
Retrieves rosters of final grade by actvity offerings |
List<GradeRosterInfo> |
getFinalGradeRostersForCourseOffering(String courseOfferingId,
ContextInfo context)
Retrieves rosters of final grades for a course offering |
List<GradeValuesGroupInfo> |
getGradeGroupsByKeyList(List<String> gradeGroupKeyList,
ContextInfo context)
Based on the id list, return GradeValuesGroupInfo. |
GradeRosterInfo |
getGradeRoster(String gradeRosterId,
ContextInfo context)
Retrieve information about a grade roster |
GradeRosterAssembler |
getGradeRosterAssembler()
|
List<GradeRosterEntryInfo> |
getGradeRosterEntriesByIds(List<String> gradeRosterEntryIds,
ContextInfo context)
Retrieve a list of grade roster entries based on their Ids. |
List<GradeRosterEntryInfo> |
getGradeRosterEntriesByRosterId(String gradeRosterId,
ContextInfo context)
Retrieve grade roster entries by roster |
GradeRosterEntryInfo |
getGradeRosterEntry(String gradeRosterEntryId,
ContextInfo context)
Retrieve information about a grade roster entry |
GradeRosterEntryAssembler |
getGradeRosterEntryAssembler()
|
List<GradeRosterInfo> |
getGradeRostersByGraderAndTerm(String graderId,
String termId,
ContextInfo context)
Retrieve information about grade rosters by grader and term |
List<GradeRosterInfo> |
getGradeRostersForActivityOffering(String activityOfferingId,
ContextInfo context)
Retrieves all rosters for an activity offering |
TypeInfo |
getGradeRosterType(String gradeRosterTypeKey,
ContextInfo context)
This method returns the TypeInfo for a given grade roster type key. |
GradeValuesGroupAssembler |
getGradeValuesGroupAssembler()
|
LprRosterService |
getLprRosterService()
|
LprService |
getLprService()
|
LRCService |
getLrcService()
|
LearningResultRecordService |
getLrrService()
|
LuiService |
getLuiService()
|
StatusInfo |
removeEntryFromInterimRoster(String gradeRosterEntryId,
String gradeRosterId,
ContextInfo context)
This method ... |
void |
setCourseOfferingService(CourseOfferingService courseOfferingService)
|
void |
setCourseRegistrationService(CourseRegistrationService courseRegistrationService)
|
void |
setGradeRosterAssembler(GradeRosterAssembler gradeRosterAssembler)
|
void |
setGradeRosterEntryAssembler(GradeRosterEntryAssembler gradeRosterEntryAssembler)
|
void |
setGradeValuesGroupAssembler(GradeValuesGroupAssembler gradeValuesGroupAssembler)
|
void |
setLprRosterService(LprRosterService lprRosterService)
|
void |
setLprService(LprService lprService)
|
void |
setLrcService(LRCService lrcService)
|
void |
setLrrService(LearningResultRecordService lrrService)
|
void |
setLuiService(LuiService luiService)
|
boolean |
updateCredit(String gradeRosterEntryId,
String assignedGradeKey,
ContextInfo context)
This method ... |
GradeRosterInfo |
updateFinalGradeRosterState(String gradeRosterId,
String stateKey,
ContextInfo context)
Update state of final grade roster. |
boolean |
updateGrade(String gradeRosterEntryId,
String assignedGradeKey,
ContextInfo context)
This method ... |
GradeRosterInfo |
updateInterimGradeRoster(GradeRosterInfo gradeRoster,
ContextInfo context)
Update interim grade roster information |
boolean |
updateNumberGrade(String gradeRosterEntryId,
String numberGradeValue,
ContextInfo context)
Assign any number grade that are in a range since those don't have any
unique key to begin with. |
List<ValidationResultInfo> |
validateGradeRoster(GradeRosterInfo gradeRoster,
ContextInfo context)
Validate a grade roster information |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GradingServiceImpl
public GradingServiceImpl()
getGradeRosterType
public TypeInfo getGradeRosterType(String gradeRosterTypeKey,
ContextInfo context)
throws DoesNotExistException,
InvalidParameterException,
MissingParameterException,
OperationFailedException
- This method returns the TypeInfo for a given grade roster type key.
- Specified by:
getGradeRosterType in interface GradingService
- Parameters:
gradeRosterTypeKey - Key of the typecontext - Context information containing the principalId and locale
information about the caller of service operation
- Returns:
- Information about the Type
- Throws:
DoesNotExistException - gradeRosterTypeKey not found
InvalidParameterException - invalid gradeRosterTypeKey
MissingParameterException - missing gradeRosterTypeKey
OperationFailedException - unable to complete request
getGradeRoster
public GradeRosterInfo getGradeRoster(String gradeRosterId,
ContextInfo context)
throws DoesNotExistException,
InvalidParameterException,
MissingParameterException,
OperationFailedException,
PermissionDeniedException
- Retrieve information about a grade roster
- Specified by:
getGradeRoster in interface GradingService
- Parameters:
gradeRosterId - context - Context information containing the principalId and locale
information about the caller of service operation
- Returns:
-
- Throws:
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException - authorization failure
getGradeRostersByGraderAndTerm
public List<GradeRosterInfo> getGradeRostersByGraderAndTerm(String graderId,
String termId,
ContextInfo context)
throws DoesNotExistException,
InvalidParameterException,
MissingParameterException,
OperationFailedException,
PermissionDeniedException
- Retrieve information about grade rosters by grader and term
- Specified by:
getGradeRostersByGraderAndTerm in interface GradingService
- Parameters:
graderId - termId - context - Context information containing the principalId and locale
information about the caller of service operation
- Returns:
-
- Throws:
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException - authorization failure
getFinalGradeRostersForCourseOffering
public List<GradeRosterInfo> getFinalGradeRostersForCourseOffering(String courseOfferingId,
ContextInfo context)
throws DoesNotExistException,
InvalidParameterException,
MissingParameterException,
OperationFailedException,
PermissionDeniedException
- Retrieves rosters of final grades for a course offering
- Specified by:
getFinalGradeRostersForCourseOffering in interface GradingService
- Parameters:
courseOfferingId - context - Context information containing the principalId and locale
information about the caller of service operation
- Returns:
-
- Throws:
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException - authorization failure
getFinalGradeRostersForActivityOffering
public List<GradeRosterInfo> getFinalGradeRostersForActivityOffering(String activityOfferingId,
ContextInfo context)
throws DoesNotExistException,
InvalidParameterException,
MissingParameterException,
OperationFailedException,
PermissionDeniedException
- Retrieves rosters of final grade by actvity offerings
- Specified by:
getFinalGradeRostersForActivityOffering in interface GradingService
- Parameters:
activityOfferingId - context - Context information containing the principalId and locale
information about the caller of service operation
- Returns:
-
- Throws:
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException - authorization failure
getGradeRostersForActivityOffering
public List<GradeRosterInfo> getGradeRostersForActivityOffering(String activityOfferingId,
ContextInfo context)
throws DoesNotExistException,
InvalidParameterException,
MissingParameterException,
OperationFailedException,
PermissionDeniedException
- Retrieves all rosters for an activity offering
- Specified by:
getGradeRostersForActivityOffering in interface GradingService
- Parameters:
activityOfferingId - context - Context information containing the principalId and locale
information about the caller of service operation
- Returns:
-
- Throws:
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException - authorization failure
buildInterimGradeRosterByType
public GradeRosterInfo buildInterimGradeRosterByType(String courseOfferingId,
List<String> activityOfferingIds,
String rosterTypeKey,
ContextInfo context)
throws AlreadyExistsException,
InvalidParameterException,
MissingParameterException,
OperationFailedException,
PermissionDeniedException
- Build an interim roster of given type. Roster type should be used to
figure out which students from the activity offerings will be in the
roster
- Specified by:
buildInterimGradeRosterByType in interface GradingService
- Parameters:
activityOfferingIds - rosterTypeKey - context - Context information containing the principalId and locale
information about the caller of service operation
- Returns:
-
- Throws:
AlreadyExistsException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException - authorization failure
updateInterimGradeRoster
public GradeRosterInfo updateInterimGradeRoster(GradeRosterInfo gradeRoster,
ContextInfo context)
throws DataValidationErrorException,
DoesNotExistException,
InvalidParameterException,
MissingParameterException,
OperationFailedException,
PermissionDeniedException,
VersionMismatchException
- Update interim grade roster information
- Specified by:
updateInterimGradeRoster in interface GradingService
- Parameters:
gradeRoster - context - Context information containing the principalId and locale
information about the caller of service operation
- Returns:
-
- Throws:
DataValidationErrorException - One or more values invalid for this operation
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException - authorization failure
VersionMismatchException
deleteInterimGradeRoster
public StatusInfo deleteInterimGradeRoster(String gradeRosterId,
ContextInfo context)
throws DoesNotExistException,
InvalidParameterException,
MissingParameterException,
OperationFailedException,
PermissionDeniedException
- Delete an interim grade roster
- Specified by:
deleteInterimGradeRoster in interface GradingService
- Parameters:
gradeRosterId - context - Context information containing the principalId and locale
information about the caller of service operation
- Returns:
-
- Throws:
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException - authorization failure
updateFinalGradeRosterState
public GradeRosterInfo updateFinalGradeRosterState(String gradeRosterId,
String stateKey,
ContextInfo context)
throws DataValidationErrorException,
DoesNotExistException,
InvalidParameterException,
MissingParameterException,
OperationFailedException,
PermissionDeniedException,
VersionMismatchException
- Update state of final grade roster. Only state can be changed for the
final grade roster. Final grade submission is tracked through state
change on the roster.
- Specified by:
updateFinalGradeRosterState in interface GradingService
- Parameters:
gradeRosterId - stateKey - context - Context information containing the principalId and locale
information about the caller of service operation
- Returns:
-
- Throws:
DataValidationErrorException - One or more values invalid for this operation
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException - authorization failure
VersionMismatchException
validateGradeRoster
public List<ValidationResultInfo> validateGradeRoster(GradeRosterInfo gradeRoster,
ContextInfo context)
throws DoesNotExistException,
InvalidParameterException,
MissingParameterException,
OperationFailedException
- Validate a grade roster information
- Specified by:
validateGradeRoster in interface GradingService
- Parameters:
gradeRoster - context - Context information containing the principalId and locale
information about the caller of service operation
- Returns:
-
- Throws:
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
getGradeRosterEntry
public GradeRosterEntryInfo getGradeRosterEntry(String gradeRosterEntryId,
ContextInfo context)
throws DoesNotExistException,
InvalidParameterException,
MissingParameterException,
OperationFailedException,
PermissionDeniedException
- Retrieve information about a grade roster entry
- Specified by:
getGradeRosterEntry in interface GradingService
- Parameters:
gradeRosterEntryId - context - Context information containing the principalId and locale
information about the caller of service operation
- Returns:
-
- Throws:
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException - authorization failure
getGradeRosterEntriesByIds
public List<GradeRosterEntryInfo> getGradeRosterEntriesByIds(List<String> gradeRosterEntryIds,
ContextInfo context)
throws DoesNotExistException,
InvalidParameterException,
MissingParameterException,
OperationFailedException,
PermissionDeniedException
- Retrieve a list of grade roster entries based on their Ids. The method
should fail if there is an error in retrieving any id from the list.
- Specified by:
getGradeRosterEntriesByIds in interface GradingService
- Parameters:
gradeRosterEntryIds - context - Context information containing the principalId and locale
information about the caller of service operation
- Returns:
-
- Throws:
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException - authorization failure
getGradeRosterEntriesByRosterId
public List<GradeRosterEntryInfo> getGradeRosterEntriesByRosterId(String gradeRosterId,
ContextInfo context)
throws DoesNotExistException,
InvalidParameterException,
MissingParameterException,
OperationFailedException,
PermissionDeniedException
- Retrieve grade roster entries by roster
- Specified by:
getGradeRosterEntriesByRosterId in interface GradingService
- Parameters:
gradeRosterId - context - Context information containing the principalId and locale
information about the caller of service operation
- Returns:
-
- Throws:
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException - authorization failure
getFinalGradeForStudentInCourseOffering
public GradeRosterEntryInfo getFinalGradeForStudentInCourseOffering(String studentId,
String courseOfferingId,
ContextInfo context)
throws DoesNotExistException,
InvalidParameterException,
MissingParameterException,
OperationFailedException,
PermissionDeniedException,
DisabledIdentifierException
- This method ...
- Specified by:
getFinalGradeForStudentInCourseOffering in interface GradingService
- Parameters:
studentId - courseOfferingId - context - Context information containing the principalId and locale
information about the caller of service operation
- Returns:
-
- Throws:
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException - authorization failure
DisabledIdentifierException
addEntrytoInterimRoster
public GradeRosterEntryInfo addEntrytoInterimRoster(GradeRosterEntryInfo gradeRosterEntry,
String gradeRosterId,
ContextInfo context)
throws AlreadyExistsException,
InvalidParameterException,
MissingParameterException,
OperationFailedException,
PermissionDeniedException
- This method ...
- Specified by:
addEntrytoInterimRoster in interface GradingService
- Parameters:
gradeRosterEntry - gradeRosterId - context - Context information containing the principalId and locale
information about the caller of service operation
- Returns:
-
- Throws:
AlreadyExistsException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException - authorization failure
removeEntryFromInterimRoster
public StatusInfo removeEntryFromInterimRoster(String gradeRosterEntryId,
String gradeRosterId,
ContextInfo context)
throws DoesNotExistException,
InvalidParameterException,
MissingParameterException,
OperationFailedException,
PermissionDeniedException
- This method ...
- Specified by:
removeEntryFromInterimRoster in interface GradingService
- Parameters:
gradeRosterEntryId - gradeRosterId - context - Context information containing the principalId and locale
information about the caller of service operation
- Returns:
-
- Throws:
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException - authorization failure
updateGrade
public boolean updateGrade(String gradeRosterEntryId,
String assignedGradeKey,
ContextInfo context)
throws DataValidationErrorException,
DoesNotExistException,
InvalidParameterException,
MissingParameterException,
OperationFailedException,
PermissionDeniedException,
VersionMismatchException
- This method ...
- Specified by:
updateGrade in interface GradingService
- Parameters:
gradeRosterEntryId - assignedGradeKey - context - Context information containing the principalId and locale
information about the caller of service operation
- Returns:
-
- Throws:
DataValidationErrorException - One or more values invalid for this operation
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException - authorization failure
VersionMismatchException
updateCredit
public boolean updateCredit(String gradeRosterEntryId,
String assignedGradeKey,
ContextInfo context)
throws DataValidationErrorException,
DoesNotExistException,
InvalidParameterException,
MissingParameterException,
OperationFailedException,
PermissionDeniedException,
VersionMismatchException
- This method ...
- Specified by:
updateCredit in interface GradingService
- Parameters:
gradeRosterEntryId - assignedGradeKey - context - Context information containing the principalId and locale
information about the caller of service operation
- Returns:
-
- Throws:
DataValidationErrorException - One or more values invalid for this operation
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException - authorization failure
VersionMismatchException
getGradeGroupsByKeyList
public List<GradeValuesGroupInfo> getGradeGroupsByKeyList(List<String> gradeGroupKeyList,
ContextInfo context)
throws DoesNotExistException,
InvalidParameterException,
MissingParameterException,
OperationFailedException,
PermissionDeniedException
- Description copied from interface:
GradingService
- Based on the id list, return
GradeValuesGroupInfo.
- Specified by:
getGradeGroupsByKeyList in interface GradingService
- Returns:
-
- Throws:
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException
updateNumberGrade
public boolean updateNumberGrade(String gradeRosterEntryId,
String numberGradeValue,
ContextInfo context)
throws DataValidationErrorException,
DoesNotExistException,
InvalidParameterException,
MissingParameterException,
OperationFailedException,
PermissionDeniedException,
VersionMismatchException
- Description copied from interface:
GradingService
- Assign any number grade that are in a range since those don't have any
unique key to begin with. Put in the value of the number grade - the
system generates a unique key and persists the grade.
- Specified by:
updateNumberGrade in interface GradingService
- Returns:
-
- Throws:
DataValidationErrorException
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException
VersionMismatchException
getLprRosterService
public LprRosterService getLprRosterService()
setLprRosterService
public void setLprRosterService(LprRosterService lprRosterService)
getLprService
public LprService getLprService()
setLprService
public void setLprService(LprService lprService)
getCourseOfferingService
public CourseOfferingService getCourseOfferingService()
setCourseOfferingService
public void setCourseOfferingService(CourseOfferingService courseOfferingService)
getLrcService
public LRCService getLrcService()
setLrcService
public void setLrcService(LRCService lrcService)
getLrrService
public LearningResultRecordService getLrrService()
setLrrService
public void setLrrService(LearningResultRecordService lrrService)
getLuiService
public LuiService getLuiService()
setLuiService
public void setLuiService(LuiService luiService)
getGradeRosterAssembler
public GradeRosterAssembler getGradeRosterAssembler()
setGradeRosterAssembler
public void setGradeRosterAssembler(GradeRosterAssembler gradeRosterAssembler)
getGradeRosterEntryAssembler
public GradeRosterEntryAssembler getGradeRosterEntryAssembler()
setGradeRosterEntryAssembler
public void setGradeRosterEntryAssembler(GradeRosterEntryAssembler gradeRosterEntryAssembler)
getGradeValuesGroupAssembler
public GradeValuesGroupAssembler getGradeValuesGroupAssembler()
setGradeValuesGroupAssembler
public void setGradeValuesGroupAssembler(GradeValuesGroupAssembler gradeValuesGroupAssembler)
getCourseRegistrationService
public CourseRegistrationService getCourseRegistrationService()
setCourseRegistrationService
public void setCourseRegistrationService(CourseRegistrationService courseRegistrationService)
Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.