From 33c4631c6d1912fb4e5af65ece7a2aa80c8b0005 Mon Sep 17 00:00:00 2001 From: MW Date: Tue, 5 Feb 2008 13:02:03 +0000 Subject: some small changes, like adding a couple of extra methods to IInventoryServices so that a check can be done to see if a inventory set exists for a certain user. --- .../Region/Communications/Local/LocalInventoryService.cs | 14 ++++++++++++++ OpenSim/Region/Communications/OGS1/OGS1InventoryService.cs | 10 ++++++++++ 2 files changed, 24 insertions(+) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/Communications/Local/LocalInventoryService.cs b/OpenSim/Region/Communications/Local/LocalInventoryService.cs index 730c40f..da4e473 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 0d97074..1780707 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) { } -- cgit v1.1