All outgoing links from Blackboard Learn to the LMS are managed by the NavigationProvider implementation.
Prerequisites
It is expected that you have already completed the Learning Environment Connector Developer Guide - User Authentication section and are able to log in as the sample user.
Download sample Building Block
Code for the sample below can be downloaded from here. The steps below reference this sample.
Implement NavigationProvider
Sample implementation
The following is a simple example which implements only the core methods. As more SupportProvider Feature codes are enabled, the corresponding NavigationProvider methods must also be implemented.
public class SampleNavigationProvider extends AbstractNavigationProvider implements NavigationProvider { @Override public String getCourseHome( CourseLmsIntegration courseLmsInt, String returnUrl ) { String target = "courseHome for course imsId=" + courseLmsInt.getSourcedidId() + "; imsSource=" + courseLmsInt.getSourcedidSource() + "; returnUrl=" + returnUrl; return "http://www.google.ca/search?q=" + UrlUtil.encodeUrl( target ); } @Override public String getUserForgotPassword( UserLmsIntegration userLmsInt ) { String target = "userForgotPassword for lmsUserName=" + userLmsInt.getLmsUsername(); return "http://www.google.ca/search?q=" + UrlUtil.encodeUrl( target ); } @Override public String getUserViewCourseGrades( CourseLmsIntegration courseLmsInt, String returnUrl ) { String target = "userViewCourseGrades for course imsId=" + courseLmsInt.getSourcedidId() + "; imsSource=" + courseLmsInt.getSourcedidSource() + "; returnUrl=" + returnUrl; return "http://www.google.ca/search?q=" + UrlUtil.encodeUrl( target ); } @Override public String rewriteUrl( String preexistingUrl ) { return preexistingUrl; } }
Testing the sample
It is assumed that you have already created the sample integration:
- Navigate to the Blackboard Learn login page.
- Log in as user username with password password.
- Click on the Courses tab.
- Click the courseid: course title course.