|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectblackboard.data.BbObject
blackboard.data.discussionboard.Forum
public class Forum
The Forum class provides a representation of a discussion board
forum within the Bb Course Management System.
| Field Summary | |
|---|---|
static DataType |
DATA_TYPE
|
| Fields inherited from class blackboard.data.BbObject |
|---|
_bbAttributes |
| Fields inherited from interface blackboard.data.Positionable |
|---|
POS_UNDEFINED |
| Constructor Summary | |
|---|---|
Forum()
Creates an instance of Forum with default property
values. |
|
| Method Summary | |
|---|---|
void |
appendTopLevelThread(Message msg)
Appends the given Message to the current list of top level
message threads currently defined for this Forum. |
java.lang.String |
getAvgPostPosition()
Returns the average post position associated with this Forum |
java.lang.String |
getAvgPostSize()
Returns the average post size associated with this Forum |
Id |
getConferenceId()
Returns the parent conference Id associated with this
Forum |
DataType |
getDataType()
Returns the DataType identifier for this object. |
FormattedText |
getDescription()
Returns the description of this Forum |
java.util.Calendar |
getEndDate()
Returns the End date restriction on this Forum. |
boolean |
getIsAvailable()
Returns whether this Conference is available. |
boolean |
getIsAvailableWithinDateRestrictions()
Convenience method that returns whether this form is available within the date restrictions (if any ). |
java.lang.String |
getMaxPostSize()
Returns the maximum post size associated with this Forum |
java.lang.String |
getMinPostSize()
Returns the minimum post size associated with this Forum |
java.lang.String |
getMostRecentPost()
Returns the most recent post date associated with this Forum |
int |
getPosition()
Returns the position of this Forum. |
ForumProperties |
getProperties()
Returns the ForumProperties associated with this Forum |
java.util.Calendar |
getStartDate()
Returns the Start date restriction on this Forum. |
ForumStatus |
getStatus()
Returns the ForumStatus associated with this Forum |
java.lang.String |
getTitle()
Returns the title associated with this Forum |
BbList |
getTopLevelThreads()
Returns the list of top level message threads for this Forum. |
void |
setAvgPostPosition(int avgPostPosition)
Sets the average post positon for this Forum |
void |
setAvgPostSize(java.lang.String avgPostSize)
Sets the average post size for this Forum |
void |
setConferenceId(Id iConfId)
Sets the conference Id value for this Forum |
void |
setDescription(FormattedText desc)
Sets the description of this Forum |
void |
setEndDate(java.util.Calendar endDate)
Sets the end date restriction on this forum. |
void |
setIsAvailable(boolean bIsAvailable)
Sets whether this Conference is available. |
void |
setMaxPostSize(java.lang.String maxPostSize)
Sets the maximum post size for this Forum |
void |
setMinPostSize(java.lang.String minPostSize)
Sets the minimum post size for this Forum |
void |
setMostRecentPost(java.lang.String mostRecentPost)
Sets the most recent post date for this Forum |
void |
setPosition(int nPos)
Sets the position of this Forum. |
void |
setProperties(ForumProperties properties)
Sets the ForumProperties value for this Forum |
void |
setStartDate(java.util.Calendar startDate)
Sets the start date restriction on this forum. |
void |
setStatus(ForumStatus status)
Sets the ForumStatus value for this Forum |
void |
setTitle(java.lang.String strTitle)
Sets the title associated with this Forum |
void |
setTopLevelThreads(BbList msgs)
Sets the list of top level message threads for this Forum. |
void |
validate()
Validates the contents of this Forum. |
| 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
| Constructor Detail |
|---|
public Forum()
Forum with default property
values.
| Method Detail |
|---|
public Id getConferenceId()
Id associated with this
Forum
Id value for this forumpublic void setConferenceId(Id iConfId)
Id value for this Forum
iConfId - the conference Id value to use for this forumpublic boolean getIsAvailable()
Conference is available.
public void setIsAvailable(boolean bIsAvailable)
Conference is available.
bIsAvailable - true if this conference is available, false otherwisepublic java.util.Calendar getStartDate()
public void setStartDate(java.util.Calendar startDate)
startDate - the start date restriction to set on the forumpublic java.util.Calendar getEndDate()
public void setEndDate(java.util.Calendar endDate)
endDate - the end date restriction to set on the forumpublic boolean getIsAvailableWithinDateRestrictions()
public int getPosition()
Forum. This position should be
used when displaying forums 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)
Forum. Position values are
zero-based (the first element has a position value of zero, not one).
setPosition in interface PositionablenPos - the new position value of this forum. This value should
be a positive value.public java.lang.String getTitle()
Forum
Stringpublic void setTitle(java.lang.String strTitle)
Forum
strTitle - a String containing the title for this forumpublic java.lang.String getMostRecentPost()
Forum
Stringpublic void setMostRecentPost(java.lang.String mostRecentPost)
Forum
mostRecentPost - the most recent post date to use for this Forumpublic java.lang.String getMinPostSize()
Forum
public void setMinPostSize(java.lang.String minPostSize)
Forum
minPostSize - the minimum post size to use for this Forumpublic java.lang.String getMaxPostSize()
Forum
public void setMaxPostSize(java.lang.String maxPostSize)
Forum
maxPostSize - the maximum post size to use for this Forumpublic java.lang.String getAvgPostSize()
Forum
public void setAvgPostSize(java.lang.String avgPostSize)
Forum
avgPostSize - the average post size to use for this Forumpublic java.lang.String getAvgPostPosition()
Forum
public void setAvgPostPosition(int avgPostPosition)
Forum
avgPostPosition - the average post position to use for this Forumpublic ForumStatus getStatus()
Forum
public void setStatus(ForumStatus status)
Forum
status - the ForumStatus value to use for this Forumpublic void setProperties(ForumProperties properties)
Forum
properties - the ForumProperties value to use for this Forumpublic ForumProperties getProperties()
Forum
public FormattedText getDescription()
Forum
public void setDescription(FormattedText desc)
Forum
desc - a FormattedText containing the description of this forumpublic BbList getTopLevelThreads()
Forum.
BbList with the top level threads for this forumpublic void setTopLevelThreads(BbList msgs)
Forum.
appendTopLevelThread(Message) instead.
msgs - a BbList containing the set of top level message threads
to use for this forumpublic void appendTopLevelThread(Message msg)
Message to the current list of top level
message threads currently defined for this Forum.
Message.setForumId(Id), passing
in the local forum id value, on the provided Message prior to
adding it to the list of top level threads. Top level thread do not have
parent messages so an unset id value (Id.UNSET_ID is also enforced
for the message parent id value.
msg - the Message to append to the current list of top level
message threadspublic 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
Forum. 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 | |||||||||