From f8e0653e73932bae20f483e0ce669f1623c6ff1e Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Tue, 5 May 2009 16:45:21 +0000 Subject: * If an item creator id contains an iar loaded name, create a temporary profile and hashed UUID to represent the user --- .../Communications/Local/CommunicationsLocal.cs | 23 ++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) (limited to 'OpenSim/Region/Communications/Local') diff --git a/OpenSim/Region/Communications/Local/CommunicationsLocal.cs b/OpenSim/Region/Communications/Local/CommunicationsLocal.cs index acb7496..60feee1 100644 --- a/OpenSim/Region/Communications/Local/CommunicationsLocal.cs +++ b/OpenSim/Region/Communications/Local/CommunicationsLocal.cs @@ -25,9 +25,12 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +using System.Collections.Generic; +using OpenSim.Data; using OpenSim.Framework; using OpenSim.Framework.Communications; using OpenSim.Framework.Communications.Cache; +using OpenSim.Framework.Communications.Osp; using OpenSim.Framework.Servers.HttpServer; namespace OpenSim.Region.Communications.Local @@ -39,12 +42,22 @@ namespace OpenSim.Region.Communications.Local NetworkServersInfo serversInfo, BaseHttpServer httpServer, IAssetCache assetCache, - LocalInventoryService inventoryService, - IGridServices gridService, LibraryRootFolder libraryRootFolder, bool dumpAssetsToFile) : base(serversInfo, httpServer, assetCache, dumpAssetsToFile, libraryRootFolder) { + LocalInventoryService inventoryService = new LocalInventoryService(); + List plugins + = DataPluginFactory.LoadDataPlugins( + configSettings.StandaloneInventoryPlugin, + configSettings.StandaloneInventorySource); + + foreach (IInventoryDataPlugin plugin in plugins) + { + // Using the OSP wrapper plugin for database plugins should be made configurable at some point + inventoryService.AddPlugin(new OspInventoryWrapperPlugin(plugin, this)); + } + AddInventoryService(inventoryService); m_defaultInventoryHost = inventoryService.Host; m_interServiceInventoryService = inventoryService; @@ -58,8 +71,10 @@ namespace OpenSim.Region.Communications.Local m_userAdminService = lus; m_avatarService = lus; m_messageService = lus; - - m_gridService = gridService; + + m_gridService = new LocalBackEndServices(); + + //LocalLoginService loginService = CreateLoginService(libraryRootFolder, inventoryService, userService, backendService); } } } -- cgit v1.1