Package wt.content
Class ApplicationData
java.lang.Object
wt.fc._WTObject
wt.fc.WTObject
wt.content._ContentItem
wt.content.ContentItem
wt.content._ApplicationData
wt.content.ApplicationData
- All Implemented Interfaces:
Externalizable,Serializable,wt.fc._NetFactor,wt.fc._ObjectMappable,wt.fc._Persistable,wt.fc.BusinessInformation,NetFactor,ObjectMappable,Persistable,DisplayIdentification
- Direct Known Subclasses:
wt.content._Aggregate
@GenAsPersistable(superClass=ContentItem.class,versions=-7073401442224402922L,properties={@GeneratedProperty(name="uploadedFromPath",type=java.lang.String.class,supportedAPI=PUBLIC,javaDoc="The path where this piece of content was uploaded from",constraints=@PropertyConstraints(upperLimit=2000)),@GeneratedProperty(name="fileName",type=java.lang.String.class,supportedAPI=PUBLIC,javaDoc="The fileName of this piece of content. This is what the name of the file was when you originally uploaded it.",constraints=@PropertyConstraints(upperLimit=256)),@GeneratedProperty(name="fileSize",type=long.class,javaDoc="The byte size of the uploaded file"),@GeneratedProperty(name="intendedForHttpOp",type=boolean.class,initialValue="false",javaDoc="This is a non-persisted attribute that is used to mark ApplicationData objects as intended for Upload or Download. This is to be used with the methods ContentHelper.service.contentUpdateUpload( ) ContentHelper.service.contentUpdateDownload( ) @see wt.content.ContentService @see wt.content.ContentHelper",columnProperties=@ColumnProperties(persistent=false)),@GeneratedProperty(name="checksum",type=long.class,javaDoc="The checksum of the uploaded file"),@GeneratedProperty(name="streamId",type=long.class,initialValue="-1"),@GeneratedProperty(name="fileVersion",type=java.lang.String.class,constraints=@PropertyConstraints(upperLimit=80)),@GeneratedProperty(name="toolVersion",type=java.lang.String.class,constraints=@PropertyConstraints(upperLimit=80)),@GeneratedProperty(name="toolName",type=java.lang.String.class,constraints=@PropertyConstraints(upperLimit=80)),@GeneratedProperty(name="contentIdentity",type=java.lang.String.class,javaDoc="This non-persistable field is used to uniquely identify a content. This could be either the actual full path of the content or any other client specific value which can uniquely identify the content",columnProperties=@ColumnProperties(persistent=false)),@GeneratedProperty(name="streamData",type=ObjectReference.class,constraints=@PropertyConstraints(required=true)),@GeneratedProperty(name="isChapteredContent",type=boolean.class,initialValue="false",javaDoc="This flag tells us whether this contentitem has chapters.",constraints=@PropertyConstraints(required=true),columnProperties=@ColumnProperties(defaultValue="0")),@GeneratedProperty(name="chapterDelegate",type=java.lang.String.class,javaDoc="This is populated only if isChapteredContent == true ,this could also be a classname."),@GeneratedProperty(name="clientData",type=java.lang.String.class,javaDoc="This is a placeholder column for client to add any client specific information. This information will not be interpreted by server and will be returned as is.",columnProperties=@ColumnProperties(columnType=INLINE_BLOB))},tableProperties=@TableProperties(compositeIndex1="streamData.key.id",compositeIndex2="streamId",oracleTableSize=HUGE),iconProperties=@IconProperties(standardIcon="wt/clients/images/generic.gif",openIcon="wt/clients/images/generic.gif"))
public class ApplicationData
extends _ApplicationData
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:
-
Field Summary
Fields inherited from class wt.content._ApplicationData
FILE_NAME, UPLOADED_FROM_PATHFields inherited from class wt.content._ContentItem
ROLE -
Method Summary
Modifier and TypeMethodDescriptiongetViewContentURL(ContentHolder holder) Deprecated.getViewContentURL(ContentHolder holder, boolean withSign) Deprecated.UseContentHelper.getViewContentURL(ApplicationData, ContentHolder, boolean)
Generates a URL that can be used in a AppletContext.showDocument() call from an applet.protected voidinitialize(ContentHolder holder) Supports initialization, following construction of an instance.static ApplicationDatanewApplicationData(ContentHolder holder) Instatiates a new ApplicationData object based on a ContentHolder
Supported API: trueMethods inherited from class wt.content._ApplicationData
getFileName, getUploadedFromPath, setFileName, setUploadedFromPathMethods inherited from class wt.content._ContentItem
getRole, setRoleMethods inherited from class wt.fc.WTObject
getDisplayIdentifier, getDisplayIdentity, getDisplayType
-
Method Details
-
newApplicationData
Instatiates a new ApplicationData object based on a ContentHolder
Supported API: true- Parameters:
holder-- Returns:
- ApplicationData
- Throws:
WTException
-
initialize
Supports initialization, following construction of an instance. Invoked by "new" factory having the same signature.
Supported API: true- Parameters:
holder-- Throws:
WTException
-
getViewContentURL
Deprecated.UseContentHelper.getViewContentURL(ApplicationData, ContentHolder)
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
-
getViewContentURL
Deprecated.UseContentHelper.getViewContentURL(ApplicationData, ContentHolder, boolean)
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. If withSign is set to false (for internal use only), then the URL is not signed
Supported API: false- Parameters:
holder-withSign- Normally it is true.- Returns:
- URL
- Throws:
WTException
-
ContentHelper.getViewContentURL(ApplicationData, ContentHolder)Generates a URL that can be used in a AppletContext.showDocument( ) call from an applet.