Access Keys:
Skip to content (Access Key - 0)

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:

  1. Navigate to the Blackboard Learn login page.
  2. Log in as user username with password password.
  3. Click on the Courses tab.
  4. Click the courseid: course title course.
Adaptavist Theme Builder (4.1.3) Powered by Atlassian Confluence 3.3, the Enterprise Wiki