aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Services')
-rw-r--r--OpenSim/Services/Connectors/Inventory/QuickAndDirtyInventoryServiceConnector.cs2
-rw-r--r--OpenSim/Services/Interfaces/IInventoryService.cs3
-rw-r--r--OpenSim/Services/InventoryService/InventoryService.cs10
3 files changed, 8 insertions, 7 deletions
diff --git a/OpenSim/Services/Connectors/Inventory/QuickAndDirtyInventoryServiceConnector.cs b/OpenSim/Services/Connectors/Inventory/QuickAndDirtyInventoryServiceConnector.cs
index 3264f41..fbb2707 100644
--- a/OpenSim/Services/Connectors/Inventory/QuickAndDirtyInventoryServiceConnector.cs
+++ b/OpenSim/Services/Connectors/Inventory/QuickAndDirtyInventoryServiceConnector.cs
@@ -106,7 +106,7 @@ namespace OpenSim.Services.Connectors
106 { 106 {
107 } 107 }
108 108
109 public List<InventoryItemBase> GetFolderItems(UUID folderID) 109 public List<InventoryItemBase> GetFolderItems(UUID userID, UUID folderID)
110 { 110 {
111 return null; 111 return null;
112 } 112 }
diff --git a/OpenSim/Services/Interfaces/IInventoryService.cs b/OpenSim/Services/Interfaces/IInventoryService.cs
index 8757744..15da3cb 100644
--- a/OpenSim/Services/Interfaces/IInventoryService.cs
+++ b/OpenSim/Services/Interfaces/IInventoryService.cs
@@ -72,9 +72,10 @@ namespace OpenSim.Services.Interfaces
72 /// <summary> 72 /// <summary>
73 /// Gets the items inside a folder 73 /// Gets the items inside a folder
74 /// </summary> 74 /// </summary>
75 /// <param name="userID"></param>
75 /// <param name="folderID"></param> 76 /// <param name="folderID"></param>
76 /// <returns></returns> 77 /// <returns></returns>
77 List<InventoryItemBase> GetFolderItems(UUID folderID); 78 List<InventoryItemBase> GetFolderItems(UUID userID, UUID folderID);
78 79
79 /// <summary> 80 /// <summary>
80 /// Add a new folder to the user's inventory 81 /// Add a new folder to the user's inventory
diff --git a/OpenSim/Services/InventoryService/InventoryService.cs b/OpenSim/Services/InventoryService/InventoryService.cs
index 1190b38..86a903c 100644
--- a/OpenSim/Services/InventoryService/InventoryService.cs
+++ b/OpenSim/Services/InventoryService/InventoryService.cs
@@ -150,7 +150,7 @@ namespace OpenSim.Services.InventoryService
150 150
151 foreach (InventoryFolderBase folder in allFolders) 151 foreach (InventoryFolderBase folder in allFolders)
152 { 152 {
153 List<InventoryItemBase> items = GetFolderItems(folder.ID); 153 List<InventoryItemBase> items = GetFolderItems(userID, folder.ID);
154 154
155 if (items != null) 155 if (items != null)
156 { 156 {
@@ -205,7 +205,7 @@ namespace OpenSim.Services.InventoryService
205 { 205 {
206 rootFolder = new InventoryFolderImpl(folder); 206 rootFolder = new InventoryFolderImpl(folder);
207 folders.Add(rootFolder); 207 folders.Add(rootFolder);
208 items.AddRange(GetFolderItems(rootFolder.ID)); 208 items.AddRange(GetFolderItems(userID, rootFolder.ID));
209 break; // Only 1 root folder per user 209 break; // Only 1 root folder per user
210 } 210 }
211 } 211 }
@@ -217,7 +217,7 @@ namespace OpenSim.Services.InventoryService
217 if (folder.ID != rootFolder.ID) 217 if (folder.ID != rootFolder.ID)
218 { 218 {
219 folders.Add(new InventoryFolderImpl(folder)); 219 folders.Add(new InventoryFolderImpl(folder));
220 items.AddRange(GetFolderItems(folder.ID)); 220 items.AddRange(GetFolderItems(userID, folder.ID));
221 } 221 }
222 } 222 }
223 } 223 }
@@ -255,7 +255,7 @@ namespace OpenSim.Services.InventoryService
255 return inventoryList; 255 return inventoryList;
256 } 256 }
257 257
258 public List<InventoryItemBase> GetFolderItems(UUID folderID) 258 public List<InventoryItemBase> GetFolderItems(UUID userID, UUID folderID)
259 { 259 {
260 List<InventoryItemBase> itemsList = new List<InventoryItemBase>(); 260 List<InventoryItemBase> itemsList = new List<InventoryItemBase>();
261 261
@@ -377,7 +377,7 @@ namespace OpenSim.Services.InventoryService
377 m_Database.deleteInventoryFolder(subFolder.ID); 377 m_Database.deleteInventoryFolder(subFolder.ID);
378 } 378 }
379 379
380 List<InventoryItemBase> items = GetFolderItems(folder.ID); 380 List<InventoryItemBase> items = GetFolderItems(folder.Owner, folder.ID);
381 381
382 foreach (InventoryItemBase item in items) 382 foreach (InventoryItemBase item in items)
383 { 383 {