org.sakaiproject.tool.assessment.integration.helper.standalone
Class SectionAwareServiceHelperImpl
java.lang.Object
org.sakaiproject.tool.assessment.integration.helper.standalone.SectionAwareServiceHelperImpl
- All Implemented Interfaces:
- SectionAwareServiceHelper
public class SectionAwareServiceHelperImpl
- extends Object
- implements SectionAwareServiceHelper
An implementation of Samigo-specific authorization (based on Gradebook's) needs based
on the shared Section Awareness API.
|
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 |
protected org.sakaiproject.section.api.SectionAwareness |
getSectionAwareness()
|
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)
|
void |
setSectionAwareness(org.sakaiproject.section.api.SectionAwareness sectionAwareness)
|
void |
setSiteService(org.sakaiproject.site.cover.SiteService siteService)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SectionAwareServiceHelperImpl
public SectionAwareServiceHelperImpl()
isUserAbleToGrade
public boolean isUserAbleToGrade(String siteid,
String userUid)
- Specified by:
isUserAbleToGrade in interface SectionAwareServiceHelper
isUserAbleToGradeAll
public boolean isUserAbleToGradeAll(String siteid,
String userUid)
- Specified by:
isUserAbleToGradeAll in interface SectionAwareServiceHelper
isUserAbleToGradeSection
public boolean isUserAbleToGradeSection(String sectionUid,
String userUid)
- Specified by:
isUserAbleToGradeSection in interface SectionAwareServiceHelper
isUserAbleToEdit
public boolean isUserAbleToEdit(String siteid,
String userUid)
- Specified by:
isUserAbleToEdit in interface SectionAwareServiceHelper
isUserGradable
public boolean isUserGradable(String siteid,
String userUid)
- Specified by:
isUserGradable in interface SectionAwareServiceHelper
getAvailableEnrollments
public List getAvailableEnrollments(String siteid,
String userUid)
- Specified by:
getAvailableEnrollments in interface SectionAwareServiceHelper
- Returns:
- an EnrollmentRecord list for each student that the current user
is allowed to grade.
getGroupReleaseEnrollments
public List getGroupReleaseEnrollments(String siteid,
String userUid,
String publishedAssessmentId)
- added by gopalrc - Jan 2008
- Specified by:
getGroupReleaseEnrollments in interface SectionAwareServiceHelper
- Parameters:
siteid - userUid -
- Returns:
setSiteService
public void setSiteService(org.sakaiproject.site.cover.SiteService siteService)
getAvailableSections
public List getAvailableSections(String siteid,
String userUid)
- Specified by:
getAvailableSections in interface SectionAwareServiceHelper
- Returns:
- a CourseSection list for each group that the current user
belongs to.
getSectionEnrollmentsTrusted
public List getSectionEnrollmentsTrusted(String sectionUid)
- Specified by:
getSectionEnrollmentsTrusted in interface SectionAwareServiceHelper
getSectionEnrollments
public List getSectionEnrollments(String siteid,
String sectionUid,
String userUid)
- Description copied from interface:
SectionAwareServiceHelper
- The section enrollment list will not be returned unless the user
has access to it.
- Specified by:
getSectionEnrollments in interface SectionAwareServiceHelper
- Returns:
- an EnrollmentRecord list for all the students in the given group.
findMatchingEnrollments
public List findMatchingEnrollments(String siteid,
String searchString,
String optionalSectionUid,
String userUid)
- Specified by:
findMatchingEnrollments in interface SectionAwareServiceHelper
searchString - a substring search for student name or display UID; the exact rules are
up to the implementationoptionalSectionUid - null if the search should be made across all sections
- Returns:
- an EnrollmentRecord list for all matching available students.
isSectionMemberInRoleStudent
public boolean isSectionMemberInRoleStudent(String sectionId,
String studentId)
- Specified by:
isSectionMemberInRoleStudent in interface SectionAwareServiceHelper
- Returns:
- whether a member belongs to a section under a certain role
getSectionAwareness
protected org.sakaiproject.section.api.SectionAwareness getSectionAwareness()
setSectionAwareness
public void setSectionAwareness(org.sakaiproject.section.api.SectionAwareness sectionAwareness)
Copyright © 2005-2013 Sakai Project. All Rights Reserved.