diff options
author | Diva Canto | 2009-08-13 14:10:12 -0700 |
---|---|---|
committer | Diva Canto | 2009-08-13 14:10:12 -0700 |
commit | 5246dc33dcfc51b7ebb19b269159df3991029350 (patch) | |
tree | af1a8fa9e0f6408b3280e0165080ac0d580597d9 /OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | |
parent | Inventory redirects from CachedUserInfo to InventoryService COMPLETE! (diff) | |
download | opensim-SC-5246dc33dcfc51b7ebb19b269159df3991029350.zip opensim-SC-5246dc33dcfc51b7ebb19b269159df3991029350.tar.gz opensim-SC-5246dc33dcfc51b7ebb19b269159df3991029350.tar.bz2 opensim-SC-5246dc33dcfc51b7ebb19b269159df3991029350.tar.xz |
Renamed QueryItem/QueryFolder to GetItem/GetFolder. The word 'query' starting to get on my nerves.
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.Inventory.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | 22 |
1 files changed, 11 insertions, 11 deletions
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 | |||
140 | /// <returns></returns> | 140 | /// <returns></returns> |
141 | public virtual UUID CapsUpdateInventoryItemAsset(IClientAPI remoteClient, UUID itemID, byte[] data) | 141 | public virtual UUID CapsUpdateInventoryItemAsset(IClientAPI remoteClient, UUID itemID, byte[] data) |
142 | { | 142 | { |
143 | InventoryItemBase item = InventoryService.QueryItem(new InventoryItemBase(itemID)); | 143 | InventoryItemBase item = InventoryService.GetItem(new InventoryItemBase(itemID)); |
144 | 144 | ||
145 | if (item != null) | 145 | if (item != null) |
146 | { | 146 | { |
@@ -315,7 +315,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
315 | public void UpdateInventoryItemAsset(IClientAPI remoteClient, UUID transactionID, | 315 | public void UpdateInventoryItemAsset(IClientAPI remoteClient, UUID transactionID, |
316 | UUID itemID, InventoryItemBase itemUpd) | 316 | UUID itemID, InventoryItemBase itemUpd) |
317 | { | 317 | { |
318 | InventoryItemBase item = InventoryService.QueryItem(new InventoryItemBase(itemID)); | 318 | InventoryItemBase item = InventoryService.GetItem(new InventoryItemBase(itemID)); |
319 | 319 | ||
320 | if (item != null) | 320 | if (item != null) |
321 | { | 321 | { |
@@ -408,7 +408,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
408 | { | 408 | { |
409 | Console.WriteLine("Scene.Inventory.cs: GiveInventoryItem"); | 409 | Console.WriteLine("Scene.Inventory.cs: GiveInventoryItem"); |
410 | 410 | ||
411 | InventoryItemBase item = InventoryService.QueryItem(new InventoryItemBase(itemId)); | 411 | InventoryItemBase item = InventoryService.GetItem(new InventoryItemBase(itemId)); |
412 | 412 | ||
413 | if ((item != null) && (item.Owner == senderId)) | 413 | if ((item != null) && (item.Owner == senderId)) |
414 | { | 414 | { |
@@ -505,7 +505,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
505 | UUID recipientId, UUID senderId, UUID folderId, UUID recipientParentFolderId) | 505 | UUID recipientId, UUID senderId, UUID folderId, UUID recipientParentFolderId) |
506 | { | 506 | { |
507 | //// Retrieve the folder from the sender | 507 | //// Retrieve the folder from the sender |
508 | InventoryFolderBase folder = InventoryService.QueryFolder(new InventoryFolderBase(folderId)); | 508 | InventoryFolderBase folder = InventoryService.GetFolder(new InventoryFolderBase(folderId)); |
509 | if (null == folder) | 509 | if (null == folder) |
510 | { | 510 | { |
511 | m_log.ErrorFormat( | 511 | m_log.ErrorFormat( |
@@ -558,7 +558,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
558 | 558 | ||
559 | if (item == null) | 559 | if (item == null) |
560 | { | 560 | { |
561 | item = InventoryService.QueryItem(new InventoryItemBase(oldItemID)); | 561 | item = InventoryService.GetItem(new InventoryItemBase(oldItemID)); |
562 | 562 | ||
563 | if (item == null) | 563 | if (item == null) |
564 | { | 564 | { |
@@ -636,7 +636,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
636 | m_log.DebugFormat( | 636 | m_log.DebugFormat( |
637 | "[AGENT INVENTORY]: Moving item {0} to {1} for {2}", itemID, folderID, remoteClient.AgentId); | 637 | "[AGENT INVENTORY]: Moving item {0} to {1} for {2}", itemID, folderID, remoteClient.AgentId); |
638 | 638 | ||
639 | InventoryItemBase item = InventoryService.QueryItem(new InventoryItemBase(itemID)); | 639 | InventoryItemBase item = InventoryService.GetItem(new InventoryItemBase(itemID)); |
640 | 640 | ||
641 | if (item != null) | 641 | if (item != null) |
642 | { | 642 | { |
@@ -1224,7 +1224,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1224 | UUID copyID = UUID.Random(); | 1224 | UUID copyID = UUID.Random(); |
1225 | if (itemID != UUID.Zero) | 1225 | if (itemID != UUID.Zero) |
1226 | { | 1226 | { |
1227 | InventoryItemBase item = InventoryService.QueryItem(new InventoryItemBase(itemID)); | 1227 | InventoryItemBase item = InventoryService.GetItem(new InventoryItemBase(itemID)); |
1228 | 1228 | ||
1229 | // Try library | 1229 | // Try library |
1230 | if (null == item) | 1230 | if (null == item) |
@@ -1287,7 +1287,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1287 | 1287 | ||
1288 | if (itemID != UUID.Zero) // transferred from an avatar inventory to the prim's inventory | 1288 | if (itemID != UUID.Zero) // transferred from an avatar inventory to the prim's inventory |
1289 | { | 1289 | { |
1290 | InventoryItemBase item = InventoryService.QueryItem(new InventoryItemBase(itemID)); | 1290 | InventoryItemBase item = InventoryService.GetItem(new InventoryItemBase(itemID)); |
1291 | 1291 | ||
1292 | // Try library | 1292 | // Try library |
1293 | // XXX clumsy, possibly should be one call | 1293 | // XXX clumsy, possibly should be one call |
@@ -1673,7 +1673,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1673 | if (DeRezAction.SaveToExistingUserInventoryItem == action) | 1673 | if (DeRezAction.SaveToExistingUserInventoryItem == action) |
1674 | { | 1674 | { |
1675 | item = new InventoryItemBase(objectGroup.RootPart.FromUserInventoryItemID); | 1675 | item = new InventoryItemBase(objectGroup.RootPart.FromUserInventoryItemID); |
1676 | item = InventoryService.QueryItem(item); | 1676 | item = InventoryService.GetItem(item); |
1677 | 1677 | ||
1678 | //item = userInfo.RootFolder.FindItem( | 1678 | //item = userInfo.RootFolder.FindItem( |
1679 | // objectGroup.RootPart.FromUserInventoryItemID); | 1679 | // objectGroup.RootPart.FromUserInventoryItemID); |
@@ -1834,7 +1834,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1834 | 1834 | ||
1835 | string sceneObjectXml = SceneObjectSerializer.ToOriginalXmlFormat(objectGroup); | 1835 | string sceneObjectXml = SceneObjectSerializer.ToOriginalXmlFormat(objectGroup); |
1836 | 1836 | ||
1837 | InventoryItemBase item = InventoryService.QueryItem(new InventoryItemBase(itemID)); | 1837 | InventoryItemBase item = InventoryService.GetItem(new InventoryItemBase(itemID)); |
1838 | 1838 | ||
1839 | if (item != null) | 1839 | if (item != null) |
1840 | { | 1840 | { |
@@ -1984,7 +1984,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1984 | BypassRayCast, bRayEndIsIntersection,true,scale, false); | 1984 | BypassRayCast, bRayEndIsIntersection,true,scale, false); |
1985 | 1985 | ||
1986 | // Rez object | 1986 | // Rez object |
1987 | InventoryItemBase item = InventoryService.QueryItem(new InventoryItemBase(itemID)); | 1987 | InventoryItemBase item = InventoryService.GetItem(new InventoryItemBase(itemID)); |
1988 | 1988 | ||
1989 | if (item != null) | 1989 | if (item != null) |
1990 | { | 1990 | { |