| Package | com.adobe.rtc.pods |
| Class | public class FileShare |
| Inheritance | FileShare mx.core.UIComponent |
| Implements | ISessionSubscriber |
Users with a viewer role or greater are able to download, and only users with a publisher role or greater may upload a file.
See also
| Property | Defined by | ||
|---|---|---|---|
| clearUponSessionEnd : Boolean = false
Specifies whether files in the pod should be deleted as the session ends.
| FileShare | ||
| connectSession : IConnectSession
The IConnectSession with which this component is associated.
| FileShare | ||
| fileGrid : DataGrid [read-only]
Provides a reference to the grid display of files.
| FileShare | ||
| isSynchronized : Boolean [read-only]
Returns true if the component is synchronized; otherwise, false.
| FileShare | ||
| sharedID : String
The
sharedID corresponds to the groupName of the FilePublisher
and FileSubscriber used in this component. | FileShare | ||
| useSSL : Boolean
Specifies whether or not to use SSL in uploading and downloading files.
| FileShare | ||
| Method | Defined by | ||
|---|---|---|---|
| FileShare | |||
|
amIUploadingFile():Boolean
Determines whether or not the current user is uploading a file.
| FileShare | ||
|
cancelButtonToolTipChanger(event:ToolTipEvent):void
| FileShare | ||
|
cancelFileUpload():void
Cancels file upload.
| FileShare | ||
|
cancelUploadSelection(p_event:MouseEvent = null):void
Cancels the pending upload.
| FileShare | ||
|
close():void
Disposes all listeners to the network and framework classes.
| FileShare | ||
|
deleteSelection(p_event:MouseEvent = null):void
Causes the pod to begin deleting all selected files in the display grid.
| FileShare | ||
|
downloadSelection(p_event:MouseEvent = null):void
Causes the pod to begin downloading all selected files in the display grid.
| FileShare | ||
|
getUserRole(p_userID:String):int
Returns the role of a given user for files that are within this component's assigned group.
| FileShare | ||
|
renameSelection(p_event:MouseEvent = null):void
Causes the pod to rename the selected file in the display grid.
| FileShare | ||
|
setUserRole(p_userID:String, p_userRole:int):void
Sets the role of a given user for files that are within this component's assigned group.
| FileShare | ||
|
subscribe():void
Tells the component to begin synchronizing with the service.
| FileShare | ||
|
uploadFileReference(p_fileReference:FileReference):void
Uploads a
fileReference to the pod. | FileShare | ||
|
uploadSelection(p_event:MouseEvent = null):void
Causes the pod to prompt the user to browse for a file to upload.
| FileShare | ||
| Event | Summary | Defined by | ||
|---|---|---|---|---|
| Dispatched when the component either loses its connection to the session or regains it and has finished re-synchronizing itself to the rest of the room. | FileShare | |||
| clearUponSessionEnd | property |
public var clearUponSessionEnd:Boolean = falseSpecifies whether files in the pod should be deleted as the session ends.
The default value is false.
| connectSession | property |
connectSession:IConnectSession [read-write]
The IConnectSession with which this component is associated.
Note that this may only be set once before subscribe()
is called; re-sessioning of components is not supported.
Defaults to the first IConnectSession created in the application.
public function get connectSession():IConnectSession
public function set connectSession(value:IConnectSession):void
| fileGrid | property |
fileGrid:DataGrid [read-only]Provides a reference to the grid display of files.
Implementation public function get fileGrid():DataGrid
| isSynchronized | property |
isSynchronized:Boolean [read-only]Returns true if the component is synchronized; otherwise, false.
This property can be used as the source for data binding.
Implementation public function get isSynchronized():Boolean
| sharedID | property |
sharedID:String [read-write]
The sharedID corresponds to the groupName of the FilePublisher
and FileSubscriber used in this component. If not specified
explicitly, the pod's sharedID is used.
public function get sharedID():String
public function set sharedID(value:String):void
| useSSL | property |
useSSL:Boolean [read-write]Specifies whether or not to use SSL in uploading and downloading files.
Implementation public function get useSSL():Boolean
public function set useSSL(value:Boolean):void
| FileShare | () | constructor |
public function FileShare()
| amIUploadingFile | () | method |
public function amIUploadingFile():BooleanDetermines whether or not the current user is uploading a file.
ReturnsBoolean |
| cancelButtonToolTipChanger | () | method |
public function cancelButtonToolTipChanger(event:ToolTipEvent):voidParameters
event:ToolTipEvent |
| cancelFileUpload | () | method |
public function cancelFileUpload():voidCancels file upload.
| cancelUploadSelection | () | method |
public function cancelUploadSelection(p_event:MouseEvent = null):voidCancels the pending upload.
Parametersp_event:MouseEvent (default = null) |
| close | () | method |
public function close():voidDisposes all listeners to the network and framework classes. Recommended for proper garbage collection of the component.
| deleteSelection | () | method |
public function deleteSelection(p_event:MouseEvent = null):voidCauses the pod to begin deleting all selected files in the display grid.
Parametersp_event:MouseEvent (default = null) |
| downloadSelection | () | method |
public function downloadSelection(p_event:MouseEvent = null):voidCauses the pod to begin downloading all selected files in the display grid.
Parametersp_event:MouseEvent (default = null) |
| getUserRole | () | method |
public function getUserRole(p_userID:String):intReturns the role of a given user for files that are within this component's assigned group.
Parametersp_userID:String — The user ID for the user being queried.
|
int |
| renameSelection | () | method |
public function renameSelection(p_event:MouseEvent = null):voidCauses the pod to rename the selected file in the display grid.
Parametersp_event:MouseEvent (default = null) |
| setUserRole | () | method |
public function setUserRole(p_userID:String, p_userRole:int):voidSets the role of a given user for files that are within this component's assigned group.
Parametersp_userID:String — The role value to set on the specified user.
|
|
p_userRole:int — The ID of the user whose role should be set.
|
| subscribe | () | method |
public function subscribe():void
Tells the component to begin synchronizing with the service.
For UIComponent-based components such as this one,
subscribe() is called automatically upon being added to the displayList.
For "headless" components, this method must be called explicitly.
| uploadFileReference | () | method |
public function uploadFileReference(p_fileReference:FileReference):void
Uploads a fileReference to the pod.
p_fileReference:FileReference |
| uploadSelection | () | method |
public function uploadSelection(p_event:MouseEvent = null):voidCauses the pod to prompt the user to browse for a file to upload.
Parametersp_event:MouseEvent (default = null) |
| synchronizationChange | event |
com.adobe.rtc.events.CollectionNodeEvent
Dispatched when the component either loses its connection to the session or regains it and has finished re-synchronizing itself to the rest of the room.
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/labs/acrobatcom/com/adobe/rtc/pods/FileShare.html