org.sakaiproject.tool.gradebook.facades
Interface Authz

All Known Implementing Classes:
AuthzSakai2Impl, AuthzSectionsImpl

public interface Authz

Facade to external role and authorization service.


Method Summary
 List findMatchingEnrollments(String gradebookUid, String searchString, String optionalSectionUid)
           
 List getAvailableEnrollments(String gradebookUid)
           
 List getAvailableSections(String gradebookUid)
           
 List getSectionEnrollments(String gradebookUid, String sectionUid)
          The section enrollment list will not be returned unless the user has access to it.
 boolean isUserAbleToEditAssessments(String gradebookUid)
           
 boolean isUserAbleToGrade(String gradebookUid)
           
 boolean isUserAbleToGradeAll(String gradebookUid)
           
 boolean isUserAbleToGradeSection(String sectionUid)
           
 boolean isUserAbleToGradeStudent(String gradebookUid, String studentUid)
          This method is used by the external gradebook service but not by the gradebook application itself.
 boolean isUserAbleToViewOwnGrades(String gradebookUid)
           
 

Method Detail

isUserAbleToGrade

public boolean isUserAbleToGrade(String gradebookUid)

isUserAbleToGradeAll

public boolean isUserAbleToGradeAll(String gradebookUid)

isUserAbleToGradeSection

public boolean isUserAbleToGradeSection(String sectionUid)

isUserAbleToEditAssessments

public boolean isUserAbleToEditAssessments(String gradebookUid)

isUserAbleToViewOwnGrades

public boolean isUserAbleToViewOwnGrades(String gradebookUid)

isUserAbleToGradeStudent

public boolean isUserAbleToGradeStudent(String gradebookUid,
                                        String studentUid)
This method is used by the external gradebook service but not by the gradebook application itself.


getAvailableEnrollments

public List getAvailableEnrollments(String gradebookUid)
Returns:
an EnrollmentRecord list for each student that the current user is allowed to grade.

getAvailableSections

public List getAvailableSections(String gradebookUid)
Returns:
a CourseSection list for each group that the current user belongs to.

getSectionEnrollments

public List getSectionEnrollments(String gradebookUid,
                                  String sectionUid)
The section enrollment list will not be returned unless the user has access to it.

Returns:
an EnrollmentRecord list for all the students in the given group.

findMatchingEnrollments

public List findMatchingEnrollments(String gradebookUid,
                                    String searchString,
                                    String optionalSectionUid)
Parameters:
searchString - a substring search for student name or display UID; the exact rules are up to the implementation
optionalSectionUid - null if the search should be made across all sections
Returns:
an EnrollmentRecord list for all matching available students.