diff options
author | diva | 2009-06-10 13:18:32 +0000 |
---|---|---|
committer | diva | 2009-06-10 13:18:32 +0000 |
commit | 0f367bd7bbc5d22d4834e1eb0f1671381485143e (patch) | |
tree | eeb4290f1146601f8fd97dc164e0a7f247a2fafb /OpenSim/ApplicationPlugins | |
parent | From: Alan Webb <alan_webb@us.ibm.com> (diff) | |
download | opensim-SC-0f367bd7bbc5d22d4834e1eb0f1671381485143e.zip opensim-SC-0f367bd7bbc5d22d4834e1eb0f1671381485143e.tar.gz opensim-SC-0f367bd7bbc5d22d4834e1eb0f1671381485143e.tar.bz2 opensim-SC-0f367bd7bbc5d22d4834e1eb0f1671381485143e.tar.xz |
Heart surgery no.2: the inventory service hooks.
Several improvements in the connectors themselves.
Several improvements in configurations.
Needed to add a hack in IUserService and UserManagerBase, to be removed when that service is refactored.
Diffstat (limited to '')
3 files changed, 9 insertions, 9 deletions
diff --git a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs index 189bd29..f768516 100644 --- a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs +++ b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs | |||
@@ -1290,15 +1290,15 @@ namespace OpenSim.ApplicationPlugins.RemoteController | |||
1290 | 1290 | ||
1291 | UICallback sic = new UICallback(); | 1291 | UICallback sic = new UICallback(); |
1292 | UICallback dic = new UICallback(); | 1292 | UICallback dic = new UICallback(); |
1293 | IInventoryServices iserv = m_app.CommunicationsManager.InventoryService; | 1293 | IInventoryService iserv = m_app.SceneManager.CurrentOrFirstScene.InventoryService; |
1294 | 1294 | ||
1295 | try | 1295 | try |
1296 | { | 1296 | { |
1297 | 1297 | ||
1298 | Dictionary<UUID,UUID> imap = new Dictionary<UUID,UUID>(); | 1298 | Dictionary<UUID,UUID> imap = new Dictionary<UUID,UUID>(); |
1299 | 1299 | ||
1300 | iserv.RequestInventoryForUser(dest, dic.callback); | 1300 | iserv.GetUserInventory(dest, dic.callback); |
1301 | iserv.RequestInventoryForUser(srca, sic.callback); | 1301 | iserv.GetUserInventory(srca, sic.callback); |
1302 | 1302 | ||
1303 | dic.GetInventory(); | 1303 | dic.GetInventory(); |
1304 | sic.GetInventory(); | 1304 | sic.GetInventory(); |
@@ -1436,8 +1436,8 @@ namespace OpenSim.ApplicationPlugins.RemoteController | |||
1436 | bool select = false; | 1436 | bool select = false; |
1437 | 1437 | ||
1438 | UICallback uic; | 1438 | UICallback uic; |
1439 | IInventoryServices iserv = m_app.CommunicationsManager.InventoryService; | 1439 | IInventoryService iserv = m_app.SceneManager.CurrentOrFirstScene.InventoryService; |
1440 | IAssetService aserv = m_app.SceneManager.CurrentOrFirstScene.AssetService; | 1440 | IAssetService aserv = m_app.SceneManager.CurrentOrFirstScene.AssetService; |
1441 | 1441 | ||
1442 | doc.LoadXml(File.ReadAllText(dafn)); | 1442 | doc.LoadXml(File.ReadAllText(dafn)); |
1443 | 1443 | ||
@@ -1511,7 +1511,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController | |||
1511 | { | 1511 | { |
1512 | uic = new UICallback(); | 1512 | uic = new UICallback(); |
1513 | // Request the inventory | 1513 | // Request the inventory |
1514 | iserv.RequestInventoryForUser(ID, uic.callback); | 1514 | iserv.GetUserInventory(ID, uic.callback); |
1515 | 1515 | ||
1516 | // While the inventory is being fetched, setup for appearance processing | 1516 | // While the inventory is being fetched, setup for appearance processing |
1517 | if ((mava = m_app.CommunicationsManager.AvatarService.GetUserAppearance(ID)) == null) | 1517 | if ((mava = m_app.CommunicationsManager.AvatarService.GetUserAppearance(ID)) == null) |
diff --git a/OpenSim/ApplicationPlugins/Rest/Inventory/Rest.cs b/OpenSim/ApplicationPlugins/Rest/Inventory/Rest.cs index 961537c..1e3539f 100644 --- a/OpenSim/ApplicationPlugins/Rest/Inventory/Rest.cs +++ b/OpenSim/ApplicationPlugins/Rest/Inventory/Rest.cs | |||
@@ -97,9 +97,9 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory | |||
97 | get { return main.CommunicationsManager; } | 97 | get { return main.CommunicationsManager; } |
98 | } | 98 | } |
99 | 99 | ||
100 | internal static IInventoryServices InventoryServices | 100 | internal static IInventoryService InventoryServices |
101 | { | 101 | { |
102 | get { return Comms.InventoryService; } | 102 | get { return main.SceneManager.CurrentOrFirstScene.InventoryService; } |
103 | } | 103 | } |
104 | 104 | ||
105 | internal static IUserService UserServices | 105 | internal static IUserService UserServices |
diff --git a/OpenSim/ApplicationPlugins/Rest/Inventory/RestInventoryServices.cs b/OpenSim/ApplicationPlugins/Rest/Inventory/RestInventoryServices.cs index 695784b..a1cd116 100644 --- a/OpenSim/ApplicationPlugins/Rest/Inventory/RestInventoryServices.cs +++ b/OpenSim/ApplicationPlugins/Rest/Inventory/RestInventoryServices.cs | |||
@@ -270,7 +270,7 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory | |||
270 | Rest.Log.DebugFormat("{0} Inventory Root retrieved for {1} {2}", | 270 | Rest.Log.DebugFormat("{0} Inventory Root retrieved for {1} {2}", |
271 | MsgId, rdata.userProfile.FirstName, rdata.userProfile.SurName); | 271 | MsgId, rdata.userProfile.FirstName, rdata.userProfile.SurName); |
272 | 272 | ||
273 | Rest.InventoryServices.RequestInventoryForUser(rdata.uuid, rdata.GetUserInventory); | 273 | Rest.InventoryServices.GetUserInventory(rdata.uuid, rdata.GetUserInventory); |
274 | 274 | ||
275 | Rest.Log.DebugFormat("{0} Inventory catalog requested for {1} {2}", | 275 | Rest.Log.DebugFormat("{0} Inventory catalog requested for {1} {2}", |
276 | MsgId, rdata.userProfile.FirstName, rdata.userProfile.SurName); | 276 | MsgId, rdata.userProfile.FirstName, rdata.userProfile.SurName); |