Class AuthzSectionsImpl

  • All Implemented Interfaces:
    org.sakaiproject.tool.gradebook.facades.Authz
    Direct Known Subclasses:
    AuthzSakai2Impl

    public class AuthzSectionsImpl
    extends Object
    implements org.sakaiproject.tool.gradebook.facades.Authz
    An implementation of Gradebook-specific authorization needs based on the shared Section Awareness API.
    • Constructor Detail

      • AuthzSectionsImpl

        public AuthzSectionsImpl()
    • Method Detail

      • isUserAbleToGrade

        public boolean isUserAbleToGrade​(String gradebookUid)
        Specified by:
        isUserAbleToGrade in interface org.sakaiproject.tool.gradebook.facades.Authz
      • isUserAbleToGrade

        public boolean isUserAbleToGrade​(String gradebookUid,
                                         String userUid)
        Specified by:
        isUserAbleToGrade in interface org.sakaiproject.tool.gradebook.facades.Authz
      • isUserAbleToGradeAll

        public boolean isUserAbleToGradeAll​(String gradebookUid)
        Specified by:
        isUserAbleToGradeAll in interface org.sakaiproject.tool.gradebook.facades.Authz
      • isUserAbleToGradeAll

        public boolean isUserAbleToGradeAll​(String gradebookUid,
                                            String userUid)
        Specified by:
        isUserAbleToGradeAll in interface org.sakaiproject.tool.gradebook.facades.Authz
      • isUserHasGraderPermissions

        public boolean isUserHasGraderPermissions​(String gradebookUid)
        Specified by:
        isUserHasGraderPermissions in interface org.sakaiproject.tool.gradebook.facades.Authz
      • isUserHasGraderPermissions

        public boolean isUserHasGraderPermissions​(Long gradebookId)
        Specified by:
        isUserHasGraderPermissions in interface org.sakaiproject.tool.gradebook.facades.Authz
      • isUserHasGraderPermissions

        public boolean isUserHasGraderPermissions​(String gradebookUid,
                                                  String userUid)
        Specified by:
        isUserHasGraderPermissions in interface org.sakaiproject.tool.gradebook.facades.Authz
      • isUserHasGraderPermissions

        public boolean isUserHasGraderPermissions​(Long gradebookId,
                                                  String userUid)
        Specified by:
        isUserHasGraderPermissions in interface org.sakaiproject.tool.gradebook.facades.Authz
      • isUserAbleToEditAssessments

        public boolean isUserAbleToEditAssessments​(String gradebookUid)
        Specified by:
        isUserAbleToEditAssessments in interface org.sakaiproject.tool.gradebook.facades.Authz
      • isUserAbleToViewOwnGrades

        public boolean isUserAbleToViewOwnGrades​(String gradebookUid)
        Specified by:
        isUserAbleToViewOwnGrades in interface org.sakaiproject.tool.gradebook.facades.Authz
      • isUserAbleToViewStudentNumbers

        public boolean isUserAbleToViewStudentNumbers​(String gradebookUid)
        Specified by:
        isUserAbleToViewStudentNumbers in interface org.sakaiproject.tool.gradebook.facades.Authz
      • getGradeViewFunctionForUserForStudentForItem

        public String getGradeViewFunctionForUserForStudentForItem​(String gradebookUid,
                                                                   Long itemId,
                                                                   String studentUid)
        Specified by:
        getGradeViewFunctionForUserForStudentForItem in interface org.sakaiproject.tool.gradebook.facades.Authz
      • getViewableSections

        public List getViewableSections​(String gradebookUid)
        Specified by:
        getViewableSections in interface org.sakaiproject.tool.gradebook.facades.Authz
      • getAllSections

        public List getAllSections​(String gradebookUid)
        Specified by:
        getAllSections in interface org.sakaiproject.tool.gradebook.facades.Authz
      • findMatchingEnrollmentsForItem

        public Map findMatchingEnrollmentsForItem​(String gradebookUid,
                                                  Long categoryId,
                                                  int gbCategoryType,
                                                  String optionalSearchString,
                                                  String optionalSectionUid)
        Specified by:
        findMatchingEnrollmentsForItem in interface org.sakaiproject.tool.gradebook.facades.Authz
      • findMatchingEnrollmentsForItemForUser

        public Map findMatchingEnrollmentsForItemForUser​(String userUid,
                                                         String gradebookUid,
                                                         Long categoryId,
                                                         int gbCategoryType,
                                                         String optionalSearchString,
                                                         String optionalSectionUid)
        Specified by:
        findMatchingEnrollmentsForItemForUser in interface org.sakaiproject.tool.gradebook.facades.Authz
      • findMatchingEnrollmentsForViewableCourseGrade

        public Map findMatchingEnrollmentsForViewableCourseGrade​(String gradebookUid,
                                                                 int gbCategoryType,
                                                                 String optionalSearchString,
                                                                 String optionalSectionUid)
        Specified by:
        findMatchingEnrollmentsForViewableCourseGrade in interface org.sakaiproject.tool.gradebook.facades.Authz
      • findMatchingEnrollmentsForViewableItems

        public Map findMatchingEnrollmentsForViewableItems​(String gradebookUid,
                                                           List allGbItems,
                                                           String optionalSearchString,
                                                           String optionalSectionUid)
        Specified by:
        findMatchingEnrollmentsForViewableItems in interface org.sakaiproject.tool.gradebook.facades.Authz
      • findStudentSectionMemberships

        public List findStudentSectionMemberships​(String gradebookUid,
                                                  String studentUid)
        Specified by:
        findStudentSectionMemberships in interface org.sakaiproject.tool.gradebook.facades.Authz
      • getStudentSectionMembershipNames

        public List getStudentSectionMembershipNames​(String gradebookUid,
                                                     String studentUid)
        Specified by:
        getStudentSectionMembershipNames in interface org.sakaiproject.tool.gradebook.facades.Authz
      • getAuthn

        public org.sakaiproject.tool.gradebook.facades.Authn getAuthn()
      • setAuthn

        public void setAuthn​(org.sakaiproject.tool.gradebook.facades.Authn authn)
      • getSectionAwareness

        public org.sakaiproject.section.api.SectionAwareness getSectionAwareness()
      • setSectionAwareness

        public void setSectionAwareness​(org.sakaiproject.section.api.SectionAwareness sectionAwareness)
      • getGradebookPermissionService

        public org.sakaiproject.service.gradebook.shared.GradebookPermissionService getGradebookPermissionService()
      • setGradebookPermissionService

        public void setGradebookPermissionService​(org.sakaiproject.service.gradebook.shared.GradebookPermissionService gradebookPermissionService)