From 49a5a00b8083ab5c2bdaa6a4c2528cc6e0989641 Mon Sep 17 00:00:00 2001
From: MW
Date: Wed, 13 Feb 2008 14:45:13 +0000
Subject: Added a method to access a named folder in a users inventory, to the
inventory Database interfaces. This could be useful for adding a item to a
users inventory from say a web front end application or some other third
party application. [note the method is only currently implemented in the
sqlite provider]
---
OpenSim/Framework/Communications/IInventoryServices.cs | 8 ++++++++
OpenSim/Framework/Communications/InventoryServiceBase.cs | 6 ++++++
2 files changed, 14 insertions(+)
(limited to 'OpenSim/Framework/Communications')
diff --git a/OpenSim/Framework/Communications/IInventoryServices.cs b/OpenSim/Framework/Communications/IInventoryServices.cs
index ddb19ba..0e09613 100644
--- a/OpenSim/Framework/Communications/IInventoryServices.cs
+++ b/OpenSim/Framework/Communications/IInventoryServices.cs
@@ -88,5 +88,13 @@ namespace OpenSim.Framework.Communications
///
///
List RequestFirstLevelFolders(LLUUID userID);
+
+ ///
+ /// Returns the named folder in that users inventory, returns null if folder is not found.
+ ///
+ ///
+ ///
+ ///
+ InventoryFolderBase RequestNamedFolder(LLUUID userID, string folderName);
}
}
\ No newline at end of file
diff --git a/OpenSim/Framework/Communications/InventoryServiceBase.cs b/OpenSim/Framework/Communications/InventoryServiceBase.cs
index 74c07e1..c8748fa 100644
--- a/OpenSim/Framework/Communications/InventoryServiceBase.cs
+++ b/OpenSim/Framework/Communications/InventoryServiceBase.cs
@@ -141,6 +141,12 @@ namespace OpenSim.Framework.Communications
}
// See IInventoryServices
+ public virtual InventoryFolderBase RequestNamedFolder(LLUUID userID, string folderName)
+ {
+ return null;
+ }
+
+ // See IInventoryServices
public void CreateNewUserInventory(LLUUID user)
{
InventoryFolderBase existingRootFolder = RequestUsersRoot(user);
--
cgit v1.1