blackboard.data.content
Class CourseLink
java.lang.Object
blackboard.data.BbObject
blackboard.data.content.Content
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:
- Create the
CourseLink
object and save it
- Create a
Link
object, setting any appropriate attributes.
- Set the
CourseLink
as the "referrer" on the Link
- Set the object you wish to "point" to as the "referred to" object on the
Link
- Persist the
Link
object.
- Since:
- Bb 6.0
- Version:
- $Revision: #1 $ $Date: 2005/06/27 $
Constructor Summary |
CourseLink()
Default constructor. |
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 java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DATA_TYPE
public static final DataType DATA_TYPE
CourseLink
public CourseLink()
- Default constructor. Ensures that the appropriate content handler string is
set, and defaults the
LaunchInNewWindow
property to false
.
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.