org.sakaiproject.tool.assessment.integration.helper.ifc
Interface SectionAwareServiceHelper

All Known Implementing Classes:
SectionAwareServiceHelperImpl, SectionAwareServiceHelperImpl

public interface SectionAwareServiceHelper

Facade to external role and authorization service. based Ray's gradebook code


Method Summary
 List findMatchingEnrollments(String siteid, String searchString, String optionalSectionUid, String userUid)
           
 List getAvailableEnrollments(String siteid, String userUid)
           
 List getAvailableSections(String siteid, String userUid)
           
 List getGroupReleaseEnrollments(String siteid, String userUid, String publishedAssessmentId)
          added by gopalrc - Jan 2008
 List getSectionEnrollments(String siteid, String sectionUid, String userUid)
          The section enrollment list will not be returned unless the user has access to it.
 List getSectionEnrollmentsTrusted(String sectionUid)
           
 boolean isSectionMemberInRoleStudent(String sectionId, String studentId)
           
 boolean isUserAbleToEdit(String siteid, String userUid)
           
 boolean isUserAbleToGrade(String siteid, String userUid)
           
 boolean isUserAbleToGradeAll(String siteid, String userUid)
           
 boolean isUserAbleToGradeSection(String sectionUid, String userUid)
           
 boolean isUserGradable(String siteid, String userUid)
           
 

Method Detail

isUserAbleToGrade

boolean isUserAbleToGrade(String siteid,
                          String userUid)

isUserAbleToGradeAll

boolean isUserAbleToGradeAll(String siteid,
                             String userUid)

isUserAbleToGradeSection

boolean isUserAbleToGradeSection(String sectionUid,
                                 String userUid)

isUserAbleToEdit

boolean isUserAbleToEdit(String siteid,
                         String userUid)

isUserGradable

boolean isUserGradable(String siteid,
                       String userUid)

getAvailableEnrollments

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

getAvailableSections

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

getSectionEnrollments

List getSectionEnrollments(String siteid,
                           String sectionUid,
                           String userUid)
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.

getSectionEnrollmentsTrusted

List getSectionEnrollmentsTrusted(String sectionUid)

findMatchingEnrollments

List findMatchingEnrollments(String siteid,
                             String searchString,
                             String optionalSectionUid,
                             String userUid)
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.

isSectionMemberInRoleStudent

boolean isSectionMemberInRoleStudent(String sectionId,
                                     String studentId)
Parameters:
sectionId -
studentId -
Role -
Returns:
whether a member belongs to a section under a certain role

getGroupReleaseEnrollments

List getGroupReleaseEnrollments(String siteid,
                                String userUid,
                                String publishedAssessmentId)
added by gopalrc - Jan 2008

Parameters:
siteid -
userUid -
Returns:


Copyright © 2005-2012 Sakai Project. All Rights Reserved.