blackboard.data.content
Class GroupUpload

java.lang.Object
  extended by blackboard.data.BbObject
      extended by blackboard.data.content.Upload
          extended by blackboard.data.content.GroupUpload
All Implemented Interfaces:
UploadDef, IBbObject, java.lang.Cloneable

public class GroupUpload
extends Upload

The GroupUpload class wraps a reference to a file that has been uploaded to a group file exchange 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 GroupUpload objects are only meant to deal with files associated with the group file exchange. It does not deal with files in other contexts, such as content uploads or the course drop box.

Since:
Bb 6.2
Version:
$Revision: #1 $ $Date: 2005/06/27 $

Field Summary
static DataType DATA_TYPE
           
 
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
GroupUpload()
          Default constructor.
 
Method Summary
 DataType getDataType()
          Returns the DataType identifier for the given BbObject-derived object.
 Id getGroupId()
          Gets the id of the group that contains this group upload.
 void setGroupId(Id groupId)
          Sets the id of the group that contains this group upload.
 
Methods inherited from class blackboard.data.content.Upload
getCourseMembershipId, getFile, getFileId, getUploadDate, setCourseMembershipId, setFile, setUploadDate, syncFileId
 
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

DATA_TYPE

public static final DataType DATA_TYPE
Constructor Detail

GroupUpload

public GroupUpload()
Default constructor. Creates an instance of GroupUpload with default property values.

Method Detail

getGroupId

public Id getGroupId()
Gets the id of the group that contains this group upload. This will be unset on new instances, but must be set to the id of an existing group before persisting.

Returns:
the id of the containing group, unset on new instances

setGroupId

public void setGroupId(Id groupId)
Sets the id of the group that contains this group upload. This must be set on new instances to the id of an existing group before persisting.

Note that the course id of the group with the specified id must match the course id of the course membership with the id specified by the courseMembershipId property.

Parameters:
groupId - the id of the containing group

getDataType

public DataType getDataType()
Description copied from class: BbObject
Returns the DataType identifier for the given BbObject-derived object. Can be used to uniquely identify the "type" of a data object.

Specified by:
getDataType in interface IBbObject
Specified by:
getDataType in class BbObject
Returns:
the DataType for current object


Copyright © 2003 Blackboard, Inc. All Rights Reserved.