|
||||||||||
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.ChildFile
public class ChildFile
The ChildFile
class wraps an uploaded file that is the child of
a ContentFile
. 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.
Presently, child files are only used in a special case of file content
uploaded through the user interface, in which image references in an uploaded
HTML file are stored as "children" of the HTML content file record.
Nested Class Summary | |
---|---|
static class |
ChildFile.Action
|
Field Summary | |
---|---|
static DataType |
DATA_TYPE
|
Fields inherited from class blackboard.data.BbObject |
---|
_bbAttributes |
Constructor Summary | |
---|---|
ChildFile()
Default constructor. |
Method Summary | |
---|---|
ChildFile.Action |
getAction()
Returns the action specified for this ChildFile . |
DataType |
getDataType()
Returns the DataType identifier for this object. |
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. |
Id |
getParentId()
Returns the parent object for this file. |
long |
getSize()
Returns the size of the file wrapped by this object. |
void |
setAction(ChildFile.Action action)
Sets the display action for this ChildFile . |
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 |
setParentId(Id iParentId)
Sets the parent id of this object. |
void |
setSize(long size)
Records the size of the file wrapped by this object. |
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 ChildFile()
ChildFile
with
default property values.
Method Detail |
---|
public ChildFile.Action getAction()
ChildFile
. The action
is used to determine how the file should display in the UI.
ChildFile.Action
public void setAction(ChildFile.Action action)
ChildFile
.
action
- Action 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.public Id getParentId()
Id.UNSET_ID
if this object has no parent, or a valid Id
of another
ChildFile
object.public void setParentId(Id iParentId)
id
- Id
of the parent ChildFile
object.public DataType getDataType()
DataType
identifier for this object. Can be used to
uniquely identify the "type" of this data object.
getDataType
in interface IBbObject
getDataType
in class BbObject
DataType
for this object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |