From 320fbcb7b4179968994100d0819da2e0732451ef Mon Sep 17 00:00:00 2001 From: MW Date: Tue, 19 Jun 2007 10:40:20 +0000 Subject: Made a base class from the Grid mode UserServer.UserManager and included that in the OpenSim solution. Included OpenGrid.Framework.Data in the OpenSim solution (and OpenGrid.Framework.Data.DB4O). Changed OpenSim.LocalCommunications.LocalUserServices so that it inherits from the UserManagement Base class. (still not finished implementing the CustomiseResponse() method) --- .../CommunicationsLocal.cs | 10 ++-- .../LocalUserManagement/LocalUserServices.cs | 36 --------------- .../LocalUserManagement/UserProfileManager.cs | 42 ----------------- .../LocalUserServices.cs | 43 +++++++++++++++++ .../OpenSim.LocalCommunications.csproj | 54 ++++++++++++---------- .../OpenSim.LocalCommunications.csproj.user | 2 +- .../OpenSim.LocalCommunications.dll.build | 3 ++ .../OpenSim.Physics.BasicPhysicsPlugin.csproj | 2 +- .../OdePlugin/OpenSim.Physics.OdePlugin.csproj | 2 +- .../PhysXPlugin/OpenSim.Physics.PhysXPlugin.csproj | 2 +- OpenSim/OpenSim.Region/OpenSim.Region.csproj | 2 +- .../OpenSim.RegionServer.csproj | 2 +- .../OpenSim.Terrain.BasicTerrain.csproj | 2 +- OpenSim/OpenSim/OpenSim.csproj | 2 +- OpenSim/OpenSim/OpenSimMain.cs | 2 +- 15 files changed, 88 insertions(+), 118 deletions(-) delete mode 100644 OpenSim/OpenSim.LocalCommunications/LocalUserManagement/LocalUserServices.cs delete mode 100644 OpenSim/OpenSim.LocalCommunications/LocalUserManagement/UserProfileManager.cs create mode 100644 OpenSim/OpenSim.LocalCommunications/LocalUserServices.cs (limited to 'OpenSim') diff --git a/OpenSim/OpenSim.LocalCommunications/CommunicationsLocal.cs b/OpenSim/OpenSim.LocalCommunications/CommunicationsLocal.cs index fb7dc7d..795f99d 100644 --- a/OpenSim/OpenSim.LocalCommunications/CommunicationsLocal.cs +++ b/OpenSim/OpenSim.LocalCommunications/CommunicationsLocal.cs @@ -35,21 +35,19 @@ using OpenSim.Framework.Interfaces; using OpenSim.Framework.Types; using OpenGrid.Framework.Communications; -using OpenSim.LocalCommunications.LocalUserManagement; namespace OpenSim.LocalCommunications { public class CommunicationsLocal : CommunicationsManager { - public LocalBackEndServices SandBoxManager = new LocalBackEndServices(); - public LocalUserServices UserServices = new LocalUserServices(); + public LocalBackEndServices SandBoxServices = new LocalBackEndServices(); + protected LocalUserServices UserServices = new LocalUserServices(); public CommunicationsLocal() { - UserServer = UserServices; - GridServer = SandBoxManager; - InterRegion = SandBoxManager; + GridServer = SandBoxServices; + InterRegion = SandBoxServices; } } } diff --git a/OpenSim/OpenSim.LocalCommunications/LocalUserManagement/LocalUserServices.cs b/OpenSim/OpenSim.LocalCommunications/LocalUserManagement/LocalUserServices.cs deleted file mode 100644 index f438117..0000000 --- a/OpenSim/OpenSim.LocalCommunications/LocalUserManagement/LocalUserServices.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; - -using OpenGrid.Framework.Communications; -using OpenSim.Framework.User; - -using libsecondlife; - -namespace OpenSim.LocalCommunications.LocalUserManagement -{ - public class LocalUserServices : IUserServices - { - public UserProfileManager userProfileManager = new UserProfileManager(); - public LocalLoginService localLoginService; - public LocalUserServices() - { - localLoginService = new LocalLoginService(this); - } - - public UserProfile GetUserProfile(string first_name, string last_name) - { - return GetUserProfile(first_name + " " + last_name); - } - - public UserProfile GetUserProfile(string name) - { - return null; - } - public UserProfile GetUserProfile(LLUUID avatar_id) - { - return null; - } - - } -} diff --git a/OpenSim/OpenSim.LocalCommunications/LocalUserManagement/UserProfileManager.cs b/OpenSim/OpenSim.LocalCommunications/LocalUserManagement/UserProfileManager.cs deleted file mode 100644 index 5f9d028..0000000 --- a/OpenSim/OpenSim.LocalCommunications/LocalUserManagement/UserProfileManager.cs +++ /dev/null @@ -1,42 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; - -using libsecondlife; -using OpenSim.Framework.User; - -namespace OpenSim.LocalCommunications.LocalUserManagement -{ - public class UserProfileManager - { - Dictionary userProfiles = new Dictionary(); - - public UserProfileManager() - { - } - - private LLUUID getUserUUID(string first_name, string last_name) - { - return getUserUUID(first_name + " " + last_name); - } - private LLUUID getUserUUID(string name) - { - return null; - } - - - public UserProfile getUserProfile(string first_name, string last_name) - { - return getUserProfile(first_name + " " + last_name); - } - public UserProfile getUserProfile(string name) - { - return null; - } - public UserProfile getUserProfile(LLUUID user_id) - { - return null; - } - - } -} diff --git a/OpenSim/OpenSim.LocalCommunications/LocalUserServices.cs b/OpenSim/OpenSim.LocalCommunications/LocalUserServices.cs new file mode 100644 index 0000000..0fe52a7 --- /dev/null +++ b/OpenSim/OpenSim.LocalCommunications/LocalUserServices.cs @@ -0,0 +1,43 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; + +using OpenGrid.Framework.Communications; +using OpenSim.Framework.User; +using OpenGrid.Framework.UserManagement; +using OpenGrid.Framework.Data; + +using libsecondlife; + +namespace OpenSim.LocalCommunications +{ + public class LocalUserServices : UserManagerBase, IUserServices + { + + public LocalUserServices() + { + + } + + public UserProfileData GetUserProfile(string first_name, string last_name) + { + return GetUserProfile(first_name + " " + last_name); + } + + public UserProfileData GetUserProfile(string name) + { + return null; + } + public UserProfileData GetUserProfile(LLUUID avatar_id) + { + return null; + } + + public override void CustomiseResponse(ref Hashtable response, ref UserProfileData theUser) + { + + } + + } +} diff --git a/OpenSim/OpenSim.LocalCommunications/OpenSim.LocalCommunications.csproj b/OpenSim/OpenSim.LocalCommunications/OpenSim.LocalCommunications.csproj index f7c28eb..3cb36da 100644 --- a/OpenSim/OpenSim.LocalCommunications/OpenSim.LocalCommunications.csproj +++ b/OpenSim/OpenSim.LocalCommunications/OpenSim.LocalCommunications.csproj @@ -1,4 +1,4 @@ - + Local 8.0.50727 @@ -6,8 +6,7 @@ {79CED992-0000-0000-0000-000000000000} Debug AnyCPU - - + OpenSim.LocalCommunications @@ -16,11 +15,9 @@ IE50 false Library - - + OpenSim.LocalCommunications - - + @@ -31,8 +28,7 @@ TRACE;DEBUG - - + True 4096 False @@ -41,8 +37,7 @@ False False 4 - - + False @@ -51,8 +46,7 @@ TRACE - - + False 4096 True @@ -61,20 +55,18 @@ False False 4 - - + - + ..\..\bin\libsecondlife.dll False - + System.dll False - - + System.Xml.dll False @@ -84,13 +76,25 @@ OpenGrid.Framework.Communications {683344D5-0000-0000-0000-000000000000} {FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - False + False + + + OpenGrid.Framework.Data + {62CDF671-0000-0000-0000-000000000000} + {FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + False + + + OpenGrid.Framework.UserManagement + {DA9A7391-0000-0000-0000-000000000000} + {FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + False OpenSim.Framework {8ACA2445-0000-0000-0000-000000000000} {FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - False + False @@ -100,9 +104,9 @@ Code - - - + + Code + Code @@ -114,4 +118,4 @@ - \ No newline at end of file + diff --git a/OpenSim/OpenSim.LocalCommunications/OpenSim.LocalCommunications.csproj.user b/OpenSim/OpenSim.LocalCommunications/OpenSim.LocalCommunications.csproj.user index 518ce40..5941547 100644 --- a/OpenSim/OpenSim.LocalCommunications/OpenSim.LocalCommunications.csproj.user +++ b/OpenSim/OpenSim.LocalCommunications/OpenSim.LocalCommunications.csproj.user @@ -2,7 +2,7 @@ Debug AnyCPU - C:\Documents and Settings\Stefan\My Documents\source\opensim\branches\Sugilite\bin\ + C:\New Folder\second-life-viewer\opensim-dailys2\opensim15-06\Sugilite\bin\ 8.0.50727 ProjectFiles 0 diff --git a/OpenSim/OpenSim.LocalCommunications/OpenSim.LocalCommunications.dll.build b/OpenSim/OpenSim.LocalCommunications/OpenSim.LocalCommunications.dll.build index 2ea6497..2b72e2d 100644 --- a/OpenSim/OpenSim.LocalCommunications/OpenSim.LocalCommunications.dll.build +++ b/OpenSim/OpenSim.LocalCommunications/OpenSim.LocalCommunications.dll.build @@ -13,6 +13,7 @@ + @@ -22,6 +23,8 @@ + + diff --git a/OpenSim/OpenSim.Physics/BasicPhysicsPlugin/OpenSim.Physics.BasicPhysicsPlugin.csproj b/OpenSim/OpenSim.Physics/BasicPhysicsPlugin/OpenSim.Physics.BasicPhysicsPlugin.csproj index 5f8b0ed..f88eb32 100644 --- a/OpenSim/OpenSim.Physics/BasicPhysicsPlugin/OpenSim.Physics.BasicPhysicsPlugin.csproj +++ b/OpenSim/OpenSim.Physics/BasicPhysicsPlugin/OpenSim.Physics.BasicPhysicsPlugin.csproj @@ -50,7 +50,7 @@ False 4096 True - bin\ + ..\..\..\bin\Physics\ False False False diff --git a/OpenSim/OpenSim.Physics/OdePlugin/OpenSim.Physics.OdePlugin.csproj b/OpenSim/OpenSim.Physics/OdePlugin/OpenSim.Physics.OdePlugin.csproj index 22d7786..08f54aa 100644 --- a/OpenSim/OpenSim.Physics/OdePlugin/OpenSim.Physics.OdePlugin.csproj +++ b/OpenSim/OpenSim.Physics/OdePlugin/OpenSim.Physics.OdePlugin.csproj @@ -50,7 +50,7 @@ False 4096 True - bin\ + ..\..\..\bin\Physics\ False False False diff --git a/OpenSim/OpenSim.Physics/PhysXPlugin/OpenSim.Physics.PhysXPlugin.csproj b/OpenSim/OpenSim.Physics/PhysXPlugin/OpenSim.Physics.PhysXPlugin.csproj index 0cebe66..aa89cc1 100644 --- a/OpenSim/OpenSim.Physics/PhysXPlugin/OpenSim.Physics.PhysXPlugin.csproj +++ b/OpenSim/OpenSim.Physics/PhysXPlugin/OpenSim.Physics.PhysXPlugin.csproj @@ -50,7 +50,7 @@ False 4096 True - bin\ + ..\..\..\bin\Physics\ False False False diff --git a/OpenSim/OpenSim.Region/OpenSim.Region.csproj b/OpenSim/OpenSim.Region/OpenSim.Region.csproj index 2a5d6ec..94efbed 100644 --- a/OpenSim/OpenSim.Region/OpenSim.Region.csproj +++ b/OpenSim/OpenSim.Region/OpenSim.Region.csproj @@ -50,7 +50,7 @@ False 4096 True - bin\ + ..\..\bin\ False False False diff --git a/OpenSim/OpenSim.RegionServer/OpenSim.RegionServer.csproj b/OpenSim/OpenSim.RegionServer/OpenSim.RegionServer.csproj index 17a651d..63eeb9c 100644 --- a/OpenSim/OpenSim.RegionServer/OpenSim.RegionServer.csproj +++ b/OpenSim/OpenSim.RegionServer/OpenSim.RegionServer.csproj @@ -50,7 +50,7 @@ False 4096 True - bin\ + ..\..\bin\ False False False diff --git a/OpenSim/OpenSim.Terrain.BasicTerrain/OpenSim.Terrain.BasicTerrain.csproj b/OpenSim/OpenSim.Terrain.BasicTerrain/OpenSim.Terrain.BasicTerrain.csproj index 10bc0fd..694521b 100644 --- a/OpenSim/OpenSim.Terrain.BasicTerrain/OpenSim.Terrain.BasicTerrain.csproj +++ b/OpenSim/OpenSim.Terrain.BasicTerrain/OpenSim.Terrain.BasicTerrain.csproj @@ -50,7 +50,7 @@ False 4096 True - bin\ + ..\..\bin\ False False False diff --git a/OpenSim/OpenSim/OpenSim.csproj b/OpenSim/OpenSim/OpenSim.csproj index df3a32c..fb0e0c1 100644 --- a/OpenSim/OpenSim/OpenSim.csproj +++ b/OpenSim/OpenSim/OpenSim.csproj @@ -50,7 +50,7 @@ False 4096 True - bin\ + ..\..\bin\ False False False diff --git a/OpenSim/OpenSim/OpenSimMain.cs b/OpenSim/OpenSim/OpenSimMain.cs index dddcaea..762b9e1 100644 --- a/OpenSim/OpenSim/OpenSimMain.cs +++ b/OpenSim/OpenSim/OpenSimMain.cs @@ -134,7 +134,7 @@ namespace OpenSim { loginServer = new LoginServer(regionData[0].IPListenAddr, regionData[0].IPListenPort, regionData[0].RegionLocX, regionData[0].RegionLocY, false); loginServer.Startup(); - loginServer.SetSessionHandler(sandboxCommunications.SandBoxManager.AddNewSession); + loginServer.SetSessionHandler(sandboxCommunications.SandBoxServices.AddNewSession); //sandbox mode with loginserver not using accounts httpServer.AddXmlRPCHandler("login_to_simulator", loginServer.XmlRpcLoginMethod); } -- cgit v1.1