Add a QueryItem method to the inventory subsystem. Currently implemented for

MySQL only, stubs for the others. This allows updating the cache with a single
item from the database.
This commit is contained in:
Melanie Thielker
2009-03-21 17:46:58 +00:00
parent 2d387c25b8
commit 1121a214b9
11 changed files with 115 additions and 0 deletions

View File

@@ -296,6 +296,22 @@ namespace OpenSim.Region.Communications.OGS1
return false;
}
public InventoryItemBase QueryItem(InventoryItemBase item)
{
try
{
return SynchronousRestObjectPoster.BeginPostObject<InventoryItemBase, InventoryItemBase>(
"POST", _inventoryServerUrl + "/QueryItem/", item);
}
catch (WebException e)
{
m_log.ErrorFormat("[OGS1 INVENTORY SERVICE]: Query inventory item operation failed, {0} {1}",
e.Source, e.Message);
}
return null;
}
public bool HasInventoryForUser(UUID userID)
{
return false;