From 78af28744856aae9af944df2d4e5fa92af448121 Mon Sep 17 00:00:00 2001 From: mingchen Date: Tue, 19 Jun 2007 00:18:06 +0000 Subject: *Added some missing files from last commit *LoginService is now only used in LocalCommunications and not as a interface in RegionCommunications --- .../LocalUserManagement/LocalUserServices.cs | 36 +++++++++++++++++++ .../LocalUserManagement/UserProfileManager.cs | 42 ++++++++++++++++++++++ 2 files changed, 78 insertions(+) create mode 100644 OpenSim/OpenSim.LocalCommunications/LocalUserManagement/LocalUserServices.cs create mode 100644 OpenSim/OpenSim.LocalCommunications/LocalUserManagement/UserProfileManager.cs (limited to 'OpenSim/OpenSim.LocalCommunications/LocalUserManagement') diff --git a/OpenSim/OpenSim.LocalCommunications/LocalUserManagement/LocalUserServices.cs b/OpenSim/OpenSim.LocalCommunications/LocalUserManagement/LocalUserServices.cs new file mode 100644 index 0000000..f438117 --- /dev/null +++ b/OpenSim/OpenSim.LocalCommunications/LocalUserManagement/LocalUserServices.cs @@ -0,0 +1,36 @@ +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 new file mode 100644 index 0000000..5f9d028 --- /dev/null +++ b/OpenSim/OpenSim.LocalCommunications/LocalUserManagement/UserProfileManager.cs @@ -0,0 +1,42 @@ +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; + } + + } +} -- cgit v1.1