From 5246dc33dcfc51b7ebb19b269159df3991029350 Mon Sep 17 00:00:00 2001 From: Diva Canto Date: Thu, 13 Aug 2009 14:10:12 -0700 Subject: Renamed QueryItem/QueryFolder to GetItem/GetFolder. The word 'query' starting to get on my nerves. --- .../Region/ClientStack/LindenUDP/LLClientView.cs | 2 +- .../Avatar/AvatarFactory/AvatarFactoryModule.cs | 2 +- .../CoreModules/Avatar/Gestures/GesturesModule.cs | 4 ++-- .../Inventory/Transfer/InventoryTransferModule.cs | 8 ++++---- .../Inventory/BaseInventoryConnector.cs | 4 ++-- .../Inventory/HGInventoryBroker.cs | 8 ++++---- .../Inventory/LocalInventoryServiceConnector.cs | 8 ++++---- .../Inventory/RemoteInventoryServiceConnector.cs | 4 ++-- .../World/Permissions/PermissionsModule.cs | 6 +++--- .../Scenes/Hypergrid/HGScene.Inventory.cs | 2 +- OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | 22 ++++++++++---------- .../Framework/Scenes/Scene.PacketHandlers.cs | 4 ++-- .../Framework/Scenes/SceneCommunicationService.cs | 24 +++++++++++----------- 13 files changed, 49 insertions(+), 49 deletions(-) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs index aaa236c..a3e275d 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs @@ -6611,7 +6611,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP { //InventoryItemBase assetRequestItem = userInfo.RootFolder.FindItem(itemID); IInventoryService invService = m_scene.RequestModuleInterface(); - InventoryItemBase assetRequestItem = invService.QueryItem(new InventoryItemBase(itemID)); + InventoryItemBase assetRequestItem = invService.GetItem(new InventoryItemBase(itemID)); if (assetRequestItem == null) { assetRequestItem = ((Scene)m_scene).CommsManager.UserProfileCacheService.LibraryRoot.FindItem(itemID); diff --git a/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs b/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs index 547f923..582beee 100644 --- a/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs @@ -130,7 +130,7 @@ namespace OpenSim.Region.CoreModules.Avatar.AvatarFactory } else { - InventoryItemBase baseItem = invService.QueryItem(new InventoryItemBase(appearance.Wearables[i].ItemID)); + InventoryItemBase baseItem = invService.GetItem(new InventoryItemBase(appearance.Wearables[i].ItemID)); if (baseItem != null) { diff --git a/OpenSim/Region/CoreModules/Avatar/Gestures/GesturesModule.cs b/OpenSim/Region/CoreModules/Avatar/Gestures/GesturesModule.cs index e61648c..a68db1b 100644 --- a/OpenSim/Region/CoreModules/Avatar/Gestures/GesturesModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/Gestures/GesturesModule.cs @@ -65,7 +65,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Gestures { IInventoryService invService = m_scene.InventoryService; - InventoryItemBase item = invService.QueryItem(new InventoryItemBase(gestureId)); + InventoryItemBase item = invService.GetItem(new InventoryItemBase(gestureId)); if (item != null) { item.Flags = 1; @@ -80,7 +80,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Gestures { IInventoryService invService = m_scene.InventoryService; - InventoryItemBase item = invService.QueryItem(new InventoryItemBase(gestureId)); + InventoryItemBase item = invService.GetItem(new InventoryItemBase(gestureId)); if (item != null) { item.Flags = 0; diff --git a/OpenSim/Region/CoreModules/Avatar/Inventory/Transfer/InventoryTransferModule.cs b/OpenSim/Region/CoreModules/Avatar/Inventory/Transfer/InventoryTransferModule.cs index b5650fd..5315c11 100644 --- a/OpenSim/Region/CoreModules/Avatar/Inventory/Transfer/InventoryTransferModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/Inventory/Transfer/InventoryTransferModule.cs @@ -258,7 +258,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Transfer UUID inventoryEntityID = new UUID(im.imSessionID); // The inventory item/folder, back from it's trip - InventoryItemBase item = invService.QueryItem(new InventoryItemBase(inventoryEntityID)); + InventoryItemBase item = invService.GetItem(new InventoryItemBase(inventoryEntityID)); InventoryFolderBase folder = null; if (item != null && trashFolder != null) @@ -271,7 +271,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Transfer } else { - folder = invService.QueryFolder(new InventoryFolderBase(inventoryEntityID)); + folder = invService.GetFolder(new InventoryFolderBase(inventoryEntityID)); if (folder != null & trashFolder != null) { @@ -428,7 +428,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Transfer // Fetch from service // - folder = invService.QueryFolder(folder); + folder = invService.GetFolder(folder); if (folder == null) { m_log.Debug("[INVENTORY TRANSFER] Can't find folder to give"); @@ -458,7 +458,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Transfer // Fetch from service // - item = invService.QueryItem(item); + item = invService.GetItem(item); if (item == null) { m_log.Debug("[INVENTORY TRANSFER] Can't find item to give"); diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/BaseInventoryConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/BaseInventoryConnector.cs index 375faf5..0526bc4 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/BaseInventoryConnector.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/BaseInventoryConnector.cs @@ -184,9 +184,9 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Inventory /// true if the item was successfully deleted public abstract bool DeleteItem(InventoryItemBase item); - public abstract InventoryItemBase QueryItem(InventoryItemBase item); + public abstract InventoryItemBase GetItem(InventoryItemBase item); - public abstract InventoryFolderBase QueryFolder(InventoryFolderBase folder); + public abstract InventoryFolderBase GetFolder(InventoryFolderBase folder); /// /// Does the given user have an inventory structure? diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/HGInventoryBroker.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/HGInventoryBroker.cs index 62b9bed..db4e7f4 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/HGInventoryBroker.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/HGInventoryBroker.cs @@ -387,13 +387,13 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Inventory } } - public override InventoryItemBase QueryItem(InventoryItemBase item) + public override InventoryItemBase GetItem(InventoryItemBase item) { if (item == null) return null; if (IsLocalGridUser(item.Owner)) - return m_GridService.QueryItem(item); + return m_GridService.GetItem(item); else { UUID sessionID = GetSessionID(item.Owner); @@ -402,13 +402,13 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Inventory } } - public override InventoryFolderBase QueryFolder(InventoryFolderBase folder) + public override InventoryFolderBase GetFolder(InventoryFolderBase folder) { if (folder == null) return null; if (IsLocalGridUser(folder.Owner)) - return m_GridService.QueryFolder(folder); + return m_GridService.GetFolder(folder); else { UUID sessionID = GetSessionID(folder.Owner); diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/LocalInventoryServiceConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/LocalInventoryServiceConnector.cs index 6efe903..ccf06d1 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/LocalInventoryServiceConnector.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/LocalInventoryServiceConnector.cs @@ -292,14 +292,14 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Inventory return m_InventoryService.DeleteItem(item); } - public override InventoryItemBase QueryItem(InventoryItemBase item) + public override InventoryItemBase GetItem(InventoryItemBase item) { - return m_InventoryService.QueryItem(item); + return m_InventoryService.GetItem(item); } - public override InventoryFolderBase QueryFolder(InventoryFolderBase folder) + public override InventoryFolderBase GetFolder(InventoryFolderBase folder) { - return m_InventoryService.QueryFolder(folder); + return m_InventoryService.GetFolder(folder); } /// diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/RemoteInventoryServiceConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/RemoteInventoryServiceConnector.cs index f87aab9..4f19573 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/RemoteInventoryServiceConnector.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/RemoteInventoryServiceConnector.cs @@ -273,7 +273,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Inventory return m_RemoteConnector.DeleteItem(item.Owner.ToString(), item, sessionID); } - public override InventoryItemBase QueryItem(InventoryItemBase item) + public override InventoryItemBase GetItem(InventoryItemBase item) { if (item == null) return null; @@ -282,7 +282,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Inventory return m_RemoteConnector.QueryItem(item.Owner.ToString(), item, sessionID); } - public override InventoryFolderBase QueryFolder(InventoryFolderBase folder) + public override InventoryFolderBase GetFolder(InventoryFolderBase folder) { if (folder == null) return null; diff --git a/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs b/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs index 8f99395..9c71b41 100644 --- a/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs +++ b/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs @@ -966,7 +966,7 @@ namespace OpenSim.Region.CoreModules.World.Permissions if (objectID == UUID.Zero) // User inventory { IInventoryService invService = m_scene.InventoryService; - InventoryItemBase assetRequestItem = invService.QueryItem(new InventoryItemBase(notecard)); + InventoryItemBase assetRequestItem = invService.GetItem(new InventoryItemBase(notecard)); if (assetRequestItem == null) // Library item { assetRequestItem = scene.CommsManager.UserProfileCacheService.LibraryRoot.FindItem(notecard); @@ -1385,7 +1385,7 @@ namespace OpenSim.Region.CoreModules.World.Permissions if (objectID == UUID.Zero) // User inventory { IInventoryService invService = m_scene.InventoryService; - InventoryItemBase assetRequestItem = invService.QueryItem(new InventoryItemBase(script)); + InventoryItemBase assetRequestItem = invService.GetItem(new InventoryItemBase(script)); if (assetRequestItem == null) // Library item { assetRequestItem = m_scene.CommsManager.UserProfileCacheService.LibraryRoot.FindItem(script); @@ -1479,7 +1479,7 @@ namespace OpenSim.Region.CoreModules.World.Permissions if (objectID == UUID.Zero) // User inventory { IInventoryService invService = m_scene.InventoryService; - InventoryItemBase assetRequestItem = invService.QueryItem(new InventoryItemBase(notecard)); + InventoryItemBase assetRequestItem = invService.GetItem(new InventoryItemBase(notecard)); if (assetRequestItem == null) // Library item { assetRequestItem = m_scene.CommsManager.UserProfileCacheService.LibraryRoot.FindItem(notecard); diff --git a/OpenSim/Region/Framework/Scenes/Hypergrid/HGScene.Inventory.cs b/OpenSim/Region/Framework/Scenes/Hypergrid/HGScene.Inventory.cs index 1b93f46..dd6928f 100644 --- a/OpenSim/Region/Framework/Scenes/Hypergrid/HGScene.Inventory.cs +++ b/OpenSim/Region/Framework/Scenes/Hypergrid/HGScene.Inventory.cs @@ -119,7 +119,7 @@ namespace OpenSim.Region.Framework.Scenes.Hypergrid { InventoryItemBase item = new InventoryItemBase(itemID); item.Owner = remoteClient.AgentId; - item = InventoryService.QueryItem(item); + item = InventoryService.GetItem(item); //if (item == null) //{ // Fetch the item // item = new InventoryItemBase(); diff --git a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs index cd91e8c..a941a74 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs @@ -140,7 +140,7 @@ namespace OpenSim.Region.Framework.Scenes /// public virtual UUID CapsUpdateInventoryItemAsset(IClientAPI remoteClient, UUID itemID, byte[] data) { - InventoryItemBase item = InventoryService.QueryItem(new InventoryItemBase(itemID)); + InventoryItemBase item = InventoryService.GetItem(new InventoryItemBase(itemID)); if (item != null) { @@ -315,7 +315,7 @@ namespace OpenSim.Region.Framework.Scenes public void UpdateInventoryItemAsset(IClientAPI remoteClient, UUID transactionID, UUID itemID, InventoryItemBase itemUpd) { - InventoryItemBase item = InventoryService.QueryItem(new InventoryItemBase(itemID)); + InventoryItemBase item = InventoryService.GetItem(new InventoryItemBase(itemID)); if (item != null) { @@ -408,7 +408,7 @@ namespace OpenSim.Region.Framework.Scenes { Console.WriteLine("Scene.Inventory.cs: GiveInventoryItem"); - InventoryItemBase item = InventoryService.QueryItem(new InventoryItemBase(itemId)); + InventoryItemBase item = InventoryService.GetItem(new InventoryItemBase(itemId)); if ((item != null) && (item.Owner == senderId)) { @@ -505,7 +505,7 @@ namespace OpenSim.Region.Framework.Scenes UUID recipientId, UUID senderId, UUID folderId, UUID recipientParentFolderId) { //// Retrieve the folder from the sender - InventoryFolderBase folder = InventoryService.QueryFolder(new InventoryFolderBase(folderId)); + InventoryFolderBase folder = InventoryService.GetFolder(new InventoryFolderBase(folderId)); if (null == folder) { m_log.ErrorFormat( @@ -558,7 +558,7 @@ namespace OpenSim.Region.Framework.Scenes if (item == null) { - item = InventoryService.QueryItem(new InventoryItemBase(oldItemID)); + item = InventoryService.GetItem(new InventoryItemBase(oldItemID)); if (item == null) { @@ -636,7 +636,7 @@ namespace OpenSim.Region.Framework.Scenes m_log.DebugFormat( "[AGENT INVENTORY]: Moving item {0} to {1} for {2}", itemID, folderID, remoteClient.AgentId); - InventoryItemBase item = InventoryService.QueryItem(new InventoryItemBase(itemID)); + InventoryItemBase item = InventoryService.GetItem(new InventoryItemBase(itemID)); if (item != null) { @@ -1224,7 +1224,7 @@ namespace OpenSim.Region.Framework.Scenes UUID copyID = UUID.Random(); if (itemID != UUID.Zero) { - InventoryItemBase item = InventoryService.QueryItem(new InventoryItemBase(itemID)); + InventoryItemBase item = InventoryService.GetItem(new InventoryItemBase(itemID)); // Try library if (null == item) @@ -1287,7 +1287,7 @@ namespace OpenSim.Region.Framework.Scenes if (itemID != UUID.Zero) // transferred from an avatar inventory to the prim's inventory { - InventoryItemBase item = InventoryService.QueryItem(new InventoryItemBase(itemID)); + InventoryItemBase item = InventoryService.GetItem(new InventoryItemBase(itemID)); // Try library // XXX clumsy, possibly should be one call @@ -1673,7 +1673,7 @@ namespace OpenSim.Region.Framework.Scenes if (DeRezAction.SaveToExistingUserInventoryItem == action) { item = new InventoryItemBase(objectGroup.RootPart.FromUserInventoryItemID); - item = InventoryService.QueryItem(item); + item = InventoryService.GetItem(item); //item = userInfo.RootFolder.FindItem( // objectGroup.RootPart.FromUserInventoryItemID); @@ -1834,7 +1834,7 @@ namespace OpenSim.Region.Framework.Scenes string sceneObjectXml = SceneObjectSerializer.ToOriginalXmlFormat(objectGroup); - InventoryItemBase item = InventoryService.QueryItem(new InventoryItemBase(itemID)); + InventoryItemBase item = InventoryService.GetItem(new InventoryItemBase(itemID)); if (item != null) { @@ -1984,7 +1984,7 @@ namespace OpenSim.Region.Framework.Scenes BypassRayCast, bRayEndIsIntersection,true,scale, false); // Rez object - InventoryItemBase item = InventoryService.QueryItem(new InventoryItemBase(itemID)); + InventoryItemBase item = InventoryService.GetItem(new InventoryItemBase(itemID)); if (item != null) { diff --git a/OpenSim/Region/Framework/Scenes/Scene.PacketHandlers.cs b/OpenSim/Region/Framework/Scenes/Scene.PacketHandlers.cs index e2debe5..bcc9bcb 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.PacketHandlers.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.PacketHandlers.cs @@ -382,7 +382,7 @@ namespace OpenSim.Region.Framework.Scenes return; } - InventoryItemBase item = InventoryService.QueryItem(new InventoryItemBase(itemID)); + InventoryItemBase item = InventoryService.GetItem(new InventoryItemBase(itemID)); if (item != null) { @@ -516,7 +516,7 @@ namespace OpenSim.Region.Framework.Scenes public void HandleMoveInventoryFolder(IClientAPI remoteClient, UUID folderID, UUID parentID) { InventoryFolderBase folder = new InventoryFolderBase(folderID); - folder = InventoryService.QueryFolder(folder); + folder = InventoryService.GetFolder(folder); if (folder != null) { folder.ParentID = parentID; diff --git a/OpenSim/Region/Framework/Scenes/SceneCommunicationService.cs b/OpenSim/Region/Framework/Scenes/SceneCommunicationService.cs index af2753c..f28352c 100644 --- a/OpenSim/Region/Framework/Scenes/SceneCommunicationService.cs +++ b/OpenSim/Region/Framework/Scenes/SceneCommunicationService.cs @@ -1020,11 +1020,11 @@ namespace OpenSim.Region.Framework.Scenes public bool WaitForCallback(UUID id) { - int count = 20; + int count = 200; while (m_agentsInTransit.Contains(id) && count-- > 0) { //m_log.Debug(" >>> Waiting... " + count); - Thread.Sleep(1000); + Thread.Sleep(100); } if (count > 0) @@ -1141,16 +1141,16 @@ namespace OpenSim.Region.Framework.Scenes { pos = pos + (agent.Velocity); - CachedUserInfo userInfo = m_commsProvider.UserProfileCacheService.GetUserDetails(agent.UUID); - if (userInfo != null) - { - userInfo.DropInventory(); - } - else - { - m_log.WarnFormat("[SCENE COMM]: No cached user info found for {0} {1} on leaving region {2}", - agent.Name, agent.UUID, agent.Scene.RegionInfo.RegionName); - } + //CachedUserInfo userInfo = m_commsProvider.UserProfileCacheService.GetUserDetails(agent.UUID); + //if (userInfo != null) + //{ + // userInfo.DropInventory(); + //} + //else + //{ + // m_log.WarnFormat("[SCENE COMM]: No cached user info found for {0} {1} on leaving region {2}", + // agent.Name, agent.UUID, agent.Scene.RegionInfo.RegionName); + //} //bool crossingSuccessful = // CrossToNeighbouringRegion(neighbourHandle, agent.ControllingClient.AgentId, pos, -- cgit v1.1