Packagecom.adobe.rtc.messaging
Classpublic class UserRoles

UserRoles is a class for holding the constant values for standard user roles. Roles are all stored as integers. Note that it is possible to set roles not listed here both in NodeConfigurations and the various roles functions on CollectionNode and UserManager.

See also

com.adobe.rtc.sharedModel.CollectionNode
com.adobe.rtc.messaging.NodeConfiguration
com.adobe.rtc.sharedManagers.UserManager


Public Constants
 ConstantDefined by
  LOBBY : int = 5
[static] LOBBY can only subscribe to collections such as the ones used for knocking or for features in the lobby.
UserRoles
  OWNER : int = 100
[static] OWNER can create, configure, and delete nodes, as well as publish and subscribe.
UserRoles
  PUBLISHER : int = 50
[static] PUBLISHER can publish and subscribe to most nodes but cannot create, delete or configure nodes.
UserRoles
  VIEWER : int = 10
[static] VIEWER can subscribe to most nodes but cannot publish or configure.
UserRoles
Constant detail
LOBBYconstant
public static const LOBBY:int = 5

LOBBY can only subscribe to collections such as the ones used for knocking or for features in the lobby.

OWNERconstant 
public static const OWNER:int = 100

OWNER can create, configure, and delete nodes, as well as publish and subscribe. The OWNER is typically the person who created the room.

PUBLISHERconstant 
public static const PUBLISHER:int = 50

PUBLISHER can publish and subscribe to most nodes but cannot create, delete or configure nodes.

VIEWERconstant 
public static const VIEWER:int = 10

VIEWER can subscribe to most nodes but cannot publish or configure. It corresponds to "NONE" in XEP-60.





 

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/messaging/UserRoles.html