Справочник по ActionScript® 3.0 для платформы Adobe® Flash®
Домашняя страница  |  Скрыть список пакетов и классов |  Пакеты  |  Классы  |  Что нового  |  Указатель  |  Приложения  |  Почему по-английски?
Фильтры: Получение данных с сервера...
Получение данных с сервера...
com.adobe.livecycle.content 

File  - AS3 ADEP Content

Пакетcom.adobe.livecycle.content
Классpublic class File
НаследованиеFile Inheritance EventDispatcher Inheritance Object
Реализует IManaged

Язык версии: ActionScript 3.0
Версия продукта: Adobe Digital Enterprise Platform Experience Services - Content 10
Версии среды выполнения: AIR 2.6, Flash Player 10.2

File enables efficient transportation of binary content to and from the Experiece Server. It never stores binary content inside it but has all metadata to store and retrieve binary content to/from server. It has capability to upload file from filesystem or byte array to server. It is Data Services managed class so that any content change is notified. It dispatches FileEvent.FILE_CONTENT_CHANGE_EVENT when content is modified on the Experience Server.



Общедоступные свойства
 СвойствоОпределено
  baseURL : String
[статические] The baseURL of Experience Server.
File
 Inheritedconstructor : 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
Общедоступные методы
 МетодОпределено
  
constructor of File.
File
 Inherited
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
 Inherited
Посылает событие в поток событий.
EventDispatcher
  
download content of jcr node into ByteArray.
File
  
downloadContentToFileSystem(defaultFileName:String = null):void
Downloads content of the JCR node to filesytem.
File
  
Fill the current instance with metadata of jcr node.
File
 Inherited
Проверяет, имеет ли объект EventDispatcher прослушиватели, зарегистрированные для определенного типа события.
EventDispatcher
 Inherited
Показывает, определено ли заданное свойство для объекта.
Object
 Inherited
Показывает, есть ли экземпляр класса Object в цепи прототипов объекта, заданного в качестве параметра.
Object
 Inherited
Показывает наличие заданного свойства и его перечисляемость.
Object
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Удаляет прослушиватель из объекта EventDispatcher.
EventDispatcher
 Inherited
Задает доступность динамического свойства для операций цикла.
Object
 Inherited
Возвращает строковое представление этого объекта, отформатированного в соответствии со стандартами, принятыми для данной локали.
Object
 Inherited
Возвращает строковое представление заданного объекта.
Object
  
updateFromByteArray(fileData:ByteArray, mimeTypeStr:String = null):void
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
  
uploadToPathFromFileReference(parentPath:String, typeFilter:Array = null):void
Uploads file on filesystem at path specified by parentPath on the Experience Server.
File
  
uploadToTempFromByteArray(fileData:ByteArray, mimeType:String, fileNameArg:String = null):void
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
 Inherited
Возвращает элементарное значение заданного объекта.
Object
 Inherited
Проверяет, зарегистрирован ли прослушиватель события для указанного типа события с данным объектом EventDispatcher или любым его предшественником.
EventDispatcher
Защищенные методы
 МетодОпределено
  
Appends User Manager (UM) ticket to the URL.
File
События
 Событие Сводка Определено
 Inherited[многоадресное событие] Отправляется, когда проигрыватель Flash Player или приложение AIR перемещается в фокус операционной системы и становится активным.EventDispatcher
 Inherited[многоадресное событие] Отправляется, когда проигрыватель Flash Player или приложение AIR теряет фокус системы и становится неактивным.EventDispatcher
Общедоступные константы
 КонстантаОпределено
  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

свойство 
boundary:String  [только для чтения]

Язык версии: ActionScript 3.0
Версия продукта: Adobe Digital Enterprise Platform Experience Services - Content 10
Версии среды выполнения: AIR 2.6, Flash Player 10.2

Boundary of multipart request used in multipart binary upload of content.



Реализация
    protected function get boundary():String

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

свойство 
created:Date

Язык версии: ActionScript 3.0
Версия продукта: Adobe Digital Enterprise Platform Experience Services - Content 10
Версии среды выполнения: AIR 2.6, Flash Player 10.2

Date when file is created.

Это свойство можно использовать в качестве источника для связывания данных. При изменении этого свойства отправляется событие propertyChange .



Реализация
    public function get created():Date
    public function set created(value:Date):void

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

свойство 
fileName:String

Язык версии: ActionScript 3.0
Версия продукта: Adobe Digital Enterprise Platform Experience Services - Content 10
Версии среды выполнения: AIR 2.6, Flash Player 10.2

The name of the file.

Это свойство можно использовать в качестве источника для связывания данных. При изменении этого свойства отправляется событие propertyChange .



Реализация
    public function get fileName():String
    public function set fileName(value:String):void

id

свойство 
id:String

Язык версии: ActionScript 3.0
Версия продукта: Adobe Digital Enterprise Platform Experience Services - Content 10
Версии среды выполнения: AIR 2.6, Flash Player 10.2

The identifier of the file node.

Это свойство можно использовать в качестве источника для связывания данных. При изменении этого свойства отправляется событие propertyChange .



Реализация
    public function get id():String
    public function set id(value:String):void

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

com.adobe.livecycle.content.FileEvent.FILE_DELETED_EVENT
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

com.adobe.livecycle.content.FileEvent.FILE_DOWNLOAD_COMPLETED_EVENT
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

com.adobe.livecycle.content.FileEvent.FILE_DOWNLOAD_COMPLETED_EVENT
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

com.adobe.livecycle.content.FileEvent.FILE_METADATA_FILLED_EVENT
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

com.adobe.livecycle.content.FileEvent.FILE_UPLOAD_COMPLETED_EVENT
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

com.adobe.livecycle.content.FileEvent.FILE_UPLOAD_COMPLETED_EVENT
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

com.adobe.livecycle.content.FileEvent.FILE_UPLOAD_COMPLETED_EVENT
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

com.adobe.livecycle.content.FileEvent.FILE_UPLOAD_COMPLETED_EVENT
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

com.adobe.livecycle.content.FileEvent.FILE_UPLOAD_COMPLETED_EVENT
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

com.adobe.livecycle.content.FileEvent.FILE_UPLOAD_COMPLETED_EVENT
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.





[ X ]Почему по-английски?
Содержимое Справочника ActionScript 3.0 отображается на английском языке

Не все части Справочника ActionScript 3.0 переводятся на все языки. Если какой-то текстовый элемент не переведен, он отображается на английском языке. Например, компонент ga.controls.HelpBox не переведен ни на один из языков. Это значит, что в русской версии справки компонент ga.controls.HelpBox будет отображаться на английском языке.