blackboard.data.content
Class CourseLink

java.lang.Object
  extended by blackboard.data.BbObject
      extended by blackboard.data.content.Content
          extended by blackboard.data.content.CourseLink
All Implemented Interfaces:
Available, IBbObject, Positionable, java.lang.Cloneable

public class CourseLink
extends Content

The CourseLink class is a representation of an intra-course link within the Bb Course Management System. CourseLink objects represent the "starting point" for a link originating from the content area of a course. Used in conjunction with the Link object, one can cause this content item to reference another item within the same course/organization.

As a sub-class of Content, there aren't many specific attributes. Functionally a CourseLink object is simply a content object with the content handler set to resource/x-bb-courselink, and the RenderType attribute set to Content.RenderType.LINK.

The proper way to use this object is as follows, due to the referential integrity constraints in the system:

  1. Create the CourseLink object and save it
  2. Create a Link object, setting any appropriate attributes.
  3. Set the CourseLink as the "referrer" on the Link
  4. Set the object you wish to "point" to as the "referred to" object on the Link
  5. Persist the Link object.

Since:
Bb 6.0
Version:
$Revision: #1 $ $Date: 2005/06/27 $

Nested Class Summary
 
Nested classes/interfaces inherited from class blackboard.data.content.Content
Content.RenderType
 
Field Summary
static DataType DATA_TYPE
           
 
Fields inherited from class blackboard.data.content.Content
RESOURCE_BUNDLE
 
Fields inherited from class blackboard.data.BbObject
_bbAttributes
 
Fields inherited from interface blackboard.data.Positionable
POS_UNDEFINED
 
Constructor Summary
CourseLink()
          Default constructor.
 
Method Summary
 DataType getDataType()
          Returns the DataType identifier for this object.
 FormattedText getDescription()
          Returns the description of this CourseLink.
 void setDescription(FormattedText desc)
          Sets the description of this CourseLink.
 
Methods inherited from class blackboard.data.content.Content
addContentFile, getAllowGuests, getAllowObservers, getBody, getContentFiles, getContentHandler, getContentStatus, getCourseId, getEndDate, getIsAvailable, getIsDescribed, getIsFolder, getIsFromCartridge, getIsLesson, getIsReviewable, getIsSequential, getIsTracked, getLaunchInNewWindow, getOfflineName, getOfflinePath, getParentId, getPersistentTitle, getPosition, getRemovedFiles, getRenderType, getStartDate, getTitle, getTitleColor, getUrl, printTree, removeContentFile, removeContentFile, setAllowGuests, setAllowObservers, setBody, setContentHandler, setCourseId, setEndDate, setIsAvailable, setIsDescribed, setIsFolder, setIsFromCartridge, setIsLesson, setIsReviewable, setIsSequential, setIsTracked, setLaunchInNewWindow, setOfflineName, setOfflinePath, setParentId, setPosition, setRenderType, setStartDate, setTitle, setTitleColor, setUrl, traverseContent, validate
 
Methods inherited from class blackboard.data.BbObject
clone, getBbAttributes, getCreatedDate, getId, getModifiedDate, persist, setCreatedDate, setId, setModifiedDate, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DATA_TYPE

public static final DataType DATA_TYPE
Constructor Detail

CourseLink

public CourseLink()
Default constructor. Ensures that the appropriate content handler string is set, and defaults the LaunchInNewWindow property to false .

Method Detail

getDescription

public FormattedText getDescription()
Returns the description of this CourseLink.

Returns:
a {FormattedText} representing the description of this course link

setDescription

public void setDescription(FormattedText desc)
Sets the description of this CourseLink. This field has an unlimited length.

Parameters:
desc - a FormattedText containing the description of this course link

getDataType

public DataType getDataType()
Returns the DataType identifier for this object. Can be used to uniquely identify the "type" of this data object.

Specified by:
getDataType in interface IBbObject
Overrides:
getDataType in class Content
Returns:
the DataType for this object


Copyright © 2003 Blackboard, Inc. All Rights Reserved.