|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface GradebookPermissionService
| Method Summary | |
|---|---|
Map |
getAvailableItemsForStudent(Long gradebookId,
String userId,
String studentId,
Collection courseSections)
Get a map of itemId/permission(grade/view) of a student for a grader that he can grade or view for gradebook. |
Map |
getAvailableItemsForStudent(String gradebookUid,
String userId,
String studentId,
Collection courseSections)
Get a map of itemId/permission(grade/view) of a student for a grader that he can grade or view for gradebook. |
Map |
getAvailableItemsForStudents(Long gradebookId,
String userId,
List studentIds,
Collection courseSections)
Get a map of map for students whose IDs are in studentIds with id as key and another map as value: itemId/permission(grade/view) for a grader that he can grade or view for gradebook. |
Map |
getAvailableItemsForStudents(String gradebookUid,
String userId,
List studentIds,
Collection courseSections)
Get a map of map for students whose IDs are in studentIds with id as key and another map as value: itemId/permission(grade/view) for a grader that he can grade or view for gradebook. |
List<Long> |
getCategoriesForUser(Long gradebookId,
String userId,
List<Long> categoryIdList,
int cateType)
Get all available categories for a user that the user can either view or grade. |
List<Long> |
getCategoriesForUserForStudentView(Long gradebookId,
String userId,
String studentId,
List<Long> categories,
int cateType,
List<String> sectionIds)
Returns viewable categorie id's for a user for a specific student |
Map |
getCourseGradePermission(Long gradebookId,
String userId,
List studentIds,
List courseSections)
Get a map with student IDs as key and view/grade as value for their course grade. |
Map |
getCourseGradePermission(String gradebookUid,
String userId,
List studentIds,
List courseSections)
Get a map with student IDs as key and view/grade as value for their course grade. |
List |
getGraderPermissionsForUser(Long gradebookId,
String userId)
Get all Permission records associated with this user and gradebook |
List |
getGraderPermissionsForUser(String gradebookUid,
String userId)
Get all Permission records associated with this user and gradebook |
boolean |
getPermissionForUserForAllAssignment(Long gradebookId,
String userId)
Get true/false value for current user which indicats if he has permission for all assignments in a gradebook with category turned off or he has permission for assignments without category associated with in a gradebook with category turned on. |
boolean |
getPermissionForUserForAllAssignmentForStudent(Long gradebookId,
String userId,
String studentId,
List sectionIds)
Get true/false value for current user which indicates if he has permission for all gb items for a given student |
Map<String,String> |
getStudentsForItem(Long gradebookId,
String userId,
List<String> studentIds,
int cateType,
Long categoryId,
List courseSections)
Get students IDs that the current grader can either view or grade. |
Map<String,String> |
getStudentsForItem(String gradebookUid,
String userId,
List<String> studentIds,
int cateType,
Long categoryId,
List courseSections)
Get students IDs that the current grader can either view or grade. |
List<String> |
getViewableGroupsForUser(Long gradebookId,
String userId,
List<String> groupIds)
Get all group ids associated with groups that contain at least one member that the user is authorized to view/grade |
List<String> |
getViewableGroupsForUser(String gradebookUid,
String userId,
List<String> groupIds)
Get all group ids associated with groups that contain at least one member that the user is authorized to view/grade |
List |
getViewableStudentsForUser(Long gradebookId,
String userId,
List studentIds,
List sections)
Get a unique list of students that the current user has grader permissions to view in some capacity |
List |
getViewableStudentsForUser(String gradebookUid,
String userId,
List studentIds,
List sections)
Get a unique list of students that the current user has grader permissions to view in some capacity |
| Method Detail |
|---|
List<Long> getCategoriesForUser(Long gradebookId,
String userId,
List<Long> categoryIdList,
int cateType)
throws IllegalArgumentException
gradebookId - Gradebook IDuserId - grader IDcategoryList - List of Category. (should be all categories for this gradebook)cateType - gradebook category type
IllegalArgumentException
List<Long> getCategoriesForUserForStudentView(Long gradebookId,
String userId,
String studentId,
List<Long> categories,
int cateType,
List<String> sectionIds)
throws IllegalArgumentException
gradebookId - userId - studentId - categories - cateType - sectionIds -
IllegalArgumentException
boolean getPermissionForUserForAllAssignment(Long gradebookId,
String userId)
throws IllegalArgumentException
gradebookId - Gradebook IDuserId - grader ID
IllegalArgumentException
boolean getPermissionForUserForAllAssignmentForStudent(Long gradebookId,
String userId,
String studentId,
List sectionIds)
throws IllegalArgumentException
gradebookId - userId - studentId - sectionIds -
IllegalArgumentException
Map<String,String> getStudentsForItem(Long gradebookId,
String userId,
List<String> studentIds,
int cateType,
Long categoryId,
List courseSections)
throws IllegalArgumentException
gradebookId - Gradebook IDuserId - grader IDstudentIds - List of student IDscateType - gradebook category typecategoryId - current category ID that the permission check is based on. it can be null.courseSections - List of course sections for current site
IllegalArgumentException
Map<String,String> getStudentsForItem(String gradebookUid,
String userId,
List<String> studentIds,
int cateType,
Long categoryId,
List courseSections)
throws IllegalArgumentException
gradebookUid - gradebook uiduserId - grader IDstudentIds - List of student IDscateType - gradebook category typecategoryId - current category ID that the permission check is based on. it can be null.courseSections - List of course sections for current site
IllegalArgumentException
Map getAvailableItemsForStudent(String gradebookUid,
String userId,
String studentId,
Collection courseSections)
throws IllegalArgumentException
gradebookUid - Gradebook UIDuserId - grader IDstudentId - student IDcourseSections - List of course sections for current site
IllegalArgumentException
Map getAvailableItemsForStudent(Long gradebookId,
String userId,
String studentId,
Collection courseSections)
throws IllegalArgumentException
gradebookId - Gradebook IDuserId - grader IDstudentId - student IDcourseSections - List of course sections for current site
IllegalArgumentException
Map getAvailableItemsForStudents(Long gradebookId,
String userId,
List studentIds,
Collection courseSections)
throws IllegalArgumentException
gradebookId - Gradebook IDuserId - grader IDstudentIds - List of student IDscourseSections - List of course sections for current site
IllegalArgumentException
Map getAvailableItemsForStudents(String gradebookUid,
String userId,
List studentIds,
Collection courseSections)
throws IllegalArgumentException
gradebookUid - Gradebook UIDuserId - grader IDstudentIds - List of student IDscourseSections - List of course sections for current site
IllegalArgumentException
Map getCourseGradePermission(Long gradebookId,
String userId,
List studentIds,
List courseSections)
throws IllegalArgumentException
gradebookId - Gradebook IDuserId - grader IDstudentIds - List of student IDscourseSections - List of course sections for current site (Should be all course sections the current site has.)
IllegalArgumentException
Map getCourseGradePermission(String gradebookUid,
String userId,
List studentIds,
List courseSections)
throws IllegalArgumentException
gradebookUid - Gradebook UiduserId - grader IDstudentIds - List of student IDscourseSections - List of course sections for current site (Should be all course sections the current site has.)
IllegalArgumentException
List getGraderPermissionsForUser(Long gradebookId,
String userId)
gradebookId - userId -
List getGraderPermissionsForUser(String gradebookUid,
String userId)
gradebookUid - userId -
List<String> getViewableGroupsForUser(Long gradebookId,
String userId,
List<String> groupIds)
gradebookId - userId - groupIds -
List<String> getViewableGroupsForUser(String gradebookUid,
String userId,
List<String> groupIds)
gradebookUid - userId - groupIds -
List getViewableStudentsForUser(Long gradebookId,
String userId,
List studentIds,
List sections)
gradebookId - userId - studentIds - sections -
List getViewableStudentsForUser(String gradebookUid,
String userId,
List studentIds,
List sections)
gradebookUid - userId - studentIds - sections -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||