public interface GradebookPermissionService
| Modifier and Type | Method and Description |
|---|---|
void |
clearPermissionsForUser(String gradebookUid,
String userId)
Remove all grader specific permissions for the given user
|
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)
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,
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
|
List<PermissionDefinition> |
getPermissionsForUser(String gradebookUid,
String userId)
Get the grader specific permissions for the given user
|
List<PermissionDefinition> |
getRealmsPermissionsForUser(String userUuid,
String siteId,
Role role)
Get a list of permissions defined for the given user based on section and role or all sections if allowed.
|
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
|
void |
updatePermissionsForUser(String gradebookUid,
String userId,
List<PermissionDefinition> permissionDefinitions)
Update the set of grader specific permissions for the given user
|
List<Long> getCategoriesForUser(Long gradebookId, String userId, List<Long> categoryIdList) throws IllegalArgumentException
gradebookId - Gradebook IDuserId - grader IDcategoryList - List of Category. (should be all categories for this gradebook)IllegalArgumentExceptionList<Long> getCategoriesForUserForStudentView(Long gradebookId, String userId, String studentId, List<Long> categories, List<String> sectionIds) throws IllegalArgumentException
gradebookId - userId - studentId - categories - sectionIds - IllegalArgumentExceptionboolean getPermissionForUserForAllAssignment(Long gradebookId, String userId) throws IllegalArgumentException
gradebookId - Gradebook IDuserId - grader IDIllegalArgumentExceptionboolean getPermissionForUserForAllAssignmentForStudent(Long gradebookId, String userId, String studentId, List sectionIds) throws IllegalArgumentException
gradebookId - userId - studentId - sectionIds - IllegalArgumentExceptionMap<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 siteIllegalArgumentExceptionMap<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 siteIllegalArgumentExceptionMap getAvailableItemsForStudent(String gradebookUid, String userId, String studentId, Collection courseSections) throws IllegalArgumentException
gradebookUid - Gradebook UIDuserId - grader IDstudentId - student IDcourseSections - List of course sections for current siteIllegalArgumentExceptionMap getAvailableItemsForStudent(Long gradebookId, String userId, String studentId, Collection courseSections) throws IllegalArgumentException
gradebookId - Gradebook IDuserId - grader IDstudentId - student IDcourseSections - List of course sections for current siteIllegalArgumentExceptionMap 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 siteIllegalArgumentExceptionMap 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 siteIllegalArgumentExceptionMap 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.)IllegalArgumentExceptionMap 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.)IllegalArgumentExceptionList 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 - List<PermissionDefinition> getPermissionsForUser(String gradebookUid, String userId)
gradebookUid - userId - void updatePermissionsForUser(String gradebookUid, String userId, List<PermissionDefinition> permissionDefinitions)
gradebookUid - userId - permissionDefinitions - void clearPermissionsForUser(String gradebookUid, String userId)
gradebookUid - userId - List<PermissionDefinition> getRealmsPermissionsForUser(String userUuid, String siteId, Role role)
userUuid - siteId - PermissionDefinitions or empty list if noneCopyright © 2003–2019 Sakai Project. All rights reserved.