C# Class OpenSim.ApplicationPlugins.RemoteController.RemoteAdminPlugin

Inheritance: IApplicationPlugin
Mostrar archivo Open project: N3X15/VoxelSim

Public Methods

Method Description
Dispose ( ) : void
Initialise ( ) : void
Initialise ( OpenSimBase openSim ) : void
PostInitialise ( ) : void
XmlRpcAccessListAdd ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse
XmlRpcAccessListClear ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse
XmlRpcAccessListList ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse
XmlRpcAccessListRemove ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse
XmlRpcAlertMethod ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse
XmlRpcCloseRegionMethod ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse XmlRpcCloseRegionMethod takes the following XMLRPC parameters parameter namedescription password admin password as set in OpenSim.ini region_name desired region name region_id (optional) desired region UUID XmlRpcShutdownRegionMethod returns namedescription success true or false region_name the region name if success is true error error message if success is false
XmlRpcConsoleCommandMethod ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse
XmlRpcCreateRegionMethod ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse XmlRpcCreateRegionMethod takes the following XMLRPC parameters parameter namedescription password admin password as set in OpenSim.ini region_name desired region name region_id (optional) desired region UUID region_x desired region X coordinate (integer) region_y desired region Y coordinate (integer) estate_owner_first firstname of estate owner (formerly region master) (required if new estate is being created, optional otherwise) estate_owner_last lastname of estate owner (formerly region master) (required if new estate is being created, optional otherwise) estate_owner_uuid explicit UUID to use for estate owner (optional) listen_ip internal IP address (dotted quad) listen_port internal port (integer) external_address external IP address persist if true, persist the region info ('true' or 'false') public if true, the region is public ('true' or 'false') (optional, default: true) enable_voice if true, enable voice on all parcels, ('true' or 'false') (optional, default: false) estate_name the name of the estate to join (or to create if it doesn't already exist) region_file The name of the file to persist the region specifications to. If omitted, the region_file_template setting from OpenSim.ini will be used. (optional) XmlRpcCreateRegionMethod returns namedescription success true or false error error message if success is false region_uuid UUID of the newly created region region_name name of the newly created region
XmlRpcCreateUserMethod ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse XmlRpcCreateUserMethod takes the following XMLRPC parameters parameter namedescription password admin password as set in OpenSim.ini user_firstname avatar's first name user_lastname avatar's last name user_password avatar's password user_email email of the avatar's owner (optional) start_region_x avatar's start region coordinates, X value start_region_y avatar's start region coordinates, Y value XmlRpcCreateUserMethod returns namedescription success true or false error error message if success is false avatar_uuid UUID of the newly created avatar account; UUID.Zero if failed.
XmlRpcDeleteRegionMethod ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse XmlRpcDeleteRegionMethod takes the following XMLRPC parameters parameter namedescription password admin password as set in OpenSim.ini region_name desired region name region_id (optional) desired region UUID XmlRpcDeleteRegionMethod returns namedescription success true or false error error message if success is false
XmlRpcLoadHeightmapMethod ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse
XmlRpcLoadOARMethod ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse XmlRpcLoadOARMethod takes the following XMLRPC parameters parameter namedescription password admin password as set in OpenSim.ini filename file name of the OAR file region_uuid UUID of the region region_name region name region_uuid takes precedence over region_name if both are present; one of both must be present. XmlRpcLoadOARMethod returns namedescription success true or false error error message if success is false
XmlRpcLoadXMLMethod ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse
XmlRpcModifyRegionMethod ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse XmlRpcModifyRegionMethod takes the following XMLRPC parameters parameter namedescription password admin password as set in OpenSim.ini region_name desired region name region_id (optional) desired region UUID public if true, set the region to public ('true' or 'false'), else to private enable_voice if true, enable voice on all parcels of the region, else disable XmlRpcModifyRegionMethod returns namedescription success true or false error error message if success is false
XmlRpcRegionQueryMethod ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse
XmlRpcRestartMethod ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse
XmlRpcSaveOARMethod ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse XmlRpcSaveOARMethod takes the following XMLRPC parameters parameter namedescription password admin password as set in OpenSim.ini filename file name for the OAR file region_uuid UUID of the region region_name region name region_uuid takes precedence over region_name if both are present; one of both must be present. XmlRpcLoadOARMethod returns namedescription success true or false error error message if success is false
XmlRpcSaveXMLMethod ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse
XmlRpcShutdownMethod ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse
XmlRpcUpdateUserAccountMethod ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse XmlRpcUpdateUserAccountMethod takes the following XMLRPC parameters (changeable ones are optional) parameter namedescription password admin password as set in OpenSim.ini user_firstname avatar's first name (cannot be changed) user_lastname avatar's last name (cannot be changed) user_password avatar's password (changeable) start_region_x avatar's start region coordinates, X value (changeable) start_region_y avatar's start region coordinates, Y value (changeable) about_real_world (not implemented yet) "about" text of avatar owner (changeable) about_virtual_world (not implemented yet) "about" text of avatar (changeable) XmlRpcCreateUserMethod returns namedescription success true or false error error message if success is false avatar_uuid UUID of the updated avatar account; UUID.Zero if failed.
XmlRpcUserExistsMethod ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse XmlRpcUserExistsMethod takes the following XMLRPC parameters parameter namedescription password admin password as set in OpenSim.ini user_firstname avatar's first name user_lastname avatar's last name XmlRpcCreateUserMethod returns namedescription user_firstname avatar's first name user_lastname avatar's last name user_lastlogin avatar's last login time (secs since UNIX epoch) success true or false error error message if success is false

Private Methods

Method Description
ChangeUserPassword ( string firstName, string lastName, string password ) : bool

Change password

CheckIntegerParams ( Nwc.XmlRpc.XmlRpcRequest request, string param ) : void
CheckStringParameters ( Nwc.XmlRpc.XmlRpcRequest request, string param ) : void
CopyInventoryFolders ( UUID destination, UUID source, AssetType assetType, UUID>.Dictionary inventoryMap, AvatarAppearance avatarAppearance ) : void

This method is called by establishAppearance to copy inventory folders to make copies of Clothing and Bodyparts inventory folders and attaches worn attachments

CopyWearablesAndAttachments ( UUID destination, UUID source, AvatarAppearance avatarAppearance ) : void

This method is called by establishAppearance to do a copy all inventory items worn or attached to the Clothing inventory folder of the receiving avatar. In parallel the avatar wearables and attachments are updated.

CreateDefaultAvatars ( ) : bool

This method is called if a given model avatar name can not be found. If the external file has already been loaded once, then control returns immediately. If not, then it looks for a default appearance file. This file contains XML definitions of zero or more named avatars, each avatar can specify zero or more "outfits". Each outfit is a collection of items that together, define a particular ensemble for the avatar. Each avatar should indicate which outfit is the default, and this outfit will be automatically worn. The other outfits are provided to allow "real" avatars a way to easily change their outfits.

CreateUser ( UUID scopeID, string firstName, string lastName, string password, string email ) : UserAccount

Create a user

EstablishAppearance ( UUID destination, UUID source ) : void

This method is called by updateAvatarAppearance once any specified model has been ratified, or an appropriate default value has been adopted. The intended prototype is known to exist, as is the target avatar.

FailIfRemoteAdminDisabled ( string requestName ) : void
GetBoolean ( Hashtable requestData, string tag, bool defaultValue ) : bool
GetIntegerAttribute ( XmlNode node, string attribute, int defaultValue ) : int
GetStringAttribute ( XmlNode node, string attribute, string defaultValue ) : string
GetUnsignedAttribute ( XmlNode node, string attribute, uint defaultValue ) : uint
RemoteAdminOarSaveCompleted ( System.Guid uuid, string name ) : void
UpdateUserAppearance ( Hashtable responseData, Hashtable requestData, UUID userid ) : void

This method is called by the user-create and user-modify methods to establish or change, the user's appearance. Default avatar names can be specified via the config file, but must correspond to avatars in the default appearance file, or pre-existing in the user database. This should probably get moved into somewhere more core eventually.

shutdownTimer_Elapsed ( object sender, System.Timers.ElapsedEventArgs e ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

Initialise() public method

public Initialise ( ) : void
return void

Initialise() public method

public Initialise ( OpenSimBase openSim ) : void
openSim OpenSim.OpenSimBase
return void

PostInitialise() public method

public PostInitialise ( ) : void
return void

XmlRpcAccessListAdd() public method

public XmlRpcAccessListAdd ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse
request Nwc.XmlRpc.XmlRpcRequest
remoteClient System.Net.IPEndPoint
return Nwc.XmlRpc.XmlRpcResponse

XmlRpcAccessListClear() public method

public XmlRpcAccessListClear ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse
request Nwc.XmlRpc.XmlRpcRequest
remoteClient System.Net.IPEndPoint
return Nwc.XmlRpc.XmlRpcResponse

XmlRpcAccessListList() public method

public XmlRpcAccessListList ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse
request Nwc.XmlRpc.XmlRpcRequest
remoteClient System.Net.IPEndPoint
return Nwc.XmlRpc.XmlRpcResponse

XmlRpcAccessListRemove() public method

public XmlRpcAccessListRemove ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse
request Nwc.XmlRpc.XmlRpcRequest
remoteClient System.Net.IPEndPoint
return Nwc.XmlRpc.XmlRpcResponse

XmlRpcAlertMethod() public method

public XmlRpcAlertMethod ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse
request Nwc.XmlRpc.XmlRpcRequest
remoteClient System.Net.IPEndPoint
return Nwc.XmlRpc.XmlRpcResponse

XmlRpcCloseRegionMethod() public method

XmlRpcCloseRegionMethod takes the following XMLRPC parameters parameter namedescription password admin password as set in OpenSim.ini region_name desired region name region_id (optional) desired region UUID XmlRpcShutdownRegionMethod returns namedescription success true or false region_name the region name if success is true error error message if success is false
public XmlRpcCloseRegionMethod ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse
request Nwc.XmlRpc.XmlRpcRequest incoming XML RPC request
remoteClient System.Net.IPEndPoint
return Nwc.XmlRpc.XmlRpcResponse

XmlRpcConsoleCommandMethod() public method

public XmlRpcConsoleCommandMethod ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse
request Nwc.XmlRpc.XmlRpcRequest
remoteClient System.Net.IPEndPoint
return Nwc.XmlRpc.XmlRpcResponse

XmlRpcCreateRegionMethod() public method

XmlRpcCreateRegionMethod takes the following XMLRPC parameters parameter namedescription password admin password as set in OpenSim.ini region_name desired region name region_id (optional) desired region UUID region_x desired region X coordinate (integer) region_y desired region Y coordinate (integer) estate_owner_first firstname of estate owner (formerly region master) (required if new estate is being created, optional otherwise) estate_owner_last lastname of estate owner (formerly region master) (required if new estate is being created, optional otherwise) estate_owner_uuid explicit UUID to use for estate owner (optional) listen_ip internal IP address (dotted quad) listen_port internal port (integer) external_address external IP address persist if true, persist the region info ('true' or 'false') public if true, the region is public ('true' or 'false') (optional, default: true) enable_voice if true, enable voice on all parcels, ('true' or 'false') (optional, default: false) estate_name the name of the estate to join (or to create if it doesn't already exist) region_file The name of the file to persist the region specifications to. If omitted, the region_file_template setting from OpenSim.ini will be used. (optional) XmlRpcCreateRegionMethod returns namedescription success true or false error error message if success is false region_uuid UUID of the newly created region region_name name of the newly created region
public XmlRpcCreateRegionMethod ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse
request Nwc.XmlRpc.XmlRpcRequest incoming XML RPC request
remoteClient System.Net.IPEndPoint
return Nwc.XmlRpc.XmlRpcResponse

XmlRpcCreateUserMethod() public method

XmlRpcCreateUserMethod takes the following XMLRPC parameters parameter namedescription password admin password as set in OpenSim.ini user_firstname avatar's first name user_lastname avatar's last name user_password avatar's password user_email email of the avatar's owner (optional) start_region_x avatar's start region coordinates, X value start_region_y avatar's start region coordinates, Y value XmlRpcCreateUserMethod returns namedescription success true or false error error message if success is false avatar_uuid UUID of the newly created avatar account; UUID.Zero if failed.
public XmlRpcCreateUserMethod ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse
request Nwc.XmlRpc.XmlRpcRequest incoming XML RPC request
remoteClient System.Net.IPEndPoint
return Nwc.XmlRpc.XmlRpcResponse

XmlRpcDeleteRegionMethod() public method

XmlRpcDeleteRegionMethod takes the following XMLRPC parameters parameter namedescription password admin password as set in OpenSim.ini region_name desired region name region_id (optional) desired region UUID XmlRpcDeleteRegionMethod returns namedescription success true or false error error message if success is false
public XmlRpcDeleteRegionMethod ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse
request Nwc.XmlRpc.XmlRpcRequest incoming XML RPC request
remoteClient System.Net.IPEndPoint
return Nwc.XmlRpc.XmlRpcResponse

XmlRpcLoadHeightmapMethod() public method

public XmlRpcLoadHeightmapMethod ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse
request Nwc.XmlRpc.XmlRpcRequest
remoteClient System.Net.IPEndPoint
return Nwc.XmlRpc.XmlRpcResponse

XmlRpcLoadOARMethod() public method

XmlRpcLoadOARMethod takes the following XMLRPC parameters parameter namedescription password admin password as set in OpenSim.ini filename file name of the OAR file region_uuid UUID of the region region_name region name region_uuid takes precedence over region_name if both are present; one of both must be present. XmlRpcLoadOARMethod returns namedescription success true or false error error message if success is false
public XmlRpcLoadOARMethod ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse
request Nwc.XmlRpc.XmlRpcRequest incoming XML RPC request
remoteClient System.Net.IPEndPoint
return Nwc.XmlRpc.XmlRpcResponse

XmlRpcLoadXMLMethod() public method

public XmlRpcLoadXMLMethod ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse
request Nwc.XmlRpc.XmlRpcRequest
remoteClient System.Net.IPEndPoint
return Nwc.XmlRpc.XmlRpcResponse

XmlRpcModifyRegionMethod() public method

XmlRpcModifyRegionMethod takes the following XMLRPC parameters parameter namedescription password admin password as set in OpenSim.ini region_name desired region name region_id (optional) desired region UUID public if true, set the region to public ('true' or 'false'), else to private enable_voice if true, enable voice on all parcels of the region, else disable XmlRpcModifyRegionMethod returns namedescription success true or false error error message if success is false
public XmlRpcModifyRegionMethod ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse
request Nwc.XmlRpc.XmlRpcRequest incoming XML RPC request
remoteClient System.Net.IPEndPoint
return Nwc.XmlRpc.XmlRpcResponse

XmlRpcRegionQueryMethod() public method

public XmlRpcRegionQueryMethod ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse
request Nwc.XmlRpc.XmlRpcRequest
remoteClient System.Net.IPEndPoint
return Nwc.XmlRpc.XmlRpcResponse

XmlRpcRestartMethod() public method

public XmlRpcRestartMethod ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse
request Nwc.XmlRpc.XmlRpcRequest
remoteClient System.Net.IPEndPoint
return Nwc.XmlRpc.XmlRpcResponse

XmlRpcSaveOARMethod() public method

XmlRpcSaveOARMethod takes the following XMLRPC parameters parameter namedescription password admin password as set in OpenSim.ini filename file name for the OAR file region_uuid UUID of the region region_name region name region_uuid takes precedence over region_name if both are present; one of both must be present. XmlRpcLoadOARMethod returns namedescription success true or false error error message if success is false
public XmlRpcSaveOARMethod ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse
request Nwc.XmlRpc.XmlRpcRequest incoming XML RPC request
remoteClient System.Net.IPEndPoint
return Nwc.XmlRpc.XmlRpcResponse

XmlRpcSaveXMLMethod() public method

public XmlRpcSaveXMLMethod ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse
request Nwc.XmlRpc.XmlRpcRequest
remoteClient System.Net.IPEndPoint
return Nwc.XmlRpc.XmlRpcResponse

XmlRpcShutdownMethod() public method

public XmlRpcShutdownMethod ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse
request Nwc.XmlRpc.XmlRpcRequest
remoteClient System.Net.IPEndPoint
return Nwc.XmlRpc.XmlRpcResponse

XmlRpcUpdateUserAccountMethod() public method

XmlRpcUpdateUserAccountMethod takes the following XMLRPC parameters (changeable ones are optional) parameter namedescription password admin password as set in OpenSim.ini user_firstname avatar's first name (cannot be changed) user_lastname avatar's last name (cannot be changed) user_password avatar's password (changeable) start_region_x avatar's start region coordinates, X value (changeable) start_region_y avatar's start region coordinates, Y value (changeable) about_real_world (not implemented yet) "about" text of avatar owner (changeable) about_virtual_world (not implemented yet) "about" text of avatar (changeable) XmlRpcCreateUserMethod returns namedescription success true or false error error message if success is false avatar_uuid UUID of the updated avatar account; UUID.Zero if failed.
public XmlRpcUpdateUserAccountMethod ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse
request Nwc.XmlRpc.XmlRpcRequest incoming XML RPC request
remoteClient System.Net.IPEndPoint
return Nwc.XmlRpc.XmlRpcResponse

XmlRpcUserExistsMethod() public method

XmlRpcUserExistsMethod takes the following XMLRPC parameters parameter namedescription password admin password as set in OpenSim.ini user_firstname avatar's first name user_lastname avatar's last name XmlRpcCreateUserMethod returns namedescription user_firstname avatar's first name user_lastname avatar's last name user_lastlogin avatar's last login time (secs since UNIX epoch) success true or false error error message if success is false
public XmlRpcUserExistsMethod ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse
request Nwc.XmlRpc.XmlRpcRequest incoming XML RPC request
remoteClient System.Net.IPEndPoint
return Nwc.XmlRpc.XmlRpcResponse