Interface GradingSectionAwareServiceAPI
-
public interface GradingSectionAwareServiceAPIThe GradingServiceAPI implements the shared interface to get grading information.- Author:
- Ed Smiley
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListfindMatchingEnrollments(String siteId, String searchString, String optionalSectionUid, String userUid)List<org.sakaiproject.section.api.coursemanagement.EnrollmentRecord>getAvailableEnrollments(String siteId, String userUid)ListgetAvailableSections(String siteId, String userUid)ListgetGroupReleaseEnrollments(String Uid, String userUid, String publishedAssessmentId)ListgetSectionEnrollments(String siteId, String sectionUid, String userUid)The section enrollment list will not be returned unless the user has access to it.ListgetSectionEnrollmentsTrusted(String sectionUid)booleanisSectionMemberInRoleStudent(String sectionId, String studentId)booleanisUserAbleToEdit(String siteId, String userUid)booleanisUserAbleToGrade(String siteId, String userUid)booleanisUserAbleToGradeAll(String siteId, String userUid)booleanisUserAbleToGradeSection(String siteId, String userUid)booleanisUserGradable(String siteId, String userUid)
-
-
-
Method Detail
-
getAvailableEnrollments
List<org.sakaiproject.section.api.coursemanagement.EnrollmentRecord> getAvailableEnrollments(String siteId, String userUid)
- Returns:
- an EnrollmentRecord list for each student that the current user is allowed to grade.
-
getAvailableSections
List getAvailableSections(String siteId, String userUid)
- Returns:
- a CourseSection list for each group that the current user belongs to.
-
getSectionEnrollments
List getSectionEnrollments(String siteId, String sectionUid, String userUid)
The section enrollment list will not be returned unless the user has access to it.- Returns:
- an EnrollmentRecord list for all the students in the given group.
-
findMatchingEnrollments
List findMatchingEnrollments(String siteId, String searchString, String optionalSectionUid, String userUid)
- Parameters:
searchString- a substring search for student name or display UID; the exact rules are up to the implementationoptionalSectionUid- null if the search should be made across all sections- Returns:
- an EnrollmentRecord list for all matching available students.
-
isSectionMemberInRoleStudent
boolean isSectionMemberInRoleStudent(String sectionId, String studentId)
- Parameters:
sectionId-studentId-- Returns:
- whether a student belongs to a section
-
-