From 65d13e7cd11efa65c5b3a2c3577855a37f92a85a Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Sun, 20 May 2007 16:26:12 +0000 Subject: [PATCH] * DB4o support made default * Some comments --- OpenGridServices.UserServer/Main.cs | 2 +- OpenGridServices.UserServer/UserManager.cs | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/OpenGridServices.UserServer/Main.cs b/OpenGridServices.UserServer/Main.cs index 94d047b5b3..e965e5dc49 100644 --- a/OpenGridServices.UserServer/Main.cs +++ b/OpenGridServices.UserServer/Main.cs @@ -94,7 +94,7 @@ namespace OpenGridServices.UserServer MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "Main.cs:Startup() - Establishing data connection"); m_userManager = new UserManager(); m_userManager._config = Cfg; - m_userManager.AddPlugin("OpenGrid.Framework.Data.MySQL.dll"); + m_userManager.AddPlugin("OpenGrid.Framework.Data.DB4o.dll"); MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW,"Main.cs:Startup() - Starting HTTP process"); BaseHttpServer httpServer = new BaseHttpServer(8002); diff --git a/OpenGridServices.UserServer/UserManager.cs b/OpenGridServices.UserServer/UserManager.cs index b93c26f2b7..c1e442ffcd 100644 --- a/OpenGridServices.UserServer/UserManager.cs +++ b/OpenGridServices.UserServer/UserManager.cs @@ -52,6 +52,11 @@ namespace OpenGridServices.UserServer pluginAssembly = null; } + /// + /// Loads a user profile from a database by UUID + /// + /// The target UUID + /// A user profile public UserProfileData getUserProfile(LLUUID uuid) { foreach (KeyValuePair plugin in _plugins) @@ -71,6 +76,12 @@ namespace OpenGridServices.UserServer return null; } + + /// + /// Loads a user profile by name + /// + /// The target name + /// A user profile public UserProfileData getUserProfile(string name) { foreach (KeyValuePair plugin in _plugins) @@ -90,6 +101,12 @@ namespace OpenGridServices.UserServer return null; } + /// + /// Loads a user profile by name + /// + /// First name + /// Last name + /// A user profile public UserProfileData getUserProfile(string fname, string lname) { foreach (KeyValuePair plugin in _plugins)