29 using System.Collections.Generic;
31 using System.Reflection;
34 using OpenSim.Framework;
36 using OpenSim.Data.Null;
38 namespace OpenSim.Tests.Common
42 private Dictionary<UUID, XInventoryFolder> m_allFolders =
new Dictionary<UUID, XInventoryFolder>();
43 private Dictionary<UUID, XInventoryItem> m_allItems =
new Dictionary<UUID, XInventoryItem>();
52 List<XInventoryItem> origItems = Get<XInventoryItem>(fields, vals, m_allItems.Values.ToList());
54 XInventoryItem[] items = origItems.Select(i => i.Clone()).ToArray();
67 List<XInventoryFolder> origFolders
68 = Get<XInventoryFolder>(fields, vals, m_allFolders.Values.ToList());
80 m_allFolders[folder.folderID] = folder.Clone();
89 m_allItems[item.inventoryID] = item.Clone();
100 return DeleteFolders(
new string[] { field },
new string[] { val });
106 Array.ForEach(foldersToDelete, f => m_allFolders.Remove(f.folderID));
113 return DeleteItems(
new string[] { field },
new string[] { val });
119 Array.ForEach(itemsToDelete, i => m_allItems.Remove(i.inventoryID));
124 public bool MoveItem(
string id,
string newParent) {
throw new NotImplementedException(); }
134 folder.parentFolderID =
new UUID(newParent);
bool DeleteFolders(string field, string val)
Delete folders where field == val
XInventoryFolder[] GetFolders(string[] fields, string[] vals)
bool DeleteItems(string field, string val)
Delete items where field == val
bool DeleteItems(string[] fields, string[] vals)
Delete items where field1 == val1, field2 == val2...
int GetAssetPermissions(UUID principalID, UUID assetID)
bool StoreItem(XInventoryItem item)
XInventoryItem[] GetActiveGestures(UUID principalID)
XInventoryItem[] GetItems(string[] fields, string[] vals)
bool MoveItem(string id, string newParent)
Move an item to another folder.
bool StoreFolder(XInventoryFolder folder)
bool DeleteFolders(string[] fields, string[] vals)
Delete folders where field1 == val1, field2 == val2...
bool MoveFolder(string id, string newParent)
Move a folder to another folder.
Not a proper generic data handler yet - probably needs to actually store the data as well instead of ...
TestXInventoryDataPlugin(string conn, string realm)