wt.content
Class ApplicationData

java.lang.Object
  extended by wt.fc.WTObject
      extended by wt.content.ContentItem
          extended by wt.content.ApplicationData
All Implemented Interfaces:
Externalizable, Serializable, wt.fc.BusinessInformation, NetFactor, ObjectMappable, Persistable, DisplayIdentification

public class ApplicationData
extends ContentItem
implements Externalizable

Handles the file system information for the content data. This class is aggregated into classes implementing the ContentHolder interface.

Use the newApplicationData static factory method(s), not the ApplicationData constructor, to construct instances of this class. Instances must be constructed using the static factory(s), in order to ensure proper initialization of the instance.



Supported API: true

Extendable: false

See Also:
Serialized Form

Field Summary
static String FILE_NAME
          Label for the attribute; The fileName of this piece of content.
static String UPLOADED_FROM_PATH
          Label for the attribute; The path where this piece of content was uploaded from

Supported API: true
 
Fields inherited from class wt.content.ContentItem
ROLE
 
Method Summary
 String getFileName()
          Gets the value of the attribute: FILE_NAME.
 String getUploadedFromPath()
          Gets the value of the attribute: UPLOADED_FROM_PATH.
 URL getViewContentURL(ContentHolder holder)
          Generates a URL that can be used in a AppletContext.showDocument( ) call from an applet.
protected  void initialize(ContentHolder holder)
          Supports initialization, following construction of an instance.
static ApplicationData newApplicationData(ContentHolder holder)
          Instatiates a new ApplicationData object based on a ContentHolder

Supported API: true
 void setFileName(String a_FileName)
          Sets the value of the attribute: FILE_NAME.
 void setUploadedFromPath(String a_UploadedFromPath)
          Sets the value of the attribute: UPLOADED_FROM_PATH.
 
Methods inherited from class wt.content.ContentItem
getRole, setRole
 
Methods inherited from class wt.fc.WTObject
getDisplayIdentifier, getDisplayIdentity, getDisplayType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

UPLOADED_FROM_PATH

public static final String UPLOADED_FROM_PATH
Label for the attribute; The path where this piece of content was uploaded from

Supported API: true

See Also:
Constant Field Values

FILE_NAME

public static final String FILE_NAME
Label for the attribute; The fileName of this piece of content. This is what the name of the file was when you originally uploaded it.

Supported API: true

See Also:
Constant Field Values
Method Detail

getUploadedFromPath

public String getUploadedFromPath()
Gets the value of the attribute: UPLOADED_FROM_PATH. The path where this piece of content was uploaded from

Supported API: true

Returns:
String

setUploadedFromPath

public void setUploadedFromPath(String a_UploadedFromPath)
                         throws WTPropertyVetoException
Sets the value of the attribute: UPLOADED_FROM_PATH. The path where this piece of content was uploaded from

Supported API: true

Parameters:
a_UploadedFromPath -
Throws:
WTPropertyVetoException

getFileName

public String getFileName()
Gets the value of the attribute: FILE_NAME. The fileName of this piece of content. This is what the name of the file was when you originally uploaded it.

Supported API: true

Returns:
String

setFileName

public void setFileName(String a_FileName)
                 throws WTPropertyVetoException
Sets the value of the attribute: FILE_NAME. The fileName of this piece of content. This is what the name of the file was when you originally uploaded it.

Supported API: true

Parameters:
a_FileName -
Throws:
WTPropertyVetoException

newApplicationData

public static ApplicationData newApplicationData(ContentHolder holder)
                                          throws WTException
Instatiates a new ApplicationData object based on a ContentHolder

Supported API: true

Parameters:
holder -
Returns:
ApplicationData
Throws:
WTException

initialize

protected void initialize(ContentHolder holder)
                   throws WTException
Supports initialization, following construction of an instance. Invoked by "new" factory having the same signature.

Supported API: true

Parameters:
holder -
Throws:
WTException

getViewContentURL

public URL getViewContentURL(ContentHolder holder)
                      throws WTException
Generates a URL that can be used in a AppletContext.showDocument( ) call from an applet. This will initiate a download of the given ApplicationData object.

Supported API: true

Parameters:
holder -
Returns:
URL
Throws:
WTException