|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectblackboard.data.BbObject
blackboard.data.content.AbstractContentFile
public abstract class AbstractContentFile
The AbstractContentFile class wraps a reference to a file that has been
uploaded to a content area in a course. This object only represents the
information in the database used to track the file reference. References to
the actual file system objects must be obtained separately.
Note that AbstractContentFile objects are only meant to deal with files
associated with content. It does not deal with files in other contexts, such
as user or group uploads.
| Nested Class Summary | |
|---|---|
static class |
AbstractContentFile.StorageType
Type-safe enumeration of possible values for the StorageType attribute
of a file. |
| Field Summary |
|---|
| Fields inherited from class blackboard.data.BbObject |
|---|
_bbAttributes |
| Constructor Summary | |
|---|---|
AbstractContentFile()
Default constructor. |
|
| Method Summary | |
|---|---|
java.lang.String |
getLinkName()
Returns the name of the link to display with this file object. |
java.lang.String |
getName()
Returns the file name of this file object. |
long |
getSize()
Returns the size of the file wrapped by this object. |
AbstractContentFile.StorageType |
getStorageType()
Returns the storageType specified for this ContentFile. |
void |
setLinkName(java.lang.String strLinkName)
Sets the text of the link displayed for this object. |
void |
setName(java.lang.String strName)
Sets the file name of this object |
void |
setSize(long size)
Records the size of the file wrapped by this object. |
void |
setStorageType(AbstractContentFile.StorageType storageType)
Sets the display storageType for this ContentFile. |
| Methods inherited from class blackboard.data.BbObject |
|---|
clone, getBbAttributes, getCreatedDate, getDataType, getId, getModifiedDate, persist, setCreatedDate, setId, setModifiedDate, toString, validate |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractContentFile()
AbstractContentFile with
default property values.
| Method Detail |
|---|
public AbstractContentFile.StorageType getStorageType()
ContentFile. The storageType
is used to determine how the file should display in the UI.
ContentFile.StorageTypepublic void setStorageType(AbstractContentFile.StorageType storageType)
ContentFile.
storageType - StorageType to set.public long getSize()
public void setSize(long size)
size - size to record.public java.lang.String getName()
public void setName(java.lang.String strName)
strName - file name to set. This value should not exceed 500 characters.public java.lang.String getLinkName()
public void setLinkName(java.lang.String strLinkName)
strLinkName - name to display. This field cannot exceed 255 characters.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||