aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services/InventoryService
diff options
context:
space:
mode:
authorDiva Canto2009-08-11 10:30:03 -0700
committerDiva Canto2009-08-11 10:30:03 -0700
commit31419a70ce05e7db0c54f4c4ec827a0d1fe23402 (patch)
tree28687ede5c6f8fac8048ecce7a1a11ab30c7504f /OpenSim/Services/InventoryService
parentAdded two new methods to IIventoryService -- GetFolderForType and GetFolderCo... (diff)
downloadopensim-SC-31419a70ce05e7db0c54f4c4ec827a0d1fe23402.zip
opensim-SC-31419a70ce05e7db0c54f4c4ec827a0d1fe23402.tar.gz
opensim-SC-31419a70ce05e7db0c54f4c4ec827a0d1fe23402.tar.bz2
opensim-SC-31419a70ce05e7db0c54f4c4ec827a0d1fe23402.tar.xz
System folders inventory cache added to OUT inventory modules. This tracks agents in and out of *sims* in order to fetch/drop their system folders from the cache. Also added region-side support for fetching the system folders from the inventory service. Nothing of this is called yet.
Diffstat (limited to 'OpenSim/Services/InventoryService')
-rw-r--r--OpenSim/Services/InventoryService/InventoryService.cs20
1 files changed, 20 insertions, 0 deletions
diff --git a/OpenSim/Services/InventoryService/InventoryService.cs b/OpenSim/Services/InventoryService/InventoryService.cs
index dd435c9..fc54c12 100644
--- a/OpenSim/Services/InventoryService/InventoryService.cs
+++ b/OpenSim/Services/InventoryService/InventoryService.cs
@@ -273,6 +273,26 @@ namespace OpenSim.Services.InventoryService
273 return root; 273 return root;
274 } 274 }
275 275
276 public Dictionary<AssetType, InventoryFolderBase> GetSystemFolders(UUID userID)
277 {
278 InventoryFolderBase root = GetRootFolder(userID);
279 if (root != null)
280 {
281 InventoryCollection content = GetFolderContent(userID, root.ID);
282 if (content != null)
283 {
284 Dictionary<AssetType, InventoryFolderBase> folders = new Dictionary<AssetType, InventoryFolderBase>();
285 foreach (InventoryFolderBase folder in content.Folders)
286 {
287 if (folder.Type != (short)AssetType.Folder)
288 folders[(AssetType)folder.Type] = folder;
289 }
290 return folders;
291 }
292 }
293 return new Dictionary<AssetType, InventoryFolderBase>();
294 }
295
276 public List<InventoryItemBase> GetActiveGestures(UUID userId) 296 public List<InventoryItemBase> GetActiveGestures(UUID userId)
277 { 297 {
278 List<InventoryItemBase> activeGestures = new List<InventoryItemBase>(); 298 List<InventoryItemBase> activeGestures = new List<InventoryItemBase>();