|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object blackboard.data.BbObject blackboard.data.course.Course
public class Course
The Course
class provides a representation of a course (course
or organization) within the Blackboard application.
Nested Class Summary | |
---|---|
static class |
Course.Duration
Specifies the intended length of the course. |
static class |
Course.Enrollment
|
static class |
Course.NavStyle
Defines the navigation style for this course. |
static class |
Course.Pace
Defines the intended educational pace set for this course. |
static class |
Course.ServiceLevel
|
Field Summary | |
---|---|
static DataType |
COURSE_DATA_TYPE
Deprecated. Use the constant DATA_TYPE instead |
static DataType |
DATA_TYPE
Object data type constant used in brokering loaders and persisters |
Fields inherited from class blackboard.data.BbObject |
---|
_bbAttributes |
Constructor Summary | |
---|---|
Course()
Creates an instance of Course with default property values. |
Method Summary | |
---|---|
static ListFilter |
createAvailabilityFilter(boolean targetAvailability)
Factory method to create an instance of the ListFilter interface
capable of filtering a list of Course objects based upon course
"availability". |
static ListFilter |
createDurationFilter(java.util.Date availDate,
BbList membershipList)
Factory method to create an instance of the ListFilter interface
capable of filtering a list of Course objects based upon the
course duration availability. |
static ListFilter |
createMembershipRoleFilter(BbList membershipList,
CourseMembership.Role targetRole)
Factory method to create an instance of the ListFilter interface
capable of filtering a list of Course objects based upon the
role of a user within those courses. |
static ListFilter |
createMembershipRoleFilter(BbList membershipList,
CourseMembership.Role targetRole,
boolean bIsAvailable)
Factory method to create an instance of the ListFilter interface
capable of filtering a list of Course objects based upon the
role of a user within those courses. |
static ListFilter |
createServiceLevelFilter(Course.ServiceLevel targetServiceLevel)
Factory method to create an instance of the ListFilter interface
capable of filtering a list of Course objects based upon course
service level (as returned by getServiceLevelType() ). |
long |
getAbsoluteLimit()
Returns the absolute storage limit for this Course . |
boolean |
getAllowEmailEnrollRequests()
Deprecated. |
boolean |
getAllowGuests()
Returns the allow guests flag for this Course . |
boolean |
getAllowObservers()
Returns the allow observers flag for this Course . |
BbFile |
getBannerImageFile()
Returns the banner image file associated with this Course . |
java.lang.String |
getBatchUid()
Returns the batch uid associated with this Course . |
ButtonStyle |
getButtonStyle()
Returns the ButtonStyle associated with this Course . |
Id |
getButtonStyleId()
Returns the button style Id associated with this Course . |
Cartridge |
getCartridge()
Returns the Cartridge associated with this Course . |
Id |
getCartridgeId()
Returns the cartridge Id associated with this Course . |
Classification |
getClassification()
Returns the Classification associated with this Course . |
Id |
getClassificationId()
Returns the classification Id associated with this Course . |
java.lang.String |
getCourseId()
Returns the course Id (not pk) associated with this Course . |
Id |
getDataSourceId()
Returns the data source Id associated with this Course . |
DataType |
getDataType()
Returns the DataType identifier for this object. |
java.lang.String |
getDescription()
Returns the description associated with this Course . |
Course.Duration |
getDurationType()
Returns the duration type for this Course . |
java.util.Calendar |
getEndDate()
Returns the date on which this Course will/has end(ed). |
java.lang.String |
getEnrollmentAccessCode()
Returns the enrollment access code associated with this Course . |
java.util.Calendar |
getEnrollmentEndDate()
Returns the date on which enrollment in this Course ends. |
java.util.Calendar |
getEnrollmentStartDate()
Returns the date on which enrollment in this Course starts. |
Course.Enrollment |
getEnrollmentType()
Returns the enrollment type for this Course . |
float |
getFee()
Returns the fee (cost) for this Course . |
boolean |
getHasDescriptionPage()
Returns the has description page flag for this Course . |
Id |
getInstitutionId()
Deprecated. |
java.lang.String |
getInstitutionName()
Returns the institution name associated with this Course . |
boolean |
getIsAvailable()
Returns the availability flag for this Course . |
boolean |
getIsLocaleEnforced()
Returns the enforced locale flag for this Course . |
boolean |
getIsLockedOut()
Returns the locked out flag for this Course . |
boolean |
getIsNavCollapsible()
Returns the "is navigation collapsible" flag for this Course . |
java.lang.String |
getLocale()
Returns the locale of this Course object. |
java.lang.String |
getNavColorBg()
Returns the background color that is used for rendering the navigation links that appear on the left hand side of the course page. |
java.lang.String |
getNavColorFg()
Returns the foreground color (color of text) that is used for rendering the navigation links that appear on the left hand side of the course page. |
Course.NavStyle |
getNavStyle()
Returns the navigation style for this Course . |
int |
getNumDaysOfUse()
Returns the number of days this Course can be used. |
Course.Pace |
getPaceType()
Returns the pace type for this Course . |
Registry |
getRegistry()
Returns the Registry associated with this Course . |
boolean |
getRequireAccountToEnroll()
Deprecated. |
Course.ServiceLevel |
getServiceLevelType()
Returns the service level type for this Course . |
boolean |
getShowEmailInSR()
Deprecated. |
boolean |
getShowFirstNameInSR()
Deprecated. |
boolean |
getShowInCatalog()
Returns the show in catalog flag for this Course . |
boolean |
getShowLastNameInSR()
Deprecated. |
boolean |
getShowPhone1InSR()
Deprecated. |
boolean |
getShowStudentIdInSR()
Deprecated. |
long |
getSoftLimit()
Returns the soft storage limit for this Course . |
java.util.Calendar |
getStartDate()
Returns the date on which this Course will/has start(ed). |
Id |
getTargetAudienceId()
Deprecated. |
java.lang.String |
getTitle()
Returns the title associated with this Course . |
long |
getUploadLimit()
Returns the upload storage limit for this Course . |
void |
setAbsoluteLimit(long lAbsoluteLimit)
Sets the absolute storage limit for this Course . |
void |
setAllowEmailEnrollRequests(boolean bAllowEmailEnrollRequests)
Deprecated. |
void |
setAllowGuests(boolean bAllowGuests)
Sets the allow guests flag for this Course . |
void |
setAllowObservers(boolean bAllowObservers)
Sets the allow observers flag for this Course . |
void |
setBannerImageFile(BbFile bannerImageFile)
Sets the banner image file associated with this Course . |
void |
setBatchUid(java.lang.String strBatchUid)
Sets the batch uid associated with this Course . |
void |
setButtonStyle(ButtonStyle bstyle)
Sets the ButtonStyle value for this Course . |
void |
setButtonStyleId(Id iButtonStyleId)
Sets the button style Id value for this Course . |
void |
setCartridge(Cartridge cartridge)
Sets the Cartridge value for this Course . |
void |
setCartridgeId(Id iCartridgeId)
Sets the cartridge Id value for this Course . |
void |
setClassification(Classification classif)
Sets Classification associated with this Course . |
void |
setClassificationId(Id iClassificationId)
Sets the classification Id value for this Course . |
void |
setCourseId(java.lang.String strCourseId)
Sets the course Id (not pk) associated with this Course . |
void |
setDataSourceId(Id iDataSourceId)
Sets the data source Id value for this Course . |
void |
setDescription(java.lang.String strDescription)
Sets the description associated with this Course . |
void |
setDurationType(Course.Duration eDurationType)
Sets the duration type for this Course . |
void |
setEndDate(java.util.Calendar cEndDate)
Sets the end date for this Course . |
void |
setEnrollmentAccessCode(java.lang.String strEnrollmentAccessCode)
Sets the enrollment access code associated with this Course . |
void |
setEnrollmentEndDate(java.util.Calendar cEnrollmentEndDate)
Sets the enrollment end date for this Course . |
void |
setEnrollmentStartDate(java.util.Calendar cEnrollmentStartDate)
Sets the enrollment start date for this Course . |
void |
setEnrollmentType(Course.Enrollment eEnrollmentType)
Sets the enrollment type for this Course . |
void |
setFee(float fFee)
Sets the fee (cost) for this Course . |
void |
setHasDescriptionPage(boolean bHasDescriptionPage)
Sets the has description page flag for this Course . |
void |
setInstitutionId(Id iInstitutionId)
Deprecated. |
void |
setInstitutionName(java.lang.String strInstitutionName)
Sets the institution name associated with this Course . |
void |
setIsAvailable(boolean bIsAvailable)
Sets the availability flag for this Course . |
void |
setIsLocaleEnforced(boolean bIsEnforced)
Sets the enforced locale flag for this Course . |
void |
setIsLockedOut(boolean bIsLockedOut)
Sets the locked out flag for this Course . |
void |
setIsNavCollapsible(boolean bIsNavCollapsible)
Sets the "is navigation collapsible" flag for this Course . |
void |
setLocale(java.lang.String strLocale)
Sets the locale value for this Course object. |
void |
setNavColorBg(java.lang.String strNavColorBg)
Sets the background color that should be used for rendering the navigation links that appear on the left hand side of the course page. |
void |
setNavColorFg(java.lang.String strNavColorFg)
Sets the foreground color (color of text) that should be used for rendering the navigation links that appear on the left hand side of the course page. |
void |
setNavStyle(Course.NavStyle eNavStyle)
Sets the navigation style for this Course . |
void |
setNumDaysOfUse(int nNumDaysOfUse)
Sets the number of days of use for this Course . |
void |
setPaceType(Course.Pace ePaceType)
Sets the pace type for this Course . |
void |
setRegistry(Registry reg)
Sets the Registry associated with this Course . |
void |
setRequireAccountToEnroll(boolean bRequireAccountToEnroll)
Deprecated. |
void |
setServiceLevelType(Course.ServiceLevel eServiceLevelType)
Sets the service level type for this Course . |
void |
setShowEmailInSR(boolean bShowEmailInSR)
Deprecated. |
void |
setShowFirstNameInSR(boolean bShowFirstNameInSR)
Deprecated. |
void |
setShowInCatalog(boolean bShowInCatalog)
Sets the show in catalog flag for this Course . |
void |
setShowLastNameInSR(boolean bShowLastNameInSR)
Deprecated. |
void |
setShowPhone1InSR(boolean bShowPhone1InSR)
Deprecated. |
void |
setShowStudentIdInSR(boolean bShowStudentIdInSR)
Deprecated. |
void |
setSoftLimit(long lSoftLimit)
Sets the soft storage limit for this Course . |
void |
setStartDate(java.util.Calendar cStartDate)
Sets the start date for this Course . |
void |
setTargetAudienceId(Id iTargetAudienceId)
Deprecated. |
void |
setTitle(java.lang.String strTitle)
Sets the title associated with this Course . |
void |
setUploadLimit(long lUploadLimit)
Sets the upload storage limit for this Course . |
void |
validate()
Validates the contents of this Course . |
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 |
---|
public static final DataType DATA_TYPE
public static final DataType COURSE_DATA_TYPE
DATA_TYPE
insteadConstructor Detail |
---|
public Course()
Course
with default property values.
Method Detail |
---|
public Id getButtonStyleId()
Id
associated with this Course
.
Id
value for this Course
public void setButtonStyleId(Id iButtonStyleId)
Id
value for this Course
.
iButtonStyleId
- a button style Id
value to use for this
Course
public Id getCartridgeId()
Id
associated with this Course
.
Id
value for this Course
public void setCartridgeId(Id iCartridgeId)
Id
value for this Course
.
iCartridgeId
- a cartridge Id
value to use for this Course
public Id getClassificationId()
Id
associated with this Course
.
Id
value for this Course
public void setClassificationId(Id iClassificationId)
Id
value for this Course
.
iClassificationId
- a classification Id
value to use for this
Course
public Id getInstitutionId()
public void setInstitutionId(Id iInstitutionId)
public Id getTargetAudienceId()
public void setTargetAudienceId(Id iTargetAudienceId)
public Id getDataSourceId()
Id
associated with this Course
.
Id
value for this Course
public void setDataSourceId(Id iDataSourceId)
Id
value for this Course
.
iDataSourceId
- a data source Id
value to use for this
Course
public java.lang.String getBatchUid()
Course
. The batch
uid value is used by the integration component to uniquely mark records for
automatic updating/processing through the advanced integration process.
Course
as a String
public void setBatchUid(java.lang.String strBatchUid)
Course
. Setting this
value is not necessary when creating a Course for persisting to the database
since either the database persister or the database will set this value.
strBatchUid
- a String
containing the batch uid for this
Course
public Course.Enrollment getEnrollmentType()
Course
.
Course.Enrollment
Course.Enrollment
public void setEnrollmentType(Course.Enrollment eEnrollmentType)
Course
.
eEnrollmentType
- a valid type value as defined in Course.Enrollment
Course.Enrollment
public boolean getRequireAccountToEnroll()
public void setRequireAccountToEnroll(boolean bRequireAccountToEnroll)
public boolean getIsAvailable()
Course
. If a course is
marked as not available, no students can access it, but the instructor can
still access the course.
getIsAvailable
in interface Available
Course
is availablepublic void setIsAvailable(boolean bIsAvailable)
Course
. If a course is
marked as not available, no students can access it, but the instructor can
still access the course.
setIsAvailable
in interface Available
bIsAvailable
- true if the course is to be made available, false otherwise.public boolean getShowInCatalog()
Course
.
is a carry over from Bb.com and currently (5/25/00) has no effect in Bb5.
Course
is (should be)
shown in the catalogpublic void setShowInCatalog(boolean bShowInCatalog)
Course
.
is a carry over from Bb.com and currently (5/25/00) has no effect in Bb5.
bShowInCatalog
- true if the course is to be (should be) shown in
the catalog, false otherwise.public boolean getHasDescriptionPage()
Course
.
flag is a carry over from Bb.com and currently (5/25/00) has no effect in Bb5.
Course
has a special
HTML page in which it is described.public void setHasDescriptionPage(boolean bHasDescriptionPage)
Course
.
is a carry over from Bb.com and currently (5/25/00) has no effect in Bb5.
bHasDescriptionPage
- true if the course has a special description page,
false otherwise.public Course.Duration getDurationType()
Course
.
Course.Duration
Course.Duration
public void setDurationType(Course.Duration eDurationType)
Course
.
eDurationType
- a valid type value as defined in Course.Duration
Course.Duration
public boolean getAllowEmailEnrollRequests()
getEnrollmentType()
and
the new value Course.Enrollment.EMAIL_ENROLLMENT
.
true
or false
depending on whether the value returned by getEnrollmentType()
equals Course.Enrollment.EMAIL_ENROLLMENT
.
public void setAllowEmailEnrollRequests(boolean bAllowEmailEnrollRequests)
setEnrollmentType(Course.Enrollment)
method and the new value Course.Enrollment.EMAIL_ENROLLMENT
.
true
, this
tranlsates to a call to setEnrollmentType(Course.Enrollment)
with
the value Course.Enrollment.EMAIL_ENROLLMENT
. A value of
false
translates to teh same method call but with a value of Course.Enrollment.INSTRUCTOR_LED
.
public boolean getIsLockedOut()
Course
. If a course is
marked as locked out, no one (not even the instructor) can access it. The
system admin should still be able to access the course.
course setting does not seem to be used.
Course
is locked outpublic void setIsLockedOut(boolean bIsLockedOut)
Course
. If a course is marked
as locked out, no one (not even the instructor) can access it. If the desired
behavior is to only lock out students, see setIsAvailable(boolean)
.
The system admin should still be able to access the course.
course setting does not seem to be used.
bIsLockedOut
- true if the course is to be made available, false otherwise.public Course.Pace getPaceType()
Course
.
Course.Pace
Course.Pace
public void setPaceType(Course.Pace ePaceType)
Course
.
ePaceType
- a valid type value as defined in Course.Pace
Course.Pace
public Course.ServiceLevel getServiceLevelType()
Course
.
Course.ServiceLevel
Course.ServiceLevel
public void setServiceLevelType(Course.ServiceLevel eServiceLevelType)
Course
.
eServiceLevelType
- a valid type value as defined in Course.ServiceLevel
Course.ServiceLevel
public boolean getShowEmailInSR()
public void setShowEmailInSR(boolean bShowEmailInSR)
public boolean getShowFirstNameInSR()
public void setShowFirstNameInSR(boolean bShowFirstNameInSR)
public boolean getShowLastNameInSR()
public void setShowLastNameInSR(boolean bShowLastNameInSR)
public boolean getShowPhone1InSR()
public void setShowPhone1InSR(boolean bShowPhone1InSR)
public boolean getShowStudentIdInSR()
public void setShowStudentIdInSR(boolean bShowStudentIdInSR)
public boolean getAllowGuests()
Course
. This flag
determines whether or not "guests" (users with the role guest) are allowed
access to the course.
public void setAllowGuests(boolean bAllowGuests)
Course
. This flag determines
whether or not "guests" (users with the role guest) are allowed access to the
course.
bAllowGuests
- true if guests should be allowed in this course, false
otherwisepublic long getAbsoluteLimit()
Course
.
Course
public void setAbsoluteLimit(long lAbsoluteLimit)
Course
.
lAbsoluteLimit
- a long representing the new absolute storage limit to setpublic long getSoftLimit()
Course
.
Course
public void setSoftLimit(long lSoftLimit)
Course
.
lSoftLimit
- a long representing the new soft storage limit to setpublic long getUploadLimit()
Course
.
Course
public void setUploadLimit(long lUploadLimit)
Course
.
nUploadLimit
- a long representing the new upload storage limit to setpublic java.lang.String getCourseId()
Course
.
Course
as a String
public void setCourseId(java.lang.String strCourseId)
Course
.
strCourseId
- a String
containing the course idfor this
Course
public java.lang.String getTitle()
Course
.
String
public void setTitle(java.lang.String strTitle)
Course
.
strTitle
- a String
containing the title for this coursepublic java.util.Calendar getStartDate()
Course
will/has start(ed).
Calendar
representing the start date of this Course
public void setStartDate(java.util.Calendar cStartDate)
Course
.
cStartDate
- a Calendar
to use for the start datepublic java.util.Calendar getEndDate()
Course
will/has end(ed).
Calendar
representing the end date of this Course
public void setEndDate(java.util.Calendar cEndDate)
Course
.
cEndDate
- a Calendar
to use for the end datepublic java.util.Calendar getEnrollmentStartDate()
Course
starts.
Calendar
representing the enrollment start date of this
Course
public void setEnrollmentStartDate(java.util.Calendar cEnrollmentStartDate)
Course
.
cEnrollmentStartDate
- a Calendar
to use for the enrollment
start datepublic java.util.Calendar getEnrollmentEndDate()
Course
ends.
Calendar
representing the enrollment end date of this
Course
public void setEnrollmentEndDate(java.util.Calendar cEnrollmentEndDate)
Course
.
cEnrollmentEndDate
- a Calendar
to use for the enrollment
end datepublic int getNumDaysOfUse()
Course
can be used.
Course
can be used.public void setNumDaysOfUse(int nNumDaysOfUse)
Course
. This setting
is only applicable if the course duration is a fixed number of days.
nNumDaysOfUse
- a int representing the new number of days of use valuepublic float getFee()
Course
.
Course
public void setFee(float fFee)
Course
.
fFee
- a float representing the new fee (cost) to setpublic java.lang.String getEnrollmentAccessCode()
Course
.
Course
as a
String
public void setEnrollmentAccessCode(java.lang.String strEnrollmentAccessCode)
Course
.
strEnrollmentAccessCode
- a String
containing the enrollment
access codefor this Course
public BbFile getBannerImageFile()
Course
.
Course
as a BbFile
public void setBannerImageFile(BbFile bannerImageFile)
Course
.
bannerImageFile
- a BbFile
containing the banner image for this
Course
public java.lang.String getInstitutionName()
Course
.
Course
as a String
public void setInstitutionName(java.lang.String strInstitutionName)
Course
.
strInstitutionName
- a String
containing the institution name
for this Course
public java.lang.String getDescription()
Course
.
String
public void setDescription(java.lang.String strDescription)
Course
.
strDescription
- a String
containing the description for this coursepublic java.lang.String getLocale()
Course
object.
String
representing the locale of this coursepublic void setLocale(java.lang.String strLocale)
Course
object.
strSettings
- a String
with the locale for this coursepublic boolean getIsLocaleEnforced()
Course
. If a course is
identified as enforced, all students will be "forced" to use the locale specified by the course.
Course
locale is enforced.public void setIsLocaleEnforced(boolean bIsEnforced)
Course
. If a course is
identified as enforced, all students will be "forced" to use the locale specified by the course.
bIsAvailable
- true if the course locale is to be enforced, false otherwise.public boolean getAllowObservers()
Course
. This flag
determines whether or not "observers" (parents of a student in a course for
example) are allowed access to the course.
public void setAllowObservers(boolean bAllowObservers)
Course
. This flag
determines whether or not "observers" (parents of a student in a course for
example) are allowed access to the course.
bAllowObservers
- true if observers should be allowed in this course,
false otherwisepublic Course.NavStyle getNavStyle()
Course
.
Course.NavStyle
Course.NavStyle
public void setNavStyle(Course.NavStyle eNavStyle)
Course
.
eNavStyle
- a valid navigation style value as defined in Course.NavStyle
Course.NavStyle
public java.lang.String getNavColorFg()
getNavStyle()
)
for the course is set to Course.NavStyle.TEXT
.
String
containing the color value that is being used for
rendering text on the navigation links. This string is an RGB
color value specified as a hexadecimal number prefixed by a hash
mark (i.e. white is "#FFFFFF", black is "#000000").public void setNavColorFg(java.lang.String strNavColorFg)
getNavStyle()
)
for the course is set to Course.NavStyle.TEXT
.
strNavColorFg
- a String
containing the color value that should
be used for rendering text on the navigation links. The expected
value is an RGB color value specified as a hexadecimal number prefixed
by a hash mark (i.e. white is "#FFFFFF", black is "#000000").public java.lang.String getNavColorBg()
getNavStyle()
) for the
course is set to Course.NavStyle.TEXT
.
String
containing the color value that is being used for
rendering the background of the navigation links. This string is
an RGB color value specified as a hexadecimal number prefixed by a
hash mark (i.e. white is "#FFFFFF", black is "#000000").public void setNavColorBg(java.lang.String strNavColorBg)
getNavStyle()
) for the course
is set to Course.NavStyle.TEXT
.
strNavColorBg
- a String
containing the color value that should
be used for rendering the background of the navigation links. The
expected value is an RGB color value specified as a hexadecimal
number prefixed by a hash mark (i.e. white is "#FFFFFF", black is
"#000000").public boolean getIsNavCollapsible()
Course
.
This flag determines whether or not users of a course should be allowed to
"collapse" (slide into the side) the navigation links which appear on the
left hand side of the course page.
public void setIsNavCollapsible(boolean bIsNavCollapsible)
Course
.
This flag determines whether or not users of a course should be allowed to
"collapse" (slide into the side) the navigation links which appear on the
left hand side of the course page.
bIsNavCollapsible
- true if users should be allowed to collapse the
navigation buttons, false otherwisepublic ButtonStyle getButtonStyle()
ButtonStyle
associated with this Course
.
Course
was loaded using a "heavy" load method. Accessing this
value when it has not been loaded is an error.
ButtonStyle
value for this coursepublic void setButtonStyle(ButtonStyle bstyle)
ButtonStyle
value for this Course
.
bstyle
- a ButtonStyle
value to use for this coursepublic Cartridge getCartridge()
Cartridge
associated with this Course
.
Course
was loaded using a "heavy" load method. Accessing this
value when it has not been loaded is an error.
Cartridge
value for this coursepublic void setCartridge(Cartridge cartridge)
Cartridge
value for this Course
.
cartridge
- a Cartridge
value to use for this coursepublic Classification getClassification()
Classification
associated with this Course
.
Course
was loaded using a "heavy" load method. Accessing this
value when it has not been loaded is an error.
Classification
value for this coursepublic void setClassification(Classification classif)
Classification
associated with this Course
.
classif
- a Classification
value to use for this coursepublic Registry getRegistry()
Registry
associated with this Course
.
Course
was loaded using a "heavy" load method. Accessing this
value when it has not been loaded is an error.
Registry
value for this coursepublic void setRegistry(Registry reg)
Registry
associated with this Course
. The
Registry
provided should only contain CourseRegistryEntry
values.
reg
- a Registry
value to use for this coursepublic DataType getDataType()
DataType
identifier for this object. Can be used to
uniquely identify the "type" of this data object.
getDataType
in interface IBbObject
getDataType
in class BbObject
DataType
for this objectpublic void validate() throws ValidationException
Course
. Internal consistency
checks are also performed.
validate
in interface IBbObject
validate
in class BbObject
ValidationException
- if validation of this object failspublic static final ListFilter createAvailabilityFilter(boolean targetAvailability)
ListFilter
interface
capable of filtering a list of Course
objects based upon course
"availability". Should be used with BbList.Iterator
.
targetAvailability
- true if "available" courses should be returned,
false if "unavailable" courses should be returned
ListFilter
instance that can filter on "availability"public static final ListFilter createServiceLevelFilter(Course.ServiceLevel targetServiceLevel)
ListFilter
interface
capable of filtering a list of Course
objects based upon course
service level (as returned by getServiceLevelType()
). Should be
used with BbList.Iterator
.
targetServiceLevel
- the Course.ServiceLevel
of the courses
that should be returned from a list
ListFilter
instance that can filter on course service levelpublic static final ListFilter createMembershipRoleFilter(BbList membershipList, CourseMembership.Role targetRole)
ListFilter
interface
capable of filtering a list of Course
objects based upon the
role of a user within those courses. Should be used with BbList.Iterator
.
membershipList
- a BbList
of CourseMembership
objects
that will be used as the basis for determining a user's role within
a course. The provided list of membership records should contain
values for only the one user whose role you wish to filter on.targetRole
- the CourseMembership.Role
value for courses that
should be returned. If a record for the current course (that is
being considered for filtering) exists in the provided membership
list, and the role value for that membership record matches the
target role value, the course will be returned.
ListFilter
instance that can filter based upon the role
of a user in a coursepublic static final ListFilter createMembershipRoleFilter(BbList membershipList, CourseMembership.Role targetRole, boolean bIsAvailable)
ListFilter
interface
capable of filtering a list of Course
objects based upon the
role of a user within those courses. Should be used with BbList.Iterator
.
membershipList
- a BbList
of CourseMembership
objects
that will be used as the basis for determining a user's role within
a course. The provided list of membership records should contain
values for only the one user whose role you wish to filter on.targetRole
- the CourseMembership.Role
value for courses that
should be returned. If a record for the current course (that is
being considered for filtering) exists in the provided membership
list, and the role value for that membership record matches the
target role value, the course will be returned.bIsAvailable
- Flag designating availability of CourseMembership
desired.
ListFilter
instance that can filter based upon the role
of a user in a coursepublic static final ListFilter createDurationFilter(java.util.Date availDate, BbList membershipList)
ListFilter
interface
capable of filtering a list of Course
objects based upon the
course duration availability. Should be used with BbList.Iterator
.
availDate
- a Date
that will be used as the basis for determining the availability of
a course. The filtered list will contain courses that are available on
the specified date given its duration settings.
ListFilter
instance that can filter based upon the duration
availability in a course
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |