diff options
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]
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r-- | OpenSim/Framework/Communications/IInventoryServices.cs | 8 | ||||
-rw-r--r-- | OpenSim/Framework/Communications/InventoryServiceBase.cs | 6 |
2 files changed, 14 insertions, 0 deletions
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 | |||
88 | /// <param name="userID"></param> | 88 | /// <param name="userID"></param> |
89 | /// <returns></returns> | 89 | /// <returns></returns> |
90 | List<InventoryFolderBase> RequestFirstLevelFolders(LLUUID userID); | 90 | List<InventoryFolderBase> RequestFirstLevelFolders(LLUUID userID); |
91 | |||
92 | /// <summary> | ||
93 | /// Returns the named folder in that users inventory, returns null if folder is not found. | ||
94 | /// </summary> | ||
95 | /// <param name="userID"></param> | ||
96 | /// <param name="folderName"></param> | ||
97 | /// <returns></returns> | ||
98 | InventoryFolderBase RequestNamedFolder(LLUUID userID, string folderName); | ||
91 | } | 99 | } |
92 | } \ No newline at end of file | 100 | } \ 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 | |||
141 | } | 141 | } |
142 | 142 | ||
143 | // See IInventoryServices | 143 | // See IInventoryServices |
144 | public virtual InventoryFolderBase RequestNamedFolder(LLUUID userID, string folderName) | ||
145 | { | ||
146 | return null; | ||
147 | } | ||
148 | |||
149 | // See IInventoryServices | ||
144 | public void CreateNewUserInventory(LLUUID user) | 150 | public void CreateNewUserInventory(LLUUID user) |
145 | { | 151 | { |
146 | InventoryFolderBase existingRootFolder = RequestUsersRoot(user); | 152 | InventoryFolderBase existingRootFolder = RequestUsersRoot(user); |