| Package | com.adobe.rtc.collaboration |
| Class | public class FileSubscriber |
| Inheritance | FileSubscriber mx.core.UIComponent |
| Implements | ISessionSubscriber |
| Subclasses | BinarySubscriber |
See also
| Property | Defined by | ||
|---|---|---|---|
| accessModel : int
The role value required for accessing files associated with this component's group as
specified by
groupName. | FileSubscriber | ||
| connectSession : IConnectSession
The IConnectSession with which this component is associated; it defaults to the first
IConnectSession created in the application.
| FileSubscriber | ||
| groupName : String
Components (pods) are assigned to a group via
groupName; if not specified,
the component is assigned to the default, public group (the room at large). | FileSubscriber | ||
| isSynchronized : Boolean [read-only]
Returns true if the model is synchronized.
| FileSubscriber | ||
| publishModel : int
The role required for this component to publish to the group specified by
groupName. | FileSubscriber | ||
| sharedID : String
Defines the logical location of the component on the service; typically this assigns the
sharedID of the collectionNode
used by the component. | FileSubscriber | ||
| Method | Defined by | ||
|---|---|---|---|
| FileSubscriber | |||
|
close():void
Disposes all listeners to the network and framework classes and
is recommended for proper garbage collection of the component.
| FileSubscriber | ||
|
download(p_fileDescriptor:FileDescriptor):void
Downloads the file specified by the supplied FileDescriptor.
| FileSubscriber | ||
|
Gets the NodeConfiguration on a specific file group.
| FileSubscriber | ||
|
getUserRole(p_userID:String):int
Returns the role of a given user for files, within the group this component is assigned to.
| FileSubscriber | ||
|
setNodeConfiguration(p_nodeConfiguration:NodeConfiguration):void
Sets the NodeConfiguration.
| FileSubscriber | ||
|
setUserRole(p_userID:String, p_userRole:int):void
Sets the role of a given user for subscribing to files within this component's group
specified by
groupName. | FileSubscriber | ||
|
subscribe():void
Subscribes to a particular stream.
| FileSubscriber | ||
| Event | Summary | Defined by | ||
|---|---|---|---|---|
| Dispatched on download completion. | FileSubscriber | |||
| Dispatched on httpStatus. | FileSubscriber | |||
| Dispatched on an IO error. | FileSubscriber | |||
| Dispatched as a download progresses. | FileSubscriber | |||
| Dispatched on a security error. | FileSubscriber | |||
| 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. | FileSubscriber | |||
| accessModel | property |
accessModel:int [read-write]
The role value required for accessing files associated with this component's group as
specified by groupName.
public function get accessModel():int
public function set accessModel(value:int):void
| connectSession | property |
connectSession:IConnectSession [read-write]
The IConnectSession with which this component is associated; it defaults to the first
IConnectSession created in the application. Note that this may only be set once before
subscribe() is called, and re-sessioning of components is not supported.
public function get connectSession():IConnectSession
public function set connectSession(value:IConnectSession):void
| groupName | property |
groupName:String [read-write]
Components (pods) are assigned to a group via groupName; if not specified,
the component is assigned to the default, public group (the room at large). Groups are like separate
conversations within the room, but each conversation could employ one or more pods; for example, one
"conversation" may use a web camera, chat, and whiteboard pod, with each pod using different access
and publish models. Users are members of and can only see components within the group they are assigned.
Room hosts can see all the groups and all the members in those groups.
public function get groupName():String
public function set groupName(value:String):void
| isSynchronized | property |
isSynchronized:Boolean [read-only]Returns true if the model is synchronized.
This property can be used as the source for data binding.
Implementation public function get isSynchronized():Boolean
| publishModel | property |
publishModel:int [read-write]
The role required for this component to publish to the group specified by groupName.
public function get publishModel():int
public function set publishModel(value:int):void
| sharedID | property |
sharedID:String [read-write]
Defines the logical location of the component on the service; typically this assigns the sharedID of the collectionNode
used by the component. sharedIDs should be unique within a room if they're expressing two
unique locations. Note that this can only be assigned once before subscribe() is called. For components
with an id property, sharedID defaults to that value.
public function get sharedID():String
public function set sharedID(value:String):void
| FileSubscriber | () | constructor |
public function FileSubscriber()
| close | () | method |
public function close():voidDisposes all listeners to the network and framework classes and is recommended for proper garbage collection of the component.
| download | () | method |
public function download(p_fileDescriptor:FileDescriptor):voidDownloads the file specified by the supplied FileDescriptor. The User will be prompted to save the file to their file system.
Parametersp_fileDescriptor:FileDescriptor — A FileDescriptor representing the file to download. For details about
accessing a list of files available in the room, see FileManager's APIs.
|
| getNodeConfiguration | () | method |
public function getNodeConfiguration():NodeConfigurationGets the NodeConfiguration on a specific file group.
ReturnsNodeConfiguration |
| getUserRole | () | method |
public function getUserRole(p_userID:String):intReturns the role of a given user for files, within the group this component is assigned to.
Parametersp_userID:String — The user ID of the user whose role we should get.
|
int |
| setNodeConfiguration | () | method |
public function setNodeConfiguration(p_nodeConfiguration:NodeConfiguration):voidSets the NodeConfiguration.
Parametersp_nodeConfiguration:NodeConfiguration — The node Configuration of the file group.
|
| setUserRole | () | method |
public function setUserRole(p_userID:String, p_userRole:int):void
Sets the role of a given user for subscribing to files within this component's group
specified by groupName.
p_userID:String — The user ID of the user whose role should be set.
|
|
p_userRole:int — The role value to assign to the user with this user ID.
|
| subscribe | () | method |
public function subscribe():voidSubscribes to a particular stream.
| complete | event |
| httpStatus | event |
| ioError | event |
| progress | event |
| securityError | event |
| 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/collaboration/FileSubscriber.html