Pakket | com.adobe.livecycle.content |
Klasse | public class File |
Overerving | File EventDispatcher Object |
Implementatie | IManaged |
Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
Runtimeversies: | AIR 2.6, Flash Player 10.2 |
Eigenschap | Gedefinieerd door | ||
---|---|---|---|
baseURL : String [statisch]
The baseURL of Experience Server. | File | ||
constructor : Object
Verwijzing naar het klasseobject of de constructorfunctie van een bepaalde objectinstantie. | Object | ||
contentStreamPath : String
TempPath when content is temporarily uploaded. | File | ||
contextRoot : String [statisch]
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 [statisch]
The User Manager (UM) SecurityManager instance. | File | ||
tempPath : String
The temporary path to store the file. | File |
Eigenschap | Gedefinieerd door | ||
---|---|---|---|
boundary : String [alleen-lezen]
Boundary of multipart request used in multipart binary upload of content. | File |
Methode | Gedefinieerd door | ||
---|---|---|---|
File()
constructor of File. | File | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registreert een gebeurtenislistenerobject bij een object EventDispatcher, zodat de listener een melding van een gebeurtenis ontvangt. | EventDispatcher | ||
Deletes the JCR node specified by this instance. | File | ||
Verzendt een gebeurtenis naar de gebeurtenisstroom. | 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 | ||
Controleert of het object EventDispatcher listeners heeft geregistreerd voor een specifiek type gebeurtenis. | EventDispatcher | ||
Geeft aan of voor een object een opgegeven eigenschap is gedefinieerd. | Object | ||
Geeft aan of een instantie van de klasse Object zich in de prototypeketen van het object bevindt dat als parameter is opgegeven. | Object | ||
Geeft aan of de opgegeven eigenschap bestaat en kan worden opgesomd. | Object | ||
Verwijdert een listener uit het object EventDispatcher. | EventDispatcher | ||
Stelt de beschikbaarheid van een dynamische eigenschap voor lusbewerkingen in. | Object | ||
Geeft de tekenreeksweergave van dit object weer, geformatteerd volgens de locatiespecifieke conventies. | Object | ||
Retourneert een tekenreeksrepresentatie van het opgegeven 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 | ||
Retourneert de primitieve waarde van het opgegeven object. | Object | ||
Controleert of een gebeurtenislistener is geregistreerd bij dit object EventDispatcher of een van de voorouders voor het opgegeven type gebeurtenis. | EventDispatcher |
Methode | Gedefinieerd door | ||
---|---|---|---|
Appends User Manager (UM) ticket to the URL. | File |
Constante | Gedefinieerd door | ||
---|---|---|---|
NT_FILE : String = "nt:file" [statisch]
constant representing nt:file
| File | ||
TEMP_FOLDER_NAME : String = "/tmp/uploadFilesTempDir" [statisch]
The temporary path of folder where temp files will be uploaded. | File |
baseURL | eigenschap |
public static var baseURL:String
Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
Runtimeversies: | 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 | eigenschap |
boundary:String
[alleen-lezen] Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
Runtimeversies: | AIR 2.6, Flash Player 10.2 |
Boundary of multipart request used in multipart binary upload of content.
Implementatie
protected function get boundary():String
contentStreamPath | eigenschap |
contentStreamPath:String
Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
Runtimeversies: | 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.
Deze eigenschap kan als de bron voor gegevensbinding worden gebruikt. Wanneer deze eigenschap wordt gewijzigd, wordt de gebeurtenis propertyChange
verzonden.
Implementatie
public function get contentStreamPath():String
public function set contentStreamPath(value:String):void
contextRoot | eigenschap |
public static var contextRoot:String
Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
Runtimeversies: | AIR 2.6, Flash Player 10.2 |
The context root of launchpad application.
created | eigenschap |
created:Date
Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
Runtimeversies: | AIR 2.6, Flash Player 10.2 |
Date when file is created.
Deze eigenschap kan als de bron voor gegevensbinding worden gebruikt. Wanneer deze eigenschap wordt gewijzigd, wordt de gebeurtenis propertyChange
verzonden.
Implementatie
public function get created():Date
public function set created(value:Date):void
createdBy | eigenschap |
createdBy:String
Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
Runtimeversies: | AIR 2.6, Flash Player 10.2 |
The user ID of user who created file.
Deze eigenschap kan als de bron voor gegevensbinding worden gebruikt. Wanneer deze eigenschap wordt gewijzigd, wordt de gebeurtenis propertyChange
verzonden.
Implementatie
public function get createdBy():String
public function set createdBy(value:String):void
extendedPropertyMap | eigenschap |
extendedPropertyMap:Object
Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
Runtimeversies: | 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.
Deze eigenschap kan als de bron voor gegevensbinding worden gebruikt. Wanneer deze eigenschap wordt gewijzigd, wordt de gebeurtenis propertyChange
verzonden.
Implementatie
public function get extendedPropertyMap():Object
public function set extendedPropertyMap(value:Object):void
fileName | eigenschap |
fileName:String
Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
Runtimeversies: | AIR 2.6, Flash Player 10.2 |
The name of the file.
Deze eigenschap kan als de bron voor gegevensbinding worden gebruikt. Wanneer deze eigenschap wordt gewijzigd, wordt de gebeurtenis propertyChange
verzonden.
Implementatie
public function get fileName():String
public function set fileName(value:String):void
id | eigenschap |
id:String
Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
Runtimeversies: | AIR 2.6, Flash Player 10.2 |
The identifier of the file node.
Deze eigenschap kan als de bron voor gegevensbinding worden gebruikt. Wanneer deze eigenschap wordt gewijzigd, wordt de gebeurtenis propertyChange
verzonden.
Implementatie
public function get id():String
public function set id(value:String):void
lastModified | eigenschap |
lastModified:Date
Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
Runtimeversies: | AIR 2.6, Flash Player 10.2 |
The last date the content was modified.
Deze eigenschap kan als de bron voor gegevensbinding worden gebruikt. Wanneer deze eigenschap wordt gewijzigd, wordt de gebeurtenis propertyChange
verzonden.
Implementatie
public function get lastModified():Date
public function set lastModified(value:Date):void
lastModifiedBy | eigenschap |
lastModifiedBy:String
Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
Runtimeversies: | AIR 2.6, Flash Player 10.2 |
The user ID of user who last modified the file.
Deze eigenschap kan als de bron voor gegevensbinding worden gebruikt. Wanneer deze eigenschap wordt gewijzigd, wordt de gebeurtenis propertyChange
verzonden.
Implementatie
public function get lastModifiedBy():String
public function set lastModifiedBy(value:String):void
mimeType | eigenschap |
mimeType:String
Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
Runtimeversies: | AIR 2.6, Flash Player 10.2 |
The MIME type of the content.
Deze eigenschap kan als de bron voor gegevensbinding worden gebruikt. Wanneer deze eigenschap wordt gewijzigd, wordt de gebeurtenis propertyChange
verzonden.
Implementatie
public function get mimeType():String
public function set mimeType(value:String):void
securityManager | eigenschap |
public static var securityManager:SecurityManager
Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
Runtimeversies: | 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 | eigenschap |
tempPath:String
Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
Runtimeversies: | AIR 2.6, Flash Player 10.2 |
The temporary path to store the file.
Deze eigenschap kan als de bron voor gegevensbinding worden gebruikt. Wanneer deze eigenschap wordt gewijzigd, wordt de gebeurtenis propertyChange
verzonden.
Implementatie
public function get tempPath():String
public function set tempPath(value:String):void
File | () | Constructor |
public function File()
Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
Runtimeversies: | AIR 2.6, Flash Player 10.2 |
constructor of File.
appendSecurityTicket | () | methode |
protected function appendSecurityTicket(url:String, ticket:com.adobe.livecycle.ria.security.api:ITicket):String
Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
Runtimeversies: | AIR 2.6, Flash Player 10.2 |
Appends User Manager (UM) ticket to the URL.
Parameters
url:String — url string
| |
ticket:com.adobe.livecycle.ria.security.api:ITicket — UM ticket
|
String — ticket appended url
|
deleteFile | () | methode |
public function deleteFile():void
Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
Runtimeversies: | 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.
Verwante API-elementen
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 | () | methode |
public function downloadContentToByteArray():void
Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
Runtimeversies: | 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.
Verwante API-elementen
flash.events.HTTPStatusEvent.HTTP_STATUS
flash.events.IOErrorEvent.IO_ERROR
flash.events.Event.OPEN
flash.events.SecurityErrorEvent.SECURITY_ERROR
flash.events.ProgressEvent.PROGRESS
downloadContentToFileSystem | () | methode |
public function downloadContentToFileSystem(defaultFileName:String = null):void
Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
Runtimeversies: | 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.
Parameters
defaultFileName:String (default = null ) — default file name by which file is saved on file system. It appears in save dialog box.
|
Verwante API-elementen
flash.events.Event.CANCEL
flash.events.HTTPStatusEvent.HTTP_STATUS
flash.events.IOErrorEvent.IO_ERROR
flash.events.Event.OPEN
flash.events.SecurityErrorEvent.SECURITY_ERROR
fillMetaData | () | methode |
public function fillMetaData():void
Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
Runtimeversies: | 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.
Verwante API-elementen
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 | () | methode |
public function updateFromByteArray(fileData:ByteArray, mimeTypeStr:String = null):void
Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
Runtimeversies: | 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.
Parameters
fileData:ByteArray — the data which will be updated
| |
mimeTypeStr:String (default = null ) — the new mimeType of the data.
|
Verwante API-elementen
flash.events.HTTPStatusEvent.HTTP_STATUS
flash.events.IOErrorEvent.IO_ERROR
flash.events.Event.OPEN
flash.events.SecurityErrorEvent.SECURITY_ERROR
flash.events.ProgressEvent.PROGRESS
updateFromFileReference | () | methode |
public function updateFromFileReference(typeFilter:Array = null):void
Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
Runtimeversies: | 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.
Parameters
typeFilter:Array (default = null ) — file type filter to filter files in File select dialog.
|
Verwante API-elementen
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 | () | methode |
public function uploadToPathFromByteArray(parentPath:String, fileData:ByteArray, mimeType:String, fileNameArg:String):void
Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
Runtimeversies: | 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.
Parameters
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.
|
Verwante API-elementen
flash.events.HTTPStatusEvent.HTTP_STATUS
flash.events.IOErrorEvent.IO_ERROR
flash.events.Event.OPEN
flash.events.SecurityErrorEvent.SECURITY_ERROR
flash.events.ProgressEvent.PROGRESS
uploadToPathFromFileReference | () | methode |
public function uploadToPathFromFileReference(parentPath:String, typeFilter:Array = null):void
Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
Runtimeversies: | 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.
Parameters
parentPath:String — path upto parent folder location.
| |
typeFilter:Array (default = null ) — file type filter to filter files in File select dialog.
|
Verwante API-elementen
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 | () | methode |
public function uploadToTempFromByteArray(fileData:ByteArray, mimeType:String, fileNameArg:String = null):void
Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
Runtimeversies: | 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.
Parameters
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.
|
Verwante API-elementen
flash.events.Event.CANCEL
flash.events.HTTPStatusEvent.HTTP_STATUS
flash.events.IOErrorEvent.IO_ERROR
flash.events.Event.OPEN
flash.events.SecurityErrorEvent.SECURITY_ERROR
uploadToTempFromFileReference | () | methode |
public function uploadToTempFromFileReference(typeFilter:Array = null):void
Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
Runtimeversies: | 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.
Parameters
typeFilter:Array (default = null ) — file type filter to filter files in File select dialog.
|
Verwante API-elementen
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 | Constante |
public static const NT_FILE:String = "nt:file"
Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
Runtimeversies: | AIR 2.6, Flash Player 10.2 |
constant representing nt:file
TEMP_FOLDER_NAME | Constante |
public static const TEMP_FOLDER_NAME:String = "/tmp/uploadFilesTempDir"
Taalversie: | ActionScript 3.0 |
Productversie: | Adobe Digital Enterprise Platform Experience Services - Content 10 |
Runtimeversies: | AIR 2.6, Flash Player 10.2 |
The temporary path of folder where temp files will be uploaded. The default path is /content/uploadFilesTempDir.
Wed Jun 13 2018, 11:42 AM Z