diff options
Merge branch 'master' of opensimulator.org:/var/git/opensim
Diffstat (limited to 'OpenSim/Server/Handlers/Inventory/InventoryServerInConnector.cs')
-rw-r--r-- | OpenSim/Server/Handlers/Inventory/InventoryServerInConnector.cs | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/OpenSim/Server/Handlers/Inventory/InventoryServerInConnector.cs b/OpenSim/Server/Handlers/Inventory/InventoryServerInConnector.cs index b295446..0bab5aa 100644 --- a/OpenSim/Server/Handlers/Inventory/InventoryServerInConnector.cs +++ b/OpenSim/Server/Handlers/Inventory/InventoryServerInConnector.cs | |||
@@ -114,12 +114,12 @@ namespace OpenSim.Server.Handlers.Inventory | |||
114 | "POST", "/DeleteItem/", DeleteItems, CheckAuthSession)); | 114 | "POST", "/DeleteItem/", DeleteItems, CheckAuthSession)); |
115 | 115 | ||
116 | m_httpServer.AddStreamHandler( | 116 | m_httpServer.AddStreamHandler( |
117 | new RestDeserialiseSecureHandler<InventoryItemBase, InventoryItemBase>( | 117 | new RestDeserialiseSecureHandler<Guid, InventoryItemBase>( |
118 | "POST", "/QueryItem/", m_InventoryService.GetItem, CheckAuthSession)); | 118 | "POST", "/QueryItem/", GetItem, CheckAuthSession)); |
119 | 119 | ||
120 | m_httpServer.AddStreamHandler( | 120 | m_httpServer.AddStreamHandler( |
121 | new RestDeserialiseSecureHandler<InventoryFolderBase, InventoryFolderBase>( | 121 | new RestDeserialiseSecureHandler<Guid, InventoryFolderBase>( |
122 | "POST", "/QueryFolder/", m_InventoryService.GetFolder, CheckAuthSession)); | 122 | "POST", "/QueryFolder/", GetFolder, CheckAuthSession)); |
123 | 123 | ||
124 | m_httpServer.AddStreamHandler( | 124 | m_httpServer.AddStreamHandler( |
125 | new RestDeserialiseTrustedHandler<Guid, bool>( | 125 | new RestDeserialiseTrustedHandler<Guid, bool>( |
@@ -205,6 +205,16 @@ namespace OpenSim.Server.Handlers.Inventory | |||
205 | return new Dictionary<AssetType, InventoryFolderBase>(); | 205 | return new Dictionary<AssetType, InventoryFolderBase>(); |
206 | } | 206 | } |
207 | 207 | ||
208 | public InventoryItemBase GetItem(Guid guid) | ||
209 | { | ||
210 | return m_InventoryService.GetItem(UUID.Zero, new UUID(guid)); | ||
211 | } | ||
212 | |||
213 | public InventoryFolderBase GetFolder(Guid guid) | ||
214 | { | ||
215 | return m_InventoryService.GetFolder(UUID.Zero, new UUID(guid)); | ||
216 | } | ||
217 | |||
208 | public InventoryCollection GetFolderContent(Guid guid) | 218 | public InventoryCollection GetFolderContent(Guid guid) |
209 | { | 219 | { |
210 | return m_InventoryService.GetFolderContent(UUID.Zero, new UUID(guid)); | 220 | return m_InventoryService.GetFolderContent(UUID.Zero, new UUID(guid)); |