| org.sakaiproject.coursemanagement.impl.provider.RoleResolver
All known Subclasses: org.sakaiproject.coursemanagement.impl.provider.CourseSetRoleResolver, org.sakaiproject.coursemanagement.impl.provider.SectionRoleResolver, org.sakaiproject.coursemanagement.impl.provider.CourseOfferingRoleResolver,
RoleResolver | public interface RoleResolver (Code) | | Resolves users roles in CM objects.
author: Josh Holtzman |
convertRole | String convertRole(String cmRole)(Code) | | Converts a CM role to a Sakai role.
Parameters: cmRole - The role according to CM The role to use in a Sakai site or group, or null if the CM role shouldnot be expressed as a role in a Sakai site or group. |
getGroupRoles | public Map<String, String> getGroupRoles(CourseManagementService cmService, String userEid)(Code) | | Gets a single user's roles in all sections with which s/he is associated.
Parameters: userEid - The user's enterprise ID Parameters: cmService - The CM service impl. We pass this in rather than injectingit into every RoleResolver The user's roles, or null if the user has no role in this CM object |
getUserRoles | public Map<String, String> getUserRoles(CourseManagementService cmService, Section section)(Code) | | Gets users roles in a CM object. A RoleResolver implementation
will typically use the cmService to look "up" from the section in the CM
hierarchy to find the object it's interested in, then find any membership roles
associated with the user.
Parameters: section - The section from which to start searching "up" the hierarchy,if necessary Parameters: cmService - The CM service impl. We pass this in rather than injectingit into every RoleResolver The user's role, or null if the user has no role in this CM object |
|
|