| Pakiet | com.adobe.livecycle.content |
| Klasa | public class File |
| Dziedziczenie | File EventDispatcher Object |
| Implementuje | IManaged |
| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
| Wersje środowiska wykonawczego: | AIR 2.6, Flash Player 10.2 |
| Właściwość | Zdefiniowane przez | ||
|---|---|---|---|
| baseURL : String [statyczny]
The baseURL of Experience Server. | File | ||
![]() | constructor : Object
Odwołanie do obiektu klasy lub funkcji konstruktora, dotyczące danej instancji obiektu. | Object | |
| contentStreamPath : String
TempPath when content is temporarily uploaded. | File | ||
| contextRoot : String [statyczny]
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 [statyczny]
The User Manager (UM) SecurityManager instance. | File | ||
| tempPath : String
The temporary path to store the file. | File | ||
| Właściwość | Zdefiniowane przez | ||
|---|---|---|---|
| boundary : String [tylko do odczytu]
Boundary of multipart request used in multipart binary upload of content. | File | ||
| Metoda | Zdefiniowane przez | ||
|---|---|---|---|
File()
constructor of File. | File | ||
![]() | addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Rejestruje obiekt detektora zdarzeń w obiekcie EventDispatcher, dzięki czemu detektor będzie otrzymywał powiadomienia o zdarzeniu. | EventDispatcher | |
Deletes the JCR node specified by this instance. | File | ||
![]() |
Wywołuje zdarzenie, tj. kieruje je do przepływu zdarzeń. | 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 | ||
![]() |
Sprawdza, czy obiekt EventDispatcher zawiera jakiekolwiek detektory zarejestrowane dla konkretnego typu zdarzeń. | EventDispatcher | |
![]() |
Wskazuje, czy dla obiektu zdefiniowano określoną właściwość. | Object | |
![]() |
Wskazuje, czy instancja klasy Object należy do łańcucha prototypów obiektu określonego jako parametr. | Object | |
![]() |
Wskazuje, czy określona właściwość istnieje i jest przeliczalna. | Object | |
![]() |
Usuwa detektor z obiektu EventDispatcher. | EventDispatcher | |
![]() |
Ustawia dostępność właściwości dynamicznej używanej w pętlach. | Object | |
![]() |
Zwraca ciąg reprezentujący obiekt — sformatowany zgodnie z konwencjami właściwymi dla ustawień regionalnych. | Object | |
![]() |
Zwraca ciąg reprezentujący określony obiekt. | 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 | ||
![]() |
Zwraca pierwotną wartość dla określonego obiektu. | Object | |
![]() |
Sprawdza, czy detektor zdarzeń określonego typu jest zarejestrowany w tym obiekcie EventDispatcher lub jego elementach macierzystych. | EventDispatcher | |
| Metoda | Zdefiniowane przez | ||
|---|---|---|---|
Appends User Manager (UM) ticket to the URL. | File | ||
| Stała | Zdefiniowane przez | ||
|---|---|---|---|
| NT_FILE : String = "nt:file" [statyczny]
constant representing nt:file
| File | ||
| TEMP_FOLDER_NAME : String = "/tmp/uploadFilesTempDir" [statyczny]
The temporary path of folder where temp files will be uploaded. | File | ||
baseURL | właściwość |
public static var baseURL:String| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
| Wersje środowiska wykonawczego: | 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 | właściwość |
boundary:String [tylko do odczytu] | Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
| Wersje środowiska wykonawczego: | AIR 2.6, Flash Player 10.2 |
Boundary of multipart request used in multipart binary upload of content.
Implementacja
protected function get boundary():StringcontentStreamPath | właściwość |
contentStreamPath:String| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
| Wersje środowiska wykonawczego: | 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.
Ta właściwość może być używana jako źródło dla tworzenia powiązań danych. Jeśli ta właściwość zostanie zmodyfikowana, zostanie wywołane zdarzenie propertyChange .
Implementacja
public function get contentStreamPath():String public function set contentStreamPath(value:String):voidcontextRoot | właściwość |
public static var contextRoot:String| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
| Wersje środowiska wykonawczego: | AIR 2.6, Flash Player 10.2 |
The context root of launchpad application.
created | właściwość |
created:Date| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
| Wersje środowiska wykonawczego: | AIR 2.6, Flash Player 10.2 |
Date when file is created.
Ta właściwość może być używana jako źródło dla tworzenia powiązań danych. Jeśli ta właściwość zostanie zmodyfikowana, zostanie wywołane zdarzenie propertyChange .
Implementacja
public function get created():Date public function set created(value:Date):voidcreatedBy | właściwość |
createdBy:String| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
| Wersje środowiska wykonawczego: | AIR 2.6, Flash Player 10.2 |
The user ID of user who created file.
Ta właściwość może być używana jako źródło dla tworzenia powiązań danych. Jeśli ta właściwość zostanie zmodyfikowana, zostanie wywołane zdarzenie propertyChange .
Implementacja
public function get createdBy():String public function set createdBy(value:String):voidextendedPropertyMap | właściwość |
extendedPropertyMap:Object| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
| Wersje środowiska wykonawczego: | 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.
Ta właściwość może być używana jako źródło dla tworzenia powiązań danych. Jeśli ta właściwość zostanie zmodyfikowana, zostanie wywołane zdarzenie propertyChange .
Implementacja
public function get extendedPropertyMap():Object public function set extendedPropertyMap(value:Object):voidfileName | właściwość |
fileName:String| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
| Wersje środowiska wykonawczego: | AIR 2.6, Flash Player 10.2 |
The name of the file.
Ta właściwość może być używana jako źródło dla tworzenia powiązań danych. Jeśli ta właściwość zostanie zmodyfikowana, zostanie wywołane zdarzenie propertyChange .
Implementacja
public function get fileName():String public function set fileName(value:String):voidid | właściwość |
id:String| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
| Wersje środowiska wykonawczego: | AIR 2.6, Flash Player 10.2 |
The identifier of the file node.
Ta właściwość może być używana jako źródło dla tworzenia powiązań danych. Jeśli ta właściwość zostanie zmodyfikowana, zostanie wywołane zdarzenie propertyChange .
Implementacja
public function get id():String public function set id(value:String):voidlastModified | właściwość |
lastModified:Date| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
| Wersje środowiska wykonawczego: | AIR 2.6, Flash Player 10.2 |
The last date the content was modified.
Ta właściwość może być używana jako źródło dla tworzenia powiązań danych. Jeśli ta właściwość zostanie zmodyfikowana, zostanie wywołane zdarzenie propertyChange .
Implementacja
public function get lastModified():Date public function set lastModified(value:Date):voidlastModifiedBy | właściwość |
lastModifiedBy:String| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
| Wersje środowiska wykonawczego: | AIR 2.6, Flash Player 10.2 |
The user ID of user who last modified the file.
Ta właściwość może być używana jako źródło dla tworzenia powiązań danych. Jeśli ta właściwość zostanie zmodyfikowana, zostanie wywołane zdarzenie propertyChange .
Implementacja
public function get lastModifiedBy():String public function set lastModifiedBy(value:String):voidmimeType | właściwość |
mimeType:String| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
| Wersje środowiska wykonawczego: | AIR 2.6, Flash Player 10.2 |
The MIME type of the content.
Ta właściwość może być używana jako źródło dla tworzenia powiązań danych. Jeśli ta właściwość zostanie zmodyfikowana, zostanie wywołane zdarzenie propertyChange .
Implementacja
public function get mimeType():String public function set mimeType(value:String):voidsecurityManager | właściwość |
public static var securityManager:SecurityManager| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
| Wersje środowiska wykonawczego: | 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 | właściwość |
tempPath:String| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
| Wersje środowiska wykonawczego: | AIR 2.6, Flash Player 10.2 |
The temporary path to store the file.
Ta właściwość może być używana jako źródło dla tworzenia powiązań danych. Jeśli ta właściwość zostanie zmodyfikowana, zostanie wywołane zdarzenie propertyChange .
Implementacja
public function get tempPath():String public function set tempPath(value:String):voidFile | () | Konstruktor |
public function File()| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
| Wersje środowiska wykonawczego: | AIR 2.6, Flash Player 10.2 |
constructor of File.
appendSecurityTicket | () | metoda |
protected function appendSecurityTicket(url:String, ticket:com.adobe.livecycle.ria.security.api:ITicket):String| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
| Wersje środowiska wykonawczego: | AIR 2.6, Flash Player 10.2 |
Appends User Manager (UM) ticket to the URL.
Parametry
url:String — url string
| |
ticket:com.adobe.livecycle.ria.security.api:ITicket — UM ticket
|
String — ticket appended url
|
deleteFile | () | metoda |
public function deleteFile():void| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
| Wersje środowiska wykonawczego: | 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.
Powiązane elementy interfejsu 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 | () | metoda |
public function downloadContentToByteArray():void| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
| Wersje środowiska wykonawczego: | 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.
Powiązane elementy interfejsu 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 | () | metoda |
public function downloadContentToFileSystem(defaultFileName:String = null):void| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
| Wersje środowiska wykonawczego: | 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.
Parametry
defaultFileName:String (default = null) — default file name by which file is saved on file system. It appears in save dialog box.
|
Powiązane elementy interfejsu 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 | () | metoda |
public function fillMetaData():void| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
| Wersje środowiska wykonawczego: | 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.
Powiązane elementy interfejsu 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 | () | metoda |
public function updateFromByteArray(fileData:ByteArray, mimeTypeStr:String = null):void| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
| Wersje środowiska wykonawczego: | 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.
Parametry
fileData:ByteArray — the data which will be updated
| |
mimeTypeStr:String (default = null) — the new mimeType of the data.
|
Powiązane elementy interfejsu 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 | () | metoda |
public function updateFromFileReference(typeFilter:Array = null):void| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
| Wersje środowiska wykonawczego: | 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.
Parametry
typeFilter:Array (default = null) — file type filter to filter files in File select dialog.
|
Powiązane elementy interfejsu 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 | () | metoda |
public function uploadToPathFromByteArray(parentPath:String, fileData:ByteArray, mimeType:String, fileNameArg:String):void| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
| Wersje środowiska wykonawczego: | 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.
Parametry
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.
|
Powiązane elementy interfejsu 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 | () | metoda |
public function uploadToPathFromFileReference(parentPath:String, typeFilter:Array = null):void| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
| Wersje środowiska wykonawczego: | 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.
Parametry
parentPath:String — path upto parent folder location.
| |
typeFilter:Array (default = null) — file type filter to filter files in File select dialog.
|
Powiązane elementy interfejsu 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 | () | metoda |
public function uploadToTempFromByteArray(fileData:ByteArray, mimeType:String, fileNameArg:String = null):void| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
| Wersje środowiska wykonawczego: | 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.
Parametry
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.
|
Powiązane elementy interfejsu 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 | () | metoda |
public function uploadToTempFromFileReference(typeFilter:Array = null):void| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
| Wersje środowiska wykonawczego: | 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.
Parametry
typeFilter:Array (default = null) — file type filter to filter files in File select dialog.
|
Powiązane elementy interfejsu 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 | Stała |
public static const NT_FILE:String = "nt:file"| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
| Wersje środowiska wykonawczego: | AIR 2.6, Flash Player 10.2 |
constant representing nt:file
TEMP_FOLDER_NAME | Stała |
public static const TEMP_FOLDER_NAME:String = "/tmp/uploadFilesTempDir"| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
| Wersje środowiska wykonawczego: | 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, 12:06 PM Z
Ukryj dziedziczone właściwości publiczne
Pokaż dziedziczone właściwości publiczne