|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectblackboard.data.BbObject
blackboard.data.discussionboard.MessageAttachment
public class MessageAttachment
The MessageAttachment class represents an attachment to a given
discussion board message within the Bb Course Management System.
| Field Summary | |
|---|---|
static DataType |
DATA_TYPE
|
| Fields inherited from class blackboard.data.BbObject |
|---|
_bbAttributes |
| Constructor Summary | |
|---|---|
MessageAttachment()
Creates an instance of MessageAttachment with default property
values. |
|
| Method Summary | |
|---|---|
static ListFilter |
createMessageIdFilter(Id parentMsgId)
Factory method to create an instance of the ListFilter interface
capable of filtering a list of MessageAttachment objects based
upon their parent message's Id value. |
DataType |
getDataType()
Returns the DataType identifier for this object. |
BbFile |
getFile()
Returns the file that this MessageAttachment represents. |
boolean |
getMsgHasEmbeds()
Returns an indicator for whether the parent message text contains references to embedded files |
Id |
getParentMsgId()
Returns the parent message Id associated with this
MessageAttachment. |
void |
setFile(BbFile file)
Sets the file that this MessageAttachment should represent. |
void |
setMsgHasEmbeds(boolean flag)
Sets the indicator for whether the parent message text contains references to emebedded files |
void |
setParentMsgId(Id iParentMsgId)
Sets the parent message Id associated with this
MessageAttachment. |
| Methods inherited from class blackboard.data.BbObject |
|---|
clone, getBbAttributes, getCreatedDate, getId, getModifiedDate, persist, setCreatedDate, setId, setModifiedDate, toString, validate |
| 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 MessageAttachment()
MessageAttachment with default property
values.
| Method Detail |
|---|
public Id getParentMsgId()
Id associated with this
MessageAttachment.
Id value for this message attachmentpublic void setParentMsgId(Id iParentMsgId)
Id associated with this
MessageAttachment.
iParentMsgId - the parent message Id value to use for this
message attachmentpublic BbFile getFile()
MessageAttachment represents.
MessageAttachment as a BbFilepublic void setFile(BbFile file)
MessageAttachment should represent.
file - a BbFile containing the file that this MessageAttachment
should representpublic boolean getMsgHasEmbeds()
public void setMsgHasEmbeds(boolean flag)
flag - true if contains, false otherwisepublic 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 objectpublic static final ListFilter createMessageIdFilter(Id parentMsgId)
ListFilter interface
capable of filtering a list of MessageAttachment objects based
upon their parent message's Id value. Should be used with BbList.Iterator.
parentId - the Id of the parent for which message attachments
should be returned. Message attachments that are attached to a
given message (identified by Id) will be returned.
ListFilter instance that can filter on parent Id
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||