|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--blackboard.data.BbObject
|
+--blackboard.data.content.Upload
Upload
| Field Summary |
| Fields inherited from class blackboard.data.BbObject |
_bbAttributes |
| Fields inherited from interface blackboard.data.content.UploadDef |
COURSE_MEMBERSHIP_ID, FILE_ID, UPLOAD_DATE |
| Constructor Summary | |
Upload()
Default constructor. |
|
| Method Summary | |
Id |
getCourseMembershipId()
Gets the id of the course membership record for the user that performed this upload in the course that contains it. |
UploadedFile |
getFile()
Gets the uploaded file record of the file referred to by this upload. |
Id |
getFileId()
Gets the id of the uploaded file record of the file referred to by this upload. |
java.util.Calendar |
getUploadDate()
Gets the date and time when the file referred to by this object was uploaded. |
void |
setCourseMembershipId(Id courseMembershipId)
Sets the id of the course membership record for the user that performed this upload in the course that contains it. |
void |
setFile(UploadedFile uploadedFile)
Sets the uploaded file record of the file referred to by this upload. |
void |
setUploadDate(java.util.Calendar uploadDate)
Sets the date and time when the file referred to by this object was uploaded. |
void |
syncFileId()
Synchronizes the id returned by future calls to getFileId() to be
the same as the id currently returned by a call to getFile(). |
| 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 Upload()
Upload with
default property values.
| Method Detail |
public Id getCourseMembershipId()
public void setCourseMembershipId(Id courseMembershipId)
courseMembershipId - the id of the owning course membershippublic java.util.Calendar getUploadDate()
null on new instances, but must be
set to a valid date before persisting.
null
on new instancespublic void setUploadDate(java.util.Calendar uploadDate)
uploadDate - the date and time when the upload was performedpublic UploadedFile getFile()
null on new instances, but must be set to a valid
UploadedFile object before persisting.
null on new instancespublic void setFile(UploadedFile uploadedFile)
UploadedFile object
before persisting.
uploadedFile - the uploaded file object referred to by this objectpublic Id getFileId()
public void syncFileId()
getFileId() to be
the same as the id currently returned by a call to getFile().getId(). This method should be
called whenever the id of the related uploaded file object may have
changed to ensure data integrity. It is called automatically by setFile(UploadedFile). This is intended primarily for use by persisters
to do a heavy persist of the uploaded file object.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||