Class AuthzSectionsImpl
- java.lang.Object
-
- org.sakaiproject.tool.gradebook.facades.sections.AuthzSectionsImpl
-
- All Implemented Interfaces:
Authz
- Direct Known Subclasses:
AuthzSakai2Impl
public class AuthzSectionsImpl extends Object implements Authz
An implementation of Gradebook-specific authorization needs based on the shared Section Awareness API.
-
-
Field Summary
-
Fields inherited from interface org.sakaiproject.tool.gradebook.facades.Authz
PERMISSION_EDIT_ASSIGNMENTS, PERMISSION_GRADE_ALL, PERMISSION_GRADE_SECTION, PERMISSION_VIEW_OWN_GRADES, PERMISSION_VIEW_STUDENT_NUMBERS
-
-
Constructor Summary
Constructors Constructor Description AuthzSectionsImpl()
-
Method Summary
-
-
-
Method Detail
-
isUserAbleToGrade
public boolean isUserAbleToGrade(String gradebookUid)
- Specified by:
isUserAbleToGradein interfaceAuthz
-
isUserAbleToGrade
public boolean isUserAbleToGrade(String gradebookUid, String userUid)
- Specified by:
isUserAbleToGradein interfaceAuthz
-
isUserAbleToGradeAll
public boolean isUserAbleToGradeAll(String gradebookUid)
- Specified by:
isUserAbleToGradeAllin interfaceAuthz
-
isUserAbleToGradeAll
public boolean isUserAbleToGradeAll(String gradebookUid, String userUid)
- Specified by:
isUserAbleToGradeAllin interfaceAuthz
-
isUserHasGraderPermissions
public boolean isUserHasGraderPermissions(String gradebookUid)
- Specified by:
isUserHasGraderPermissionsin interfaceAuthz
-
isUserHasGraderPermissions
public boolean isUserHasGraderPermissions(Long gradebookId)
- Specified by:
isUserHasGraderPermissionsin interfaceAuthz
-
isUserHasGraderPermissions
public boolean isUserHasGraderPermissions(String gradebookUid, String userUid)
- Specified by:
isUserHasGraderPermissionsin interfaceAuthz
-
isUserHasGraderPermissions
public boolean isUserHasGraderPermissions(Long gradebookId, String userUid)
- Specified by:
isUserHasGraderPermissionsin interfaceAuthz
-
isUserAbleToEditAssessments
public boolean isUserAbleToEditAssessments(String gradebookUid)
- Specified by:
isUserAbleToEditAssessmentsin interfaceAuthz
-
isUserAbleToViewOwnGrades
public boolean isUserAbleToViewOwnGrades(String gradebookUid)
- Specified by:
isUserAbleToViewOwnGradesin interfaceAuthz
-
isUserAbleToViewStudentNumbers
public boolean isUserAbleToViewStudentNumbers(String gradebookUid)
- Specified by:
isUserAbleToViewStudentNumbersin interfaceAuthz
-
getGradeViewFunctionForUserForStudentForItem
public String getGradeViewFunctionForUserForStudentForItem(String gradebookUid, Long itemId, String studentUid)
- Specified by:
getGradeViewFunctionForUserForStudentForItemin interfaceAuthz
-
isUserAbleToGradeItemForStudent
public boolean isUserAbleToGradeItemForStudent(String gradebookUid, Long itemId, String studentUid) throws IllegalArgumentException
- Specified by:
isUserAbleToGradeItemForStudentin interfaceAuthz- Throws:
IllegalArgumentException
-
isUserAbleToViewItemForStudent
public boolean isUserAbleToViewItemForStudent(String gradebookUid, Long itemId, String studentUid) throws IllegalArgumentException
- Specified by:
isUserAbleToViewItemForStudentin interfaceAuthz- Throws:
IllegalArgumentException
-
getViewableSections
public List getViewableSections(String gradebookUid)
- Specified by:
getViewableSectionsin interfaceAuthz
-
getAllSections
public List getAllSections(String gradebookUid)
- Specified by:
getAllSectionsin interfaceAuthz
-
findMatchingEnrollmentsForItem
public Map findMatchingEnrollmentsForItem(String gradebookUid, Long categoryId, int gbCategoryType, String optionalSearchString, String optionalSectionUid)
- Specified by:
findMatchingEnrollmentsForItemin interfaceAuthz
-
findMatchingEnrollmentsForItemForUser
public Map findMatchingEnrollmentsForItemForUser(String userUid, String gradebookUid, Long categoryId, int gbCategoryType, String optionalSearchString, String optionalSectionUid)
- Specified by:
findMatchingEnrollmentsForItemForUserin interfaceAuthz
-
findMatchingEnrollmentsForViewableCourseGrade
public Map findMatchingEnrollmentsForViewableCourseGrade(String gradebookUid, int gbCategoryType, String optionalSearchString, String optionalSectionUid)
- Specified by:
findMatchingEnrollmentsForViewableCourseGradein interfaceAuthz
-
findMatchingEnrollmentsForViewableItems
public Map findMatchingEnrollmentsForViewableItems(String gradebookUid, List allGbItems, String optionalSearchString, String optionalSectionUid)
- Specified by:
findMatchingEnrollmentsForViewableItemsin interfaceAuthz
-
findStudentSectionMemberships
public List findStudentSectionMemberships(String gradebookUid, String studentUid)
- Specified by:
findStudentSectionMembershipsin interfaceAuthz
-
getStudentSectionMembershipNames
public List getStudentSectionMembershipNames(String gradebookUid, String studentUid)
- Specified by:
getStudentSectionMembershipNamesin interfaceAuthz
-
getAuthn
public Authn getAuthn()
-
setAuthn
public void setAuthn(Authn authn)
-
getSectionAwareness
public SectionAwareness getSectionAwareness()
-
setSectionAwareness
public void setSectionAwareness(SectionAwareness sectionAwareness)
-
getGradebookPermissionService
public GradebookPermissionService getGradebookPermissionService()
-
setGradebookPermissionService
public void setGradebookPermissionService(GradebookPermissionService gradebookPermissionService)
-
-