| Package | com.adobe.rtc.util |
| Class | public class RootCollectionNode |
| Inheritance | RootCollectionNode CollectionNode flash.events.EventDispatcher |
NODE_CREATE and NODE_DELETE events.
Note that only one RootCollectionNode may be present in an application,
and that subscribe() must be called on the RootCollectionNode
before use.
| Property | Defined by | ||
|---|---|---|---|
| collectionNames : ArrayCollection [read-only]
Returns a set of names for all the CollectionNodes in the room.
| RootCollectionNode | ||
![]() | connectSession : IConnectSession
The IConnectSession with which this component is associated.
| CollectionNode | |
![]() | isEmpty : Boolean
Determines whether or not the collection is empty, that is, having no nodes
| CollectionNode | |
![]() | isSynchronized : Boolean
Determines whether or not the collection is "up to state" with all previously
stored items in its nodes.
| CollectionNode | |
![]() | nodeNames : Array
Returns the names of all the nodes within this collection.
| CollectionNode | |
![]() | sharedID : String
The
sharedID is the logical address of this collection
within the room and must therefore be unique from all other CollectionNode names. | CollectionNode | |
![]() | userRoles : Object
The complete set of roles for this collection described as {userID:role} pairs.
| CollectionNode | |
| Method | Defined by | ||
|---|---|---|---|
| RootCollectionNode | |||
![]() |
canUserConfigure(p_userID:String, p_nodeName:String = null):Boolean
Determines whether a given user is allowed to configue this collection.
| CollectionNode | |
![]() |
canUserPublish(p_userID:String, p_nodeName:String):Boolean
Determines whether a given user is allowed to publish to a given node in
this collection.
| CollectionNode | |
![]() |
canUserSubscribe(p_userID:String, p_nodeName:String = null):Boolean
Determines whether a given user is allowed to subscribe to this entire collection
or a node within it.
| CollectionNode | |
![]() |
createNode(p_nodeName:String, p_nodeConfiguration:NodeConfiguration = null):void
Creates a new node in this collection; they are either optionally configured when
created or accept the default configuration.
| CollectionNode | |
![]() |
getExplicitUserRole(p_userID:String, p_nodeName:String = null):int
Gets the role of a given user for a node within this collection or the
collection itself.
| CollectionNode | |
![]() |
getExplicitUserRoles(p_nodeName:String = null):Object
Gets the roles explicitly set for a node within this collection.
| CollectionNode | |
![]() |
getNodeConfiguration(p_nodeName:String):NodeConfiguration
Returns the NodeConfiguration options for a given node in this CollectionNode.
| CollectionNode | |
![]() |
getUserRole(p_userID:String, p_nodeName:String = null):int
Gets the role of a given user for this collection or a node within it.
| CollectionNode | |
![]() |
isNodeDefined(p_nodeName:String):Boolean
Whether the given node exists in this CollectionNode.
| CollectionNode | |
![]() |
publishItem(p_messageItem:MessageItem, p_overWrite:Boolean = false):void
Publishes a MessageItem.
| CollectionNode | |
![]() |
removeNode(p_nodeName:String):void
Removes the given node from this collection.
| CollectionNode | |
![]() |
retractItem(p_nodeName:String, p_itemID:String = null):void
Retracts the indicated item.
| CollectionNode | |
![]() |
setNodeConfiguration(p_nodeName:String, p_nodeConfiguration:NodeConfiguration):void
Configures a node in this collection and replaces the existing NodeConfiguration.
| CollectionNode | |
![]() |
setUserRole(p_userID:String, p_role:int, p_nodeName:String = null):void
Gives a specific user a specific role level for this entire collection or optionally
a specified node within it.
| CollectionNode | |
|
subscribe():void
Connects the RootCollectionNode to the service; it is required before using
the component.
| RootCollectionNode | ||
![]() |
unsubscribe():void
Disconnects this CollectionNode from the server.
| CollectionNode | |
| Event | Summary | Defined by | ||
|---|---|---|---|---|
![]() | Dispatched when a node within the collection has a change in its configuration (typically, its access-model). | CollectionNode | ||
![]() | Dispatched when a node within the collection receives an item. | CollectionNode | ||
![]() | Dispatched when a node within the collection retracts an item. | CollectionNode | ||
![]() |
Dispatched when the current user's role changes for the
collectionNode as a whole and not nodes within it. | CollectionNode | ||
| Dispatched when a new CollectionNode is added to the room. | RootCollectionNode | |||
![]() | Dispatched when a node is created within the collection. | CollectionNode | ||
| Dispatched when a CollectionNode is removed from the room. | RootCollectionNode | |||
![]() | Dispatched when a node is deleted within the collection. | CollectionNode | ||
![]() | Dispatched when the collection has been disconnected from the server and is in the process of reconnecting and re-subscribing. | CollectionNode | ||
![]() | Dispatched when the collection has fully received all nodes and items stored up until the present time thereby becoming synchronized as well as when the collection becomes disconnected from (and thus "out of sync" with) the room's messaging bus. | CollectionNode | ||
| Dispatched when a user's role on the room root changes. | RootCollectionNode | |||
![]() | Dispatched when the collection or a node within the collection, has a change in roles for any user. | CollectionNode | ||
| collectionNames | property |
collectionNames:ArrayCollection [read-only]Returns a set of names for all the CollectionNodes in the room.
Implementation public function get collectionNames():ArrayCollection
| RootCollectionNode | () | constructor |
public function RootCollectionNode()
| subscribe | () | method |
public override function subscribe():voidConnects the RootCollectionNode to the service; it is required before using the component.
| nodeCreate | event |
com.adobe.rtc.events.CollectionNodeEvent
Dispatched when a new CollectionNode is added to the room.
| nodeDelete | event |
com.adobe.rtc.events.CollectionNodeEvent
Dispatched when a CollectionNode is removed from the room.
| userRoleChange | event |
com.adobe.rtc.events.CollectionNodeEvent
Dispatched when a user's role on the room root changes.
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/util/RootCollectionNode.html