Class AuthzSakai2Impl
- java.lang.Object
-
- org.sakaiproject.tool.gradebook.facades.sections.AuthzSectionsImpl
-
- org.sakaiproject.tool.gradebook.facades.sakai2impl.AuthzSakai2Impl
-
- All Implemented Interfaces:
org.sakaiproject.tool.gradebook.facades.Authz
public class AuthzSakai2Impl extends AuthzSectionsImpl implements org.sakaiproject.tool.gradebook.facades.Authz
An implementation of Gradebook-specific authorization needs based on a combination of fine-grained site-scoped Sakai permissions and the shared Section Awareness API. This is a transtional stage between coarse-grained site-and-role-based authz and our hoped-for fine-grained role-determined group-scoped authz.
-
-
Constructor Summary
Constructors Constructor Description AuthzSakai2Impl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinit()Perform authorization-specific framework initializations for the Gradebook.booleanisUserAbleToEditAssessments(String gradebookUid)booleanisUserAbleToGrade(String gradebookUid)booleanisUserAbleToGrade(String gradebookUid, String userUid)booleanisUserAbleToGradeAll(String gradebookUid)booleanisUserAbleToGradeAll(String gradebookUid, String userUid)booleanisUserAbleToGradeSection(String sectionUid)When group-scoped permissions are available, this is where they will go.booleanisUserAbleToViewOwnGrades(String gradebookUid)booleanisUserAbleToViewStudentNumbers(String gradebookUid)-
Methods inherited from class org.sakaiproject.tool.gradebook.facades.sections.AuthzSectionsImpl
findMatchingEnrollmentsForItem, findMatchingEnrollmentsForItemForUser, findMatchingEnrollmentsForViewableCourseGrade, findMatchingEnrollmentsForViewableItems, findStudentSectionMemberships, getAllSections, getAuthn, getGradebookPermissionService, getGradeViewFunctionForUserForStudentForItem, getSectionAwareness, getStudentSectionMembershipNames, getViewableSections, isUserAbleToGradeItemForStudent, isUserAbleToViewItemForStudent, isUserHasGraderPermissions, isUserHasGraderPermissions, isUserHasGraderPermissions, isUserHasGraderPermissions, setAuthn, setGradebookPermissionService, setSectionAwareness
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.sakaiproject.tool.gradebook.facades.Authz
findMatchingEnrollmentsForItem, findMatchingEnrollmentsForItemForUser, findMatchingEnrollmentsForViewableCourseGrade, findMatchingEnrollmentsForViewableItems, findStudentSectionMemberships, getAllSections, getGradeViewFunctionForUserForStudentForItem, getStudentSectionMembershipNames, getViewableSections, isUserAbleToGradeItemForStudent, isUserAbleToViewItemForStudent, isUserHasGraderPermissions, isUserHasGraderPermissions, isUserHasGraderPermissions, isUserHasGraderPermissions
-
-
-
-
Method Detail
-
init
public void init()
Perform authorization-specific framework initializations for the Gradebook.
-
isUserAbleToGrade
public boolean isUserAbleToGrade(String gradebookUid)
- Specified by:
isUserAbleToGradein interfaceorg.sakaiproject.tool.gradebook.facades.Authz- Overrides:
isUserAbleToGradein classAuthzSectionsImpl
-
isUserAbleToGrade
public boolean isUserAbleToGrade(String gradebookUid, String userUid)
- Specified by:
isUserAbleToGradein interfaceorg.sakaiproject.tool.gradebook.facades.Authz- Overrides:
isUserAbleToGradein classAuthzSectionsImpl
-
isUserAbleToGradeAll
public boolean isUserAbleToGradeAll(String gradebookUid)
- Specified by:
isUserAbleToGradeAllin interfaceorg.sakaiproject.tool.gradebook.facades.Authz- Overrides:
isUserAbleToGradeAllin classAuthzSectionsImpl
-
isUserAbleToGradeAll
public boolean isUserAbleToGradeAll(String gradebookUid, String userUid)
- Specified by:
isUserAbleToGradeAllin interfaceorg.sakaiproject.tool.gradebook.facades.Authz- Overrides:
isUserAbleToGradeAllin classAuthzSectionsImpl
-
isUserAbleToGradeSection
public boolean isUserAbleToGradeSection(String sectionUid)
When group-scoped permissions are available, this is where they will go. My current assumption is that the call will look like: return hasPermission(sectionUid, PERMISSION_GRADE_ALL);
-
isUserAbleToEditAssessments
public boolean isUserAbleToEditAssessments(String gradebookUid)
- Specified by:
isUserAbleToEditAssessmentsin interfaceorg.sakaiproject.tool.gradebook.facades.Authz- Overrides:
isUserAbleToEditAssessmentsin classAuthzSectionsImpl
-
isUserAbleToViewOwnGrades
public boolean isUserAbleToViewOwnGrades(String gradebookUid)
- Specified by:
isUserAbleToViewOwnGradesin interfaceorg.sakaiproject.tool.gradebook.facades.Authz- Overrides:
isUserAbleToViewOwnGradesin classAuthzSectionsImpl
-
isUserAbleToViewStudentNumbers
public boolean isUserAbleToViewStudentNumbers(String gradebookUid)
- Specified by:
isUserAbleToViewStudentNumbersin interfaceorg.sakaiproject.tool.gradebook.facades.Authz- Overrides:
isUserAbleToViewStudentNumbersin classAuthzSectionsImpl
-
-