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.
parent
80b8630e19
commit
33c4631c6d
|
@ -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)
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue