|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectblackboard.data.BbObject
blackboard.data.navigation.CourseToc
public class CourseToc
The CourseToc class provides a representation of the course menu items displayed when inside a course in the Blackboard application.
| Nested Class Summary | |
|---|---|
static class |
CourseToc.Target
|
| Field Summary | |
|---|---|
static DataType |
DATA_TYPE
Object data type constant * |
static java.lang.String |
RESOURCE_BUNDLE
Resource bundle for this data object * |
| Fields inherited from class blackboard.data.BbObject |
|---|
_bbAttributes |
| Fields inherited from interface blackboard.data.Positionable |
|---|
POS_UNDEFINED |
| Constructor Summary | |
|---|---|
CourseToc()
Creates an instance of Course with default property values. |
|
| Method Summary | |
|---|---|
boolean |
getAllowGuests()
Returns the allow guests flag for this CourseToc. |
boolean |
getAllowObservers()
Returns the allow observers flag for this CourseToc. |
boolean |
getContentAvailable()
Returns whether content associate with this course toc is available based on adaptive release rules |
boolean |
getContentEmpty()
|
Id |
getContentId()
Returns the content Id of this CourseToc. |
Id |
getCourseId()
Returns the course Id of this CourseToc. |
DataType |
getDataType()
Returns the DataType identifier for this object. |
java.lang.String |
getInternalHandle()
Returns the internal handle associated with this CourseToc. |
boolean |
getIsEnabled()
Returns whether this CourseToc is enabled. |
boolean |
getIsEntryPoint()
Returns whether this CourseToc is an entry point. |
java.lang.String |
getLabel()
Returns the label associated with this CourseToc. |
boolean |
getLaunchInNewWindow()
Returns whether this CourseToc should be launched in a new window (when selected within the user interface). |
java.lang.String |
getPersistentLabel()
Returns the database label associated with this CourseToc. |
int |
getPosition()
Returns the position of this CourseToc. |
CourseToc.Target |
getTargetType()
Returns the target type for this CourseToc. |
java.lang.String |
getUrl()
Returns the URL associated with this CourseToc. |
void |
setAllowGuests(boolean bAllowGuests)
Sets the allow guests flag for this CourseToc. |
void |
setAllowObservers(boolean bAllowObservers)
Sets the allow observers flag for this CourseToc. |
void |
setContentAvailable(boolean bContentAvailable)
|
void |
setContentEmpty(boolean bContentEmpty)
|
void |
setContentId(Id iContentId)
Sets the content Id value for this CourseToc. |
void |
setCourseId(Id iCourseId)
Sets the course Id value for this CourseToc. |
void |
setInternalHandle(java.lang.String strInternalHandle)
Sets the internal handle associated with this CourseToc. |
void |
setIsEnabled(boolean bIsEnabled)
Sets whether this CourseToc should be enabled. |
void |
setIsEntryPoint(boolean bIsEntryPoint)
Sets whether this course menu item is the point of entry for users accessing the course. |
void |
setLabel(java.lang.String strLabel)
Sets the label associated with this CourseToc. |
void |
setLaunchInNewWindow(boolean bLaunchInNewWindow)
Sets whether this CourseToc should be launched in a new window (when selected within the user
interface). |
void |
setPosition(int nPos)
Sets the position of this CourseToc. |
void |
setTargetType(CourseToc.Target eTargetType)
Sets the target type for this CourseToc. |
void |
setUrl(java.lang.String strUrl)
Sets the URL associated with this CourseToc. |
void |
validate()
Validates the contents of this CourseToc. |
| 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 |
| Field Detail |
|---|
public static final DataType DATA_TYPE
public static final java.lang.String RESOURCE_BUNDLE
| Constructor Detail |
|---|
public CourseToc()
Course with default property values.
| Method Detail |
|---|
public Id getCourseId()
Id of this CourseToc.
Id value for this course tocpublic void setCourseId(Id iCourseId)
Id value for this CourseToc. The course id is of the course this course
menu is in.
iCourseId - the course Id value to use for this course tocpublic Id getContentId()
Id of this CourseToc.
Id value for this course tocpublic void setContentId(Id iContentId)
Id value for this CourseToc. This field is required and should be given
a ContentFolder Id object. The ContentFolder object should have its
parent id set as Id.UNSET_ID and the title and course id fields set matching this course menu.
iContentId - the content Id value to use for this course tocpublic java.lang.String getPersistentLabel()
CourseToc.
Stringpublic java.lang.String getLabel()
CourseToc.
Stringpublic void setLabel(java.lang.String strLabel)
CourseToc. The label is what is displayed to users in the course
of this course menu.
strLabel - a String containing the label for this course tocpublic java.lang.String getUrl()
CourseToc.
Stringpublic void setUrl(java.lang.String strUrl)
CourseToc. If the course menu is an external link course menu, this
is where the URL should be set for the link. For all other types of course menus, this setting is not referenced
and will be null as default.
strUrl - a String containing the URL for this course tocpublic CourseToc.Target getTargetType()
CourseToc.
CourseToc.TargetCourseToc.Targetpublic void setTargetType(CourseToc.Target eTargetType)
CourseToc. The target type defines what kind of course menu this is. The
current different types of course menu items are "content area," "tools area," "course link," and "external link."
eTargetType - a valid type value as defined in CourseToc.TargetCourseToc.Targetpublic int getPosition()
CourseToc. This position should be used when displaying tocs relative to each other. Position values
are zero-based (the first element has a position value of zero, not one).
getPosition in interface PositionablePositionable.POS_UNDEFINED.public void setPosition(int nPos)
CourseToc. Position values are zero-based (the first element has a position
value of zero, not one). If the position is not set, the default the last position, and will acquire a position
number of the current highest position number for course menu items in a course plus one.
setPosition in interface PositionablenPos - the new position value of this course toc. This value should be a positive value.public boolean getLaunchInNewWindow()
CourseToc should be launched in a new window (when selected within the user interface).
public void setLaunchInNewWindow(boolean bLaunchInNewWindow)
CourseToc should be launched in a new window (when selected within the user
interface). The default is true.
bLaunchInNewWindow - true if the course toc should be opened in a new window, false otherwise.public boolean getIsEnabled()
CourseToc is enabled.
public void setIsEnabled(boolean bIsEnabled)
CourseToc should be enabled. If the course menu is not enabled, it will not show up
to users accessing the course in the course view. The default is true
bIsEnabled - true if the course toc should be enabled, false otherwise.public boolean getIsEntryPoint()
CourseToc is an entry point.
public void setIsEntryPoint(boolean bIsEntryPoint)
true, then this course menu will be what a user will see when the course first loads. The default value is false.
bIsEntryPoint - true if this course menu item should be an entry point, false otherwise.public boolean getAllowObservers()
CourseToc. This flag determines whether or not "observers" (parents of a student in a
course for example) are allowed access to this course toc.
public void setAllowObservers(boolean bAllowObservers)
CourseToc. This flag determines whether or not "observers"
(users with an observer role, parents of a student in a course, for example) are allowed access to this course
menu. The default is false.Course.setAllowObservers(boolean). However, this setting does not override that
value. Only if that value is true
is this value used to provide more control over access.
bAllowObservers - true if observers should be allowed in this course menu, false otherwisepublic java.lang.String getInternalHandle()
CourseToc.
Stringpublic void setInternalHandle(java.lang.String strInternalHandle)
CourseToc. This value is set manually to "content" if
this is a content area course menu, can be left as null if this is a course or external link course menu,
and is set to the appropriate tool internal handle if this is a tool link course menu.
strInternalHandle - a String containing the internal handle for this course tocpublic boolean getAllowGuests()
CourseToc. This flag determines whether or not "guests" (users with the role guest) are
allowed access to this course toc.
public void setAllowGuests(boolean bAllowGuests)
CourseToc. This flag determines whether or not "guests" (users
with the role guest) are allowed access to this course menu. The default is false.Course.setAllowGuests(boolean). However, this setting does not override that value.
Only if that value is true is this value used to provide more control over access.
bAllowGuests - true if guests should be allowed in this course menu, false otherwisepublic boolean getContentAvailable()
public void setContentAvailable(boolean bContentAvailable)
public boolean getContentEmpty()
public void setContentEmpty(boolean bContentEmpty)
public DataType getDataType()
DataType identifier for this object. Can be used to uniquely identify the "type" of this data object.
getDataType in interface IBbObjectgetDataType in interface IdentifiablegetDataType in class BbObjectDataType for this object
public void validate()
throws ValidationException
CourseToc. Internal consistency checks are also performed.
validate in interface IBbObjectvalidate in class BbObjectValidationException - if validation of this object fails
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||