Packagecom.adobe.rtc.sharedManagers.descriptors
Classpublic class FileDescriptor
ImplementsIValueObjectEncodable

Describes the set of properties for a file present in the room for upload and download. The FileManager is responsible for managing and communicating the set of FileDescriptors to users in the room. Collaboration components such as FileSubscriber or FilePublisher use FileDescriptors to access the raw files themselves.

FileDescriptors can be thought of as control metadata for indicating the presence and current state of files in the room. FileDescriptors can be accessed through FileManager's methods, and FileManager's events will notify of any changes to the set of fileDescriptors.

See also

com.adobe.rtc.sharedManagers.FileManager
com.adobe.rtc.collaboration.FileSubscriber


Public Properties
 PropertyDefined by
  ANNOUNCING_INTENTION_TO_PUBLISH : String = "announcingIntentionToPublish"
[static] Constant value descriptor state which is published in the descriptor for validation to the service when the publisher is about to upload a file.
FileDescriptor
  filename : String
The name of the file on the server (including possible encoding).
FileDescriptor
  FILE_UPLOAD_PROGRESS : String = "fileUploadProgress"
[static] Constant value for the descriptor stae: When the file upload is in progress, the descriptor is periodically updated with the percent completion of the upload and this state.
FileDescriptor
  groupName : String
The group name which the stream descriptor belongs to
FileDescriptor
  id : String
A unique descriptor ID.
FileDescriptor
  lastModified : int
The timestamp of the last modified date.
FileDescriptor
  name : String
The name of the file on the client.
FileDescriptor
  previousFilename : String
If the file has been renamed, the last server fileName used before it was renamed.
FileDescriptor
  previousName : String
If the file has been renamed, the last client name used before it was renamed.
FileDescriptor
  PUBLISHING_DESCRIPTOR : String = "publishingDescriptor"
[static] Constant value for the descriptor state: When the file upload is finished and the final URL has been determined, the descriptor is updated with the URL and this state.
FileDescriptor
  size : int = 0
The size of the file in bytes.
FileDescriptor
  state : String
The state of the publish operation which must be one of the constant values described in this class.
FileDescriptor
  submitterID : String
The file publisher's userID.
FileDescriptor
  token : String
A server token to allow for validated download of the file.
FileDescriptor
  type : String
The file type.
FileDescriptor
  uploadProgress : Number = 0
The progress of the file upload expressed numerically from 0 to 100.
FileDescriptor
  url : String
The final URL of the file on a server for download.
FileDescriptor
Public Methods
 MethodDefined by
  
Returns a copy of itself.
FileDescriptor
  
Creates a ValueObject representation of this descriptor.
FileDescriptor
  
readValueObject(p_valueObject:Object):void
Takes in a valueObject and structure the MessageItem according to the values therein.
FileDescriptor
Property detail
ANNOUNCING_INTENTION_TO_PUBLISHproperty
public static var ANNOUNCING_INTENTION_TO_PUBLISH:String = "announcingIntentionToPublish"

Constant value descriptor state which is published in the descriptor for validation to the service when the publisher is about to upload a file.

filenameproperty 
public var filename:String

The name of the file on the server (including possible encoding).

FILE_UPLOAD_PROGRESSproperty 
public static var FILE_UPLOAD_PROGRESS:String = "fileUploadProgress"

Constant value for the descriptor stae: When the file upload is in progress, the descriptor is periodically updated with the percent completion of the upload and this state.

groupNameproperty 
public var groupName:String

The group name which the stream descriptor belongs to

idproperty 
public var id:String

A unique descriptor ID.

lastModifiedproperty 
public var lastModified:int

The timestamp of the last modified date.

nameproperty 
public var name:String

The name of the file on the client.

previousFilenameproperty 
public var previousFilename:String

If the file has been renamed, the last server fileName used before it was renamed.

previousNameproperty 
public var previousName:String

If the file has been renamed, the last client name used before it was renamed.

PUBLISHING_DESCRIPTORproperty 
public static var PUBLISHING_DESCRIPTOR:String = "publishingDescriptor"

Constant value for the descriptor state: When the file upload is finished and the final URL has been determined, the descriptor is updated with the URL and this state.

sizeproperty 
public var size:int = 0

The size of the file in bytes.

stateproperty 
public var state:String

The state of the publish operation which must be one of the constant values described in this class.

submitterIDproperty 
public var submitterID:String

The file publisher's userID.

tokenproperty 
public var token:String

A server token to allow for validated download of the file.

typeproperty 
public var type:String

The file type.

uploadProgressproperty 
public var uploadProgress:Number = 0

The progress of the file upload expressed numerically from 0 to 100.

urlproperty 
public var url:String

The final URL of the file on a server for download.

Method detail
clone()method
public function clone():FileDescriptor

Returns a copy of itself.

Returns
FileDescriptor
createValueObject()method 
public function createValueObject():Object

Creates a ValueObject representation of this descriptor.

Returns
Object — An Object which represents the non-default values for this descriptor, suitable for consumption by readValueObject.
readValueObject()method 
public function readValueObject(p_valueObject:Object):void

Takes in a valueObject and structure the MessageItem according to the values therein.

Parameters
p_valueObject:Object — An Object which represents the non-default values for this MessageItem.




 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/labs/acrobatcom/com/adobe/rtc/sharedManagers/descriptors/FileDescriptor.html