Macromedia flash media server 2-server-side actionscript language reference Manual De Usuario

Descargar
Página de 74
getAdmins()
21
Description
Gets the administrative context for an administrator, including information about the 
specified user’s administrative permissions, the name of the adaptor and virtual host to which 
the user is connected, and whether the user is currently connected to Flash Media Server.
getAdmins()
Availability
Flash Player 6.
Flash Media Server 2.
Usage
getAdmins(adaptorName)
Parameters
adaptorName
  Alternate adaptor, other than 
_defaultRoot_
, on which to find vhost 
administrators. If not specified, 
_defaultRoot_
 is used.
Returns
If the call succeeds, the server sends a reply information object with a 
level
 property of 
status
, a 
code
 property of 
NetConnection.Call.Success
, and a 
data
 property that is an 
array. The 
data
 object has the following properties:
Description
Returns an array of all administrators on Flash Media Server. The returned data has two 
top-level groups: server level administrators and vhost-level administrators. The server-level 
administrators group is a simple list of names. The vhost administrators are subdivided by 
vhost and each vhost contains a list of administrators names.
Property
Description
server_admins
Array; an array of admin names.
admin name
String; name of an administrator.
vhost_admins
Array; an array of vhost names.
vhost
String; name of the virtual host for which the user is an administrator.