Class Accessor.DropBox
A class which provides functionality for working with files. Use
HTTPFabricConnection#createFilespaceAccessor to create a
new accessor.
Defined in: <D:\Programs\Neeve\Projects\NeeveBuild16\stjsapi/src/main/webapp/js\accessor\DropBox.js>.
Constructor Attributes | Constructor Name and Description |
---|---|
Accessor.DropBox(fabricConnection)
Creates a dropbox accessor for managing files in dropbox
|
Method Attributes | Method Name and Description |
---|---|
<inner> void |
downloadAFile(name, path)
This method downloads a file from dropbox.
|
<inner> void |
downloadAFileDragOut(name, path, Object)
This method provides downloading functionality when user uses drag out approach
Should be used only for drag out scenario.
|
<inner> void |
getFolderContentURL(path)
This method provides URL for getting content from provided path.
|
<inner> void |
getUploadingURL(path)
This method provides URL for uploading API.
|
<inner> void |
removeAFile(path, cb_success, cb_fail)
This method removes a file from dropbox.
|
<inner> void |
uploadAFile(uploadingParam, cb_onUploadProgress, cb_onUploadFinish, cb_onUploadError, cb_onUploadAbort)
This method uploads a file to dropbox
|
Class Detail
Accessor.DropBox(fabricConnection)
Creates a dropbox accessor for managing files in dropbox
- Parameters:
- {HTTPFabricConnection} fabricConnection
- The connection for which this dropbox accessor is created
Method Detail
<inner>
downloadAFile(name, path)
This method downloads a file from dropbox.
- Parameters:
- {String} name
- name of file
- {String} path
- The file location
<inner>
downloadAFileDragOut(name, path, Object)
This method provides downloading functionality when user uses drag out approach
Should be used only for drag out scenario.
If you need to download the file in other cases, use downloadAFile method
- Parameters:
- {String} name
- name of file
- {String} path
- The file location
- {Event} Object
- Event that was raised during drag out operation.
<inner>
getFolderContentURL(path)
This method provides URL for getting content from provided path.
- Parameters:
- {String} path
- The file location
<inner>
getUploadingURL(path)
This method provides URL for uploading API.
- Parameters:
- {String} path
- The file location
<inner>
removeAFile(path, cb_success, cb_fail)
This method removes a file from dropbox.
- Parameters:
- {String} path
- The file location
- {Function} cb_success
- Callback function that is called when file is removed without errors
- {Function} cb_fail
- Callback function that is called when some error occurs
<inner>
uploadAFile(uploadingParam, cb_onUploadProgress, cb_onUploadFinish, cb_onUploadError, cb_onUploadAbort)
This method uploads a file to dropbox
- Parameters:
- {Object} uploadingParam
- Object with properties that initiates uploading
- {Function} cb_onUploadProgress
- The callback function called during uploading to provide information about current status.
- {Function} cb_onUploadFinish
- The callback function called when uploading is finished.
- cb_onUploadError
- cb_onUploadAbort