public class SectionRoleResolver extends BaseRoleResolver
| Modifier and Type | Field and Description |
|---|---|
static String |
ENROLLMENT_STATUS_TO_SITE_ROLE |
protected Map<String,String> |
enrollmentStatusRoleMap
The Sakai roles to use for official enrollments in EnrollmentSets,keyed on the enrollment status
|
static String |
OFFICIAL_INSTRUCTOR_TO_SITE_ROLE |
protected String |
officialInstructorRole
The Sakai role to use for official instructors of EnrollmentSets
|
static String |
SECTION_ROLE_TO_SITE_ROLE |
configuration, roleMap| Constructor and Description |
|---|
SectionRoleResolver() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getGroupRoles(CourseManagementService cmService,
String userEid)
Gets a single user's roles in all sections with which s/he is associated.
|
Map<String,String> |
getUserRoles(CourseManagementService cmService,
Section section)
Since a user may be both enrolled in a mapped EnrollmentSet and have a
Membership role in a mapped Section, the following order of precedence is
applied: Official Instructor, Enrollment, membership
|
void |
init()
Internal configuration.
|
void |
setEnrollmentStatusRoleMap(Map<String,String> enrollmentStatusRoleMap) |
void |
setOfficialInstructorRole(String officialInstructorRole) |
convertRole, setConfiguration, setRoleMappublic static final String OFFICIAL_INSTRUCTOR_TO_SITE_ROLE
public static final String ENROLLMENT_STATUS_TO_SITE_ROLE
public static final String SECTION_ROLE_TO_SITE_ROLE
protected String officialInstructorRole
public void init()
public Map<String,String> getUserRoles(CourseManagementService cmService, Section section)
cmService - The CM service impl. We pass this in rather than injecting
it into every RoleResolversection - The section from which to start searching "up" the hierarchy,
if necessarypublic Map<String,String> getGroupRoles(CourseManagementService cmService, String userEid)
RoleResolvercmService - The CM service impl. We pass this in rather than injecting
it into every RoleResolveruserEid - The user's enterprise IDpublic void setOfficialInstructorRole(String officialInstructorRole)
Copyright © 2006–2019 Sakai Project. All rights reserved.