|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectblackboard.data.BbObject
blackboard.data.calendar.CalendarEntry
public class CalendarEntry
The CalendarEntry class provides a means for defining an event
(system, course, or personal) within the Blackboard application. TODO
| Nested Class Summary | |
|---|---|
static class |
CalendarEntry.Type
Enumeration of the different types of calendar events supported by the Blackboard Calendar tool. |
| Field Summary | |
|---|---|
static DataType |
CALENDAR_ENTRY_DATA_TYPE
Deprecated. Use the constant DATA_TYPE instead |
static DataType |
DATA_TYPE
Constant used to identify data type |
| Fields inherited from class blackboard.data.BbObject |
|---|
_bbAttributes |
| Constructor Summary | |
|---|---|
CalendarEntry()
Creates an instance of CalendarEntry with default property
values. |
|
| Method Summary | |
|---|---|
static ListFilter |
createCourseIdFilter(Id targetCourseId)
Factory method to create an instance of the ListFilter interface
capable of filtering a list of CalendarEntry objects based
upon its associated course id values. |
static ListFilter |
createTypeFilter(CalendarEntry.Type type)
Factory method to create an instance of the ListFilter interface
capable of filtering a list of CalendarEntry objects based
upon their CalendarEntry.Type value. |
Id |
getCourseId()
Returns the course Id object to which this
CalendarEntry was posted. |
Id |
getCreatorUserId()
Returns the creator user Id associated with this
CalendarEntry. |
DataType |
getDataType()
Returns the DataType identifier for this object. |
FormattedText |
getDescription()
Returns the description of this CalendarEntry. |
java.util.Calendar |
getEndDate()
Returns the date on which this CalendarEntry will/has end(ed). |
java.util.Calendar |
getStartDate()
Returns the date on which this CalendarEntry will/has start(ed). |
java.lang.String |
getTitle()
Returns the title associated with this CalendarEntry. |
CalendarEntry.Type |
getType()
Returns the calendar type value associated with this CalendarEntry. |
Id |
getUserId()
Deprecated. has been replaced by getCreatorUserId(). |
void |
setCourseId(Id iCourseId)
Sets the course Id value for this CalendarEntry. |
void |
setCreatorUserId(Id iCreatorUserId)
Sets the creator user Id value for this CalendarEntry
. |
void |
setDescription(FormattedText desc)
Sets the description of this CalendarEntry. |
void |
setEndDate(java.util.Calendar cEndDate)
Sets the end date for this CalendarEntry. |
void |
setStartDate(java.util.Calendar cStartDate)
Sets the start date for this CalendarEntry. |
void |
setTitle(java.lang.String strTitle)
Sets the title associated with this CalendarEntry. |
void |
setType(CalendarEntry.Type eType)
Sets the type value associated with this CalendarEntry. |
void |
setUserId(Id iUserId)
Deprecated. has been replaced by setCreatorUserId(Id). |
void |
validate()
Validates the contents of this CalendarEntry object. |
| 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 CALENDAR_ENTRY_DATA_TYPE
DATA_TYPE instead| Constructor Detail |
|---|
public CalendarEntry()
CalendarEntry with default property
values.
| Method Detail |
|---|
public Id getUserId()
getCreatorUserId().
getCreatorUserId(). getCreatorUserId().
public void setUserId(Id iUserId)
setCreatorUserId(Id).
setCreatorUserId(Id). setCreatorUserId(Id).
public Id getCreatorUserId()
Id associated with this
CalendarEntry. This value is the Id of the user who
created the calendar entry.
Id value for this calendar entry. The
creator user id will never be null as its setting is
mandatory for all CalendarEntry objectspublic void setCreatorUserId(Id iCreatorUserId)
Id value for this CalendarEntry
.
This value is the Id of the user who created this
CalendarEntry. CalendarEntry objects will
have creator user ids set.
iCreatorUserId - the creator user Id value to use for this calendar entrypublic Id getCourseId()
Id object to which this
CalendarEntry was posted.
Id value for this calendarpublic void setCourseId(Id iCourseId)
Id value for this CalendarEntry.
This value should only be set to a valid course id if this calendar entry
is a "course" calendar entry (i.e., the value set in
setType(CalendarEntry.Type) is CalendarEntry.Type.COURSE).
For all other types of calendar entries this value should be
Id.UNSET_ID.
iCourseId - the course Id value to use for this calendarpublic CalendarEntry.Type getType()
CalendarEntry.
CalendarEntry.TypeCalendarEntry.Typepublic void setType(CalendarEntry.Type eType)
CalendarEntry.
Current available types are "Personal," "Course," and "System," with the
default type being "Personal."
eType - a valid type value as defined in CalendarEntry.TypeCalendarEntry.Typepublic java.util.Calendar getStartDate()
CalendarEntry will/has start(ed).
The default value for this field is the date this object was created,
rounded to the next whole hour.
Calendar representing the start date of this calendar
entrypublic void setStartDate(java.util.Calendar cStartDate)
CalendarEntry. Start date is a
required field and must be provided. This fields defaults to a valid value
(see getStartDate()). The start date must occur before the end
date.
cStartDate - a Calendar to use for the start datepublic java.util.Calendar getEndDate()
CalendarEntry will/has end(ed). The
default value for this field is the start date (see getStartDate())
plus one hour.
Calendar representing the end date of this calendar entrypublic void setEndDate(java.util.Calendar cEndDate)
CalendarEntry. An end date is a
required field and must be provided. This fields defaults to a valid value
(see getEndDate()). The end date must occur before the start
date.
cEndDate - a Calendar to use for the end datepublic java.lang.String getTitle()
CalendarEntry.
String objectpublic void setTitle(java.lang.String strTitle)
CalendarEntry. The
title is what is shown on the calendar tool in the day, week and month
views and is required
strTitle - a String containing the title for this calendarpublic FormattedText getDescription()
CalendarEntry.
FormattedText representing the description of this
calendarpublic void setDescription(FormattedText desc)
CalendarEntry. The description
describes the details of a calendar entry, the place to enter extra
information about an appointment or an event taking place, and is an
optional setting.
desc - a FormattedText containing the description of this
calendarpublic 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 objectDATA_TYPE
public void validate()
throws ValidationException
CalendarEntry object. Internal
consistency checks are also performed.
validate in interface IBbObjectvalidate in class BbObjectValidationException - if validation of this object failspublic static final ListFilter createCourseIdFilter(Id targetCourseId)
ListFilter interface
capable of filtering a list of CalendarEntry objects based
upon its associated course id values. Should be used with
BbList.Iterator.
targetCourseId - The course id on which to filter CalendarEntry objects.
CalendarEntry objects belonging to the given course will
be the result when using the filter this method returns
ListFilter instance that can filter on course idpublic static final ListFilter createTypeFilter(CalendarEntry.Type type)
ListFilter interface
capable of filtering a list of CalendarEntry objects based
upon their CalendarEntry.Type value. Should be used with
BbList.Iterator.
type - The CalendarEntry.Type on which to filter
CalendarEntry objects
ListFilter instance that can filter on the calendar type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||