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.

ThreadPoolClientBranch
MW 2008-02-05 13:02:03 +00:00
parent 80b8630e19
commit 33c4631c6d
4 changed files with 36 additions and 0 deletions

View File

@ -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);
/// <summary>
/// Returns the root folder plus any folders in root (so down one level in the Inventory folders tree)

View File

@ -194,6 +194,16 @@ namespace OpenSim.Framework.Communications
}
}
public virtual bool HasInventoryForUser(LLUUID userID)
{
return false;
}
public InventoryFolderBase RequestRootFolder(LLUUID userID)
{
return RequestUsersRoot(userID);
}
/// <summary>
///
/// </summary>

View File

@ -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;
}
}
/// <summary>
/// Send the given inventory folder and its item contents back to the requester.
/// </summary>

View File

@ -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)
{
}