包 | com.adobe.livecycle.content |
类 | public class File |
继承 | File EventDispatcher Object |
实现 | IManaged |
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
运行时版本: | AIR 2.6, Flash Player 10.2 |
属性 | 由以下参数定义 | ||
---|---|---|---|
baseURL : String [静态]
The baseURL of Experience Server. | File | ||
constructor : Object
对类对象或给定对象实例的构造函数的引用。 | Object | ||
contentStreamPath : String
TempPath when content is temporarily uploaded. | File | ||
contextRoot : String [静态]
The context root of launchpad application. | File | ||
created : Date
Date when file is created. | File | ||
createdBy : String
The user ID of user who created file. | File | ||
extendedPropertyMap : Object
Additional key-value attributes whichare persisted along with file. | File | ||
fileName : String
The name of the file. | File | ||
id : String
The identifier of the file node. | File | ||
lastModified : Date
The last date the content was modified. | File | ||
lastModifiedBy : String
The user ID of user who last modified the file. | File | ||
mimeType : String
The MIME type of the content. | File | ||
securityManager : SecurityManager [静态]
The User Manager (UM) SecurityManager instance. | File | ||
tempPath : String
The temporary path to store the file. | File |
属性 | 由以下参数定义 | ||
---|---|---|---|
boundary : String [只读]
Boundary of multipart request used in multipart binary upload of content. | File |
方法 | 由以下参数定义 | ||
---|---|---|---|
File()
constructor of File. | File | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
使用 EventDispatcher 对象注册事件侦听器对象,以使侦听器能够接收事件通知。 | EventDispatcher | ||
Deletes the JCR node specified by this instance. | File | ||
将事件调度到事件流中。 | EventDispatcher | ||
download content of jcr node into ByteArray. | File | ||
Downloads content of the JCR node to filesytem. | File | ||
Fill the current instance with metadata of jcr node. | File | ||
检查 EventDispatcher 对象是否为特定事件类型注册了任何侦听器。 | EventDispatcher | ||
表示对象是否已经定义了指定的属性。 | Object | ||
表示 Object 类的实例是否在指定为参数的对象的原型链中。 | Object | ||
表示指定的属性是否存在、是否可枚举。 | Object | ||
从 EventDispatcher 对象中删除侦听器。 | EventDispatcher | ||
设置循环操作动态属性的可用性。 | Object | ||
返回此对象的字符串表示形式,其格式设置遵守区域设置特定的约定。 | Object | ||
返回指定对象的字符串表示形式。 | Object | ||
Updates content of jcr node specified by this instance from file on ByteArray. | File | ||
Updates content of jcr node specified by this instance from file on filesystem. | File | ||
uploadToPathFromByteArray(parentPath:String, fileData:ByteArray, mimeType:String, fileNameArg:String):void
Uploads file to location specified by parenPath on the Experience Server from a ByteArray value. | File | ||
Uploads file on filesystem at path specified by parentPath on the Experience Server. | File | ||
Uploads file to temporary location to the Experience Server from a ByteArray value. | File | ||
Uploads file on filesystem to temporary location on the Experience Server.It uses FileReference to
upload file to the Experience Server. | File | ||
返回指定对象的原始值。 | Object | ||
检查是否用此 EventDispatcher 对象或其任何祖代为指定事件类型注册了事件侦听器。 | EventDispatcher |
方法 | 由以下参数定义 | ||
---|---|---|---|
Appends User Manager (UM) ticket to the URL. | File |
常量 | 由以下参数定义 | ||
---|---|---|---|
NT_FILE : String = "nt:file" [静态]
constant representing nt:file
| File | ||
TEMP_FOLDER_NAME : String = "/tmp/uploadFilesTempDir" [静态]
The temporary path of folder where temp files will be uploaded. | File |
baseURL | 属性 |
public static var baseURL:String
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
运行时版本: | AIR 2.6, Flash Player 10.2 |
The baseURL of Experience Server. Set it once and File APIs use it to upload and download content from it.
boundary | 属性 |
contentStreamPath | 属性 |
contentStreamPath:String
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
运行时版本: | AIR 2.6, Flash Player 10.2 |
TempPath when content is temporarily uploaded. It is only populated when content is uploaded using uploadToTempFromFileReference,uploadToTempFromByteArray. path of the content.
此属性可用作数据绑定的源。修改此属性后,将调度 propertyChange
事件。
实现
public function get contentStreamPath():String
public function set contentStreamPath(value:String):void
contextRoot | 属性 |
public static var contextRoot:String
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
运行时版本: | AIR 2.6, Flash Player 10.2 |
The context root of launchpad application.
created | 属性 |
createdBy | 属性 |
createdBy:String
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
运行时版本: | AIR 2.6, Flash Player 10.2 |
The user ID of user who created file.
此属性可用作数据绑定的源。修改此属性后,将调度 propertyChange
事件。
实现
public function get createdBy():String
public function set createdBy(value:String):void
extendedPropertyMap | 属性 |
extendedPropertyMap:Object
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
运行时版本: | AIR 2.6, Flash Player 10.2 |
Additional key-value attributes whichare persisted along with file. This value is applicable when the file is created using the RepositoryService or LiveCycleContentAssembler service.
此属性可用作数据绑定的源。修改此属性后,将调度 propertyChange
事件。
实现
public function get extendedPropertyMap():Object
public function set extendedPropertyMap(value:Object):void
fileName | 属性 |
id | 属性 |
lastModified | 属性 |
lastModified:Date
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
运行时版本: | AIR 2.6, Flash Player 10.2 |
The last date the content was modified.
此属性可用作数据绑定的源。修改此属性后,将调度 propertyChange
事件。
实现
public function get lastModified():Date
public function set lastModified(value:Date):void
lastModifiedBy | 属性 |
lastModifiedBy:String
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
运行时版本: | AIR 2.6, Flash Player 10.2 |
The user ID of user who last modified the file.
此属性可用作数据绑定的源。修改此属性后,将调度 propertyChange
事件。
实现
public function get lastModifiedBy():String
public function set lastModifiedBy(value:String):void
mimeType | 属性 |
mimeType:String
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
运行时版本: | AIR 2.6, Flash Player 10.2 |
The MIME type of the content.
此属性可用作数据绑定的源。修改此属性后,将调度 propertyChange
事件。
实现
public function get mimeType():String
public function set mimeType(value:String):void
securityManager | 属性 |
public static var securityManager:SecurityManager
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
运行时版本: | AIR 2.6, Flash Player 10.2 |
The User Manager (UM) SecurityManager instance. Set it once and File APIs use it to retrieve ticket and credentials.
tempPath | 属性 |
tempPath:String
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
运行时版本: | AIR 2.6, Flash Player 10.2 |
The temporary path to store the file.
此属性可用作数据绑定的源。修改此属性后,将调度 propertyChange
事件。
实现
public function get tempPath():String
public function set tempPath(value:String):void
File | () | 构造函数 |
public function File()
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
运行时版本: | AIR 2.6, Flash Player 10.2 |
constructor of File.
appendSecurityTicket | () | 方法 |
protected function appendSecurityTicket(url:String, ticket:com.adobe.livecycle.ria.security.api:ITicket):String
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
运行时版本: | AIR 2.6, Flash Player 10.2 |
Appends User Manager (UM) ticket to the URL.
参数
url:String — url string
| |
ticket:com.adobe.livecycle.ria.security.api:ITicket — UM ticket
|
String — ticket appended url
|
deleteFile | () | 方法 |
public function deleteFile():void
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
运行时版本: | AIR 2.6, Flash Player 10.2 |
Deletes the JCR node specified by this instance. It dispatches FileEvent.FILE_DELETED_EVENT on completion of file upload.
相关 API 元素
flash.events.Event.CANCEL
flash.events.HTTPStatusEvent.HTTP_STATUS
flash.events.IOErrorEvent.IO_ERROR
flash.events.Event.OPEN
flash.events.SecurityErrorEvent.SECURITY_ERROR
flash.events.ProgressEvent.PROGRESS
downloadContentToByteArray | () | 方法 |
public function downloadContentToByteArray():void
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
运行时版本: | AIR 2.6, Flash Player 10.2 |
download content of jcr node into ByteArray. It dispatches FileEvent.FILE_DOWNLOAD_COMPLETED_EVENT on completion of file download.
相关 API 元素
flash.events.HTTPStatusEvent.HTTP_STATUS
flash.events.IOErrorEvent.IO_ERROR
flash.events.Event.OPEN
flash.events.SecurityErrorEvent.SECURITY_ERROR
flash.events.ProgressEvent.PROGRESS
downloadContentToFileSystem | () | 方法 |
public function downloadContentToFileSystem(defaultFileName:String = null):void
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
运行时版本: | AIR 2.6, Flash Player 10.2 |
Downloads content of the JCR node to filesytem. It uses FileReference to download content. It dispatches FileEvent.FILE_DOWNLOAD_COMPLETED_EVENT on completion of file download.
参数
defaultFileName:String (default = null ) — default file name by which file is saved on file system. It appears in save dialog box.
|
相关 API 元素
flash.events.Event.CANCEL
flash.events.HTTPStatusEvent.HTTP_STATUS
flash.events.IOErrorEvent.IO_ERROR
flash.events.Event.OPEN
flash.events.SecurityErrorEvent.SECURITY_ERROR
fillMetaData | () | 方法 |
public function fillMetaData():void
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
运行时版本: | AIR 2.6, Flash Player 10.2 |
Fill the current instance with metadata of jcr node. It makes a call to the Experience Server and retrieves all properties and fills in current instance. It dispatches FileEvent.FILE_METADATA_FILLED_EVENT when metadata is populated in instance.
相关 API 元素
flash.events.Event.CANCEL
flash.events.HTTPStatusEvent.HTTP_STATUS
flash.events.IOErrorEvent.IO_ERROR
flash.events.Event.OPEN
flash.events.SecurityErrorEvent.SECURITY_ERROR
flash.events.ProgressEvent.PROGRESS
updateFromByteArray | () | 方法 |
public function updateFromByteArray(fileData:ByteArray, mimeTypeStr:String = null):void
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
运行时版本: | AIR 2.6, Flash Player 10.2 |
Updates content of jcr node specified by this instance from file on ByteArray. It uses FileReference to upload file from filesystem. It doesn't update content of temporary file i.e. File object created from uploadToTempFromFileReference and uploadToTempFromByteArray. It doesn't update content on File instance which is retrieved from repository. To update such instance upload content via uploadToTempFromFileReference or uploadToTempFromByteArray API and update it via LiveCycleContentAssembler or RepositoryService. It dispatches FileEvent.FILE_UPLOAD_COMPLETED_EVENT on completion of file upload.
参数
fileData:ByteArray — the data which will be updated
| |
mimeTypeStr:String (default = null ) — the new mimeType of the data.
|
相关 API 元素
flash.events.HTTPStatusEvent.HTTP_STATUS
flash.events.IOErrorEvent.IO_ERROR
flash.events.Event.OPEN
flash.events.SecurityErrorEvent.SECURITY_ERROR
flash.events.ProgressEvent.PROGRESS
updateFromFileReference | () | 方法 |
public function updateFromFileReference(typeFilter:Array = null):void
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
运行时版本: | AIR 2.6, Flash Player 10.2 |
Updates content of jcr node specified by this instance from file on filesystem. It uses FileReference to upload file from filesystem. It doesn't update content of temporary file i.e. File object created from uploadToTempFromFileReference and uploadToTempFromByteArray. It dispatches FileEvent.FILE_UPLOAD_COMPLETED_EVENT on completion of file upload. It doesn't update content on File instance which is retrieved from repository. To update such instance upload content via uploadToTempFromFileReference or uploadToTempFromByteArray API and update it using the LiveCycleContentAssembler or RepositoryService service.
参数
typeFilter:Array (default = null ) — file type filter to filter files in File select dialog.
|
相关 API 元素
flash.events.Event.CANCEL
flash.events.HTTPStatusEvent.HTTP_STATUS
flash.events.IOErrorEvent.IO_ERROR
flash.events.Event.OPEN
flash.events.SecurityErrorEvent.SECURITY_ERROR
flash.events.ProgressEvent.PROGRESS
uploadToPathFromByteArray | () | 方法 |
public function uploadToPathFromByteArray(parentPath:String, fileData:ByteArray, mimeType:String, fileNameArg:String):void
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
运行时版本: | AIR 2.6, Flash Player 10.2 |
Uploads file to location specified by parenPath on the Experience Server from a ByteArray value. It creates nt:file node at temporary location. The current instance will be consumed by lc-content RepositoryService to move content from temp location to actual location. It dispatches FileEvent.FILE_UPLOAD_COMPLETED_EVENT on completion of file upload.
参数
parentPath:String — path upto parent folder location.
| |
fileData:ByteArray — content of file.
| |
mimeType:String — mimeType of file.
| |
fileNameArg:String — name of the file node that will be created on server.
|
相关 API 元素
flash.events.HTTPStatusEvent.HTTP_STATUS
flash.events.IOErrorEvent.IO_ERROR
flash.events.Event.OPEN
flash.events.SecurityErrorEvent.SECURITY_ERROR
flash.events.ProgressEvent.PROGRESS
uploadToPathFromFileReference | () | 方法 |
public function uploadToPathFromFileReference(parentPath:String, typeFilter:Array = null):void
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
运行时版本: | AIR 2.6, Flash Player 10.2 |
Uploads file on filesystem at path specified by parentPath on the Experience Server. It uses FileReference to upload file to the Experience Server. It dispatches FileEvent.FILE_UPLOAD_COMPLETED_EVENT event when the file upload completes.
参数
parentPath:String — path upto parent folder location.
| |
typeFilter:Array (default = null ) — file type filter to filter files in File select dialog.
|
相关 API 元素
flash.events.Event.CANCEL
flash.events.HTTPStatusEvent.HTTP_STATUS
flash.events.IOErrorEvent.IO_ERROR
flash.events.Event.OPEN
flash.events.SecurityErrorEvent.SECURITY_ERROR
flash.events.ProgressEvent.PROGRESS
uploadToTempFromByteArray | () | 方法 |
public function uploadToTempFromByteArray(fileData:ByteArray, mimeType:String, fileNameArg:String = null):void
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
运行时版本: | AIR 2.6, Flash Player 10.2 |
Uploads file to temporary location to the Experience Server from a ByteArray value. It creates nt:file node at temporary location. The current instance will be consumed by lc-content RepositoryService to move content from temp location to actual location. It dispatches FileEvent.FILE_UPLOAD_COMPLETED_EVENT on completion of file upload.
参数
fileData:ByteArray — content of file.
| |
mimeType:String — mimeType of file.
| |
fileNameArg:String (default = null ) — name of the file node that will be created on server.
|
相关 API 元素
flash.events.Event.CANCEL
flash.events.HTTPStatusEvent.HTTP_STATUS
flash.events.IOErrorEvent.IO_ERROR
flash.events.Event.OPEN
flash.events.SecurityErrorEvent.SECURITY_ERROR
uploadToTempFromFileReference | () | 方法 |
public function uploadToTempFromFileReference(typeFilter:Array = null):void
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
运行时版本: | AIR 2.6, Flash Player 10.2 |
Uploads file on filesystem to temporary location on the Experience Server.It uses FileReference to upload file to the Experience Server. It creates nt:file node at temporary location. The current instance will be consumed by lc-content RepositoryService to move content from temp location to actual location. It dispatches FileEvent.FILE_UPLOAD_COMPLETED_EVENT on completion of file upload.
参数
typeFilter:Array (default = null ) — file type filter to filter files in File select dialog.
|
相关 API 元素
flash.events.Event.CANCEL
flash.events.HTTPStatusEvent.HTTP_STATUS
flash.events.IOErrorEvent.IO_ERROR
flash.events.Event.OPEN
flash.events.SecurityErrorEvent.SECURITY_ERROR
flash.events.ProgressEvent.PROGRESS
NT_FILE | 常量 |
public static const NT_FILE:String = "nt:file"
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
运行时版本: | AIR 2.6, Flash Player 10.2 |
constant representing nt:file
TEMP_FOLDER_NAME | 常量 |
public static const TEMP_FOLDER_NAME:String = "/tmp/uploadFilesTempDir"
语言版本: | ActionScript 3.0 |
产品版本: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
运行时版本: | AIR 2.6, Flash Player 10.2 |
The temporary path of folder where temp files will be uploaded. The default path is /content/uploadFilesTempDir.
Tue Jun 12 2018, 11:04 AM Z