blackboard.data.content
Class CourseLink
java.lang.Object
blackboard.data.BbObject
blackboard.data.content.Content
blackboard.data.content.CourseLink
- All Implemented Interfaces:
- Available, HasExtendedData, IBbObject, Identifiable, Positionable, java.io.Serializable, 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
- See Also:
- Serialized Form
|
Constructor Summary |
CourseLink()
Default constructor. |
| Methods inherited from class blackboard.data.content.Content |
addContentFile, getAllowGuests, getAllowObservers, getBody, getContentFiles, getContentHandler, getContentStatus, getCourseId, getEndDate, getExtendedData, getGradebookItem, getIsAvailable, getIsDescribed, getIsFolder, getIsFromCartridge, getIsGroupContent, getIsLesson, getIsReviewable, getIsSampleContent, getIsSequential, getIsTracked, getLaunchInNewWindow, getLinkRef, getLinkTargetIconUrl, getOfflineName, getOfflinePath, getParentId, getPersistentTitle, getPosition, getRemovedFiles, getRenderType, getStartDate, getTitle, getTitleColor, getUrl, getUrlHost, getViewMode, printTree, removeContentFile, removeContentFile, removeInternalArtifacts, setAllowGuests, setAllowObservers, setBody, setContentHandler, setContentStatus, setCourseId, setEndDate, setExtendedData, setIsAvailable, setIsDescribed, setIsFolder, setIsFromCartridge, setIsGroupContent, setIsLesson, setIsReviewable, setIsSampleContent, setIsSequential, setIsTracked, setLaunchInNewWindow, setLinkRef, setOfflineName, setOfflinePath, setParentId, setPosition, setRenderType, setStartDate, setTitle, setTitleColor, setUrl, setViewMode, traverseContent, validate |
| Methods inherited from class blackboard.data.BbObject |
clone, getBbAttributes, getCreatedDate, getId, getModifiedDate, matches, persist, setCreatedDate, setId, setModifiedDate, toString |
| 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- Specified by:
getDataType in interface Identifiable- Overrides:
getDataType in class Content
- Returns:
- the
DataType for this object
Copyright © 2012 Blackboard, Inc. All Rights Reserved.