From 40176c12f94044527e82972cbb72cce8caa5ce2b Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Wed, 23 Apr 2008 22:13:57 +0000 Subject: * Implement full grid mode Trash empty * Now, emptying the trash should remove folders and the items they contain as well as items which were not in a subfolder. * This will only work once both the region and grid servers have reached this revision. * You may also need to clear your cache before this will work * Refactoring to follow. --- .../Communications/OGS1/OGS1InventoryService.cs | 38 ++++++++++++++++++++-- 1 file changed, 36 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/Communications/OGS1/OGS1InventoryService.cs b/OpenSim/Region/Communications/OGS1/OGS1InventoryService.cs index 8c27cb1..65f3ee3 100644 --- a/OpenSim/Region/Communications/OGS1/OGS1InventoryService.cs +++ b/OpenSim/Region/Communications/OGS1/OGS1InventoryService.cs @@ -53,7 +53,11 @@ namespace OpenSim.Region.Communications.OGS1 #region IInventoryServices Members - // See IInventoryServices + /// + /// + /// + /// + /// public void RequestInventoryForUser(LLUUID userID, InventoryReceiptCallback callback) { if (!m_RequestingInventory.ContainsKey(userID)) @@ -148,6 +152,11 @@ namespace OpenSim.Region.Communications.OGS1 } } + /// + /// + /// + /// + /// public void AddNewInventoryFolder(LLUUID userID, InventoryFolderBase folder) { try @@ -162,6 +171,11 @@ namespace OpenSim.Region.Communications.OGS1 } } + /// + /// + /// + /// + /// public void MoveInventoryFolder(LLUUID userID, InventoryFolderBase folder) { try @@ -181,11 +195,26 @@ namespace OpenSim.Region.Communications.OGS1 /// /// /// + /// public void PurgeInventoryFolder(LLUUID userID, InventoryFolderBase folder) { - // XXX No implementation yet (temporarily)! + try + { + SynchronousRestObjectPoster.BeginPostObject( + "POST", _inventoryServerUrl + "/PurgeFolder/", folder); + } + catch (WebException e) + { + m_log.ErrorFormat("[OGS1 INVENTORY SERVICE]: Move inventory folder operation failed, {0} {1}", + e.Source, e.Message); + } } + /// + /// + /// + /// + /// public void AddNewInventoryItem(LLUUID userID, InventoryItemBase item) { try @@ -200,6 +229,11 @@ namespace OpenSim.Region.Communications.OGS1 } } + /// + /// + /// + /// + /// public void DeleteInventoryItem(LLUUID userID, InventoryItemBase item) { try -- cgit v1.1