From cdcbc48534f19afe7cbdeb6c690e6b7d9f2ff099 Mon Sep 17 00:00:00 2001
From: Diva Canto
Date: Mon, 10 Aug 2009 20:31:51 -0700
Subject: Added two new methods to IIventoryService -- GetFolderForType and
GetFolderContent. Some meat to it, but not completed. None of this code is
called anywhere yet.
---
.../Inventory/HGInventoryServiceConnector.cs | 42 ++++++++++++++++++++++
1 file changed, 42 insertions(+)
(limited to 'OpenSim/Services/Connectors/Inventory/HGInventoryServiceConnector.cs')
diff --git a/OpenSim/Services/Connectors/Inventory/HGInventoryServiceConnector.cs b/OpenSim/Services/Connectors/Inventory/HGInventoryServiceConnector.cs
index 01e517c..b168871 100644
--- a/OpenSim/Services/Connectors/Inventory/HGInventoryServiceConnector.cs
+++ b/OpenSim/Services/Connectors/Inventory/HGInventoryServiceConnector.cs
@@ -120,6 +120,48 @@ namespace OpenSim.Services.Connectors.Inventory
}
+ ///
+ /// Gets the user folder for the given folder-type
+ ///
+ ///
+ ///
+ ///
+ public List GetSystemFolders(string id, UUID sessionID)
+ {
+ m_log.Debug("[HGInventory]: GetSystemFolders " + id);
+ string url = string.Empty;
+ string userID = string.Empty;
+
+ if (StringToUrlAndUserID(id, out url, out userID))
+ {
+ ISessionAuthInventoryService connector = GetConnector(url);
+ return connector.GetSystemFolders(userID, sessionID);
+ }
+
+ return new List();
+ }
+
+ ///
+ /// Gets everything (folders and items) inside a folder
+ ///
+ ///
+ ///
+ ///
+ public InventoryCollection GetFolderContent(string id, UUID folderID, UUID sessionID)
+ {
+ m_log.Debug("[HGInventory]: GetSystemFolders " + id);
+ string url = string.Empty;
+ string userID = string.Empty;
+
+ if (StringToUrlAndUserID(id, out url, out userID))
+ {
+ ISessionAuthInventoryService connector = GetConnector(url);
+ return connector.GetFolderContent(userID, folderID, sessionID);
+ }
+
+ return null;
+ }
+
public bool AddFolder(string id, InventoryFolderBase folder, UUID sessionID)
{
string url = string.Empty;
--
cgit v1.1