diff --git a/OpenSim/Framework/Communications/IInventoryServices.cs b/OpenSim/Framework/Communications/IInventoryServices.cs index f2e5cc52c5..15a2f02ab5 100644 --- a/OpenSim/Framework/Communications/IInventoryServices.cs +++ b/OpenSim/Framework/Communications/IInventoryServices.cs @@ -44,6 +44,8 @@ namespace OpenSim.Framework.Communications void AddNewInventoryItem(LLUUID userID, InventoryItemBase item); void DeleteInventoryItem(LLUUID userID, InventoryItemBase item); void CreateNewUserInventory(LLUUID user); + bool HasInventoryForUser(LLUUID userID); + InventoryFolderBase RequestRootFolder(LLUUID userID); /// /// Returns the root folder plus any folders in root (so down one level in the Inventory folders tree) diff --git a/OpenSim/Framework/Communications/InventoryServiceBase.cs b/OpenSim/Framework/Communications/InventoryServiceBase.cs index 2f466a32b0..a48988d10b 100644 --- a/OpenSim/Framework/Communications/InventoryServiceBase.cs +++ b/OpenSim/Framework/Communications/InventoryServiceBase.cs @@ -194,6 +194,16 @@ namespace OpenSim.Framework.Communications } } + public virtual bool HasInventoryForUser(LLUUID userID) + { + return false; + } + + public InventoryFolderBase RequestRootFolder(LLUUID userID) + { + return RequestUsersRoot(userID); + } + /// /// /// diff --git a/OpenSim/Region/Communications/Local/LocalInventoryService.cs b/OpenSim/Region/Communications/Local/LocalInventoryService.cs index 730c40f13c..da4e473f6c 100644 --- a/OpenSim/Region/Communications/Local/LocalInventoryService.cs +++ b/OpenSim/Region/Communications/Local/LocalInventoryService.cs @@ -83,6 +83,20 @@ namespace OpenSim.Region.Communications.Local DeleteItem(item); } + public override bool HasInventoryForUser(LLUUID userID) + { + InventoryFolderBase root = RequestUsersRoot(userID); + if (root == null) + { + return false; + } + else + { + return true; + } + } + + /// /// Send the given inventory folder and its item contents back to the requester. /// diff --git a/OpenSim/Region/Communications/OGS1/OGS1InventoryService.cs b/OpenSim/Region/Communications/OGS1/OGS1InventoryService.cs index 0d97074930..17807079db 100644 --- a/OpenSim/Region/Communications/OGS1/OGS1InventoryService.cs +++ b/OpenSim/Region/Communications/OGS1/OGS1InventoryService.cs @@ -163,6 +163,16 @@ namespace OpenSim.Region.Communications.OGS1 "POST", _inventoryServerUrl + "/DeleteItem/", item); } + public bool HasInventoryForUser(LLUUID userID) + { + return false; + } + + public InventoryFolderBase RequestRootFolder(LLUUID userID) + { + return null; + } + public void CreateNewUserInventory(LLUUID user) { }