/** @inheritDoc */ public List getSectionMembersInRole(final String sectionUuid, final Role role) { if (role.isTeachingAssistant()) { return getSectionTeachingAssistants(sectionUuid); } else if (role.isStudent()) { return getSectionEnrollments(sectionUuid); } else { log.error("Can't get section members in role " + role); return new ArrayList(); } }
private String getLock(Role role) { if (role.isInstructor()) { return SectionAwareness.INSTRUCTOR_MARKER; } else if (role.isTeachingAssistant()) { return SectionAwareness.TA_MARKER; } else if (role.isStudent()) { return SectionAwareness.STUDENT_MARKER; } else { return null; } }
/** @inheritDoc */ public List getSiteMembersInRole(final String siteContext, final Role role) { if (role.isInstructor()) { return getSiteInstructors(siteContext); } else if (role.isTeachingAssistant()) { return getSiteTeachingAssistants(siteContext); } else if (role.isStudent()) { return getSiteEnrollments(siteContext); } else { log.error("Can not get site members in role " + role); return new ArrayList(); } }