mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
a few more changes to Xinventory service
This commit is contained in:
@@ -74,6 +74,16 @@ namespace OpenSim.Data.PGSQL
|
||||
return m_Items.Get(fields, vals);
|
||||
}
|
||||
|
||||
public XInventoryItem[] GetItems(string field, string[] vals)
|
||||
{
|
||||
return m_Items.Get(field, vals);
|
||||
}
|
||||
|
||||
public XInventoryItem[] GetItems(string field, string id)
|
||||
{
|
||||
return m_Items.Get(field, id);
|
||||
}
|
||||
|
||||
public bool StoreFolder(XInventoryFolder folder)
|
||||
{
|
||||
if (folder.folderName.Length > 64)
|
||||
@@ -116,6 +126,13 @@ namespace OpenSim.Data.PGSQL
|
||||
return m_Items.MoveItem(id, newParent);
|
||||
}
|
||||
|
||||
public bool MoveItems(string[] ids, string[] newParents)
|
||||
{
|
||||
for(int i = 0; i< ids.Length; ++i)
|
||||
m_Items.MoveItem(ids[i], newParents[i]);
|
||||
return true;
|
||||
}
|
||||
|
||||
public bool MoveFolder(string id, string newParent)
|
||||
{
|
||||
return m_Folders.MoveFolder(id, newParent);
|
||||
|
||||
Reference in New Issue
Block a user