* DB4o support made default

* Some comments
zircon^2
Adam Frisby 2007-05-20 16:26:12 +00:00
parent 5f020dc444
commit 65d13e7cd1
2 changed files with 18 additions and 1 deletions

View File

@ -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);

View File

@ -52,6 +52,11 @@ namespace OpenGridServices.UserServer
pluginAssembly = null;
}
/// <summary>
/// Loads a user profile from a database by UUID
/// </summary>
/// <param name="uuid">The target UUID</param>
/// <returns>A user profile</returns>
public UserProfileData getUserProfile(LLUUID uuid)
{
foreach (KeyValuePair<string, IUserData> plugin in _plugins)
@ -71,6 +76,12 @@ namespace OpenGridServices.UserServer
return null;
}
/// <summary>
/// Loads a user profile by name
/// </summary>
/// <param name="name">The target name</param>
/// <returns>A user profile</returns>
public UserProfileData getUserProfile(string name)
{
foreach (KeyValuePair<string, IUserData> plugin in _plugins)
@ -90,6 +101,12 @@ namespace OpenGridServices.UserServer
return null;
}
/// <summary>
/// Loads a user profile by name
/// </summary>
/// <param name="fname">First name</param>
/// <param name="lname">Last name</param>
/// <returns>A user profile</returns>
public UserProfileData getUserProfile(string fname, string lname)
{
foreach (KeyValuePair<string, IUserData> plugin in _plugins)