diff options
author | Justin Clark-Casey (justincc) | 2010-06-11 22:11:33 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2010-06-11 22:13:36 +0100 |
commit | 0dce4f1997c57cbdf6bc1f322182c318d3838e40 (patch) | |
tree | d3b564300cefb0de632fa0eadfaed57772c2832e /OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory | |
parent | Allow IInventoryService.GetFolder(folderId, userId) as well as GetFolder(Inve... (diff) | |
download | opensim-SC_OLD-0dce4f1997c57cbdf6bc1f322182c318d3838e40.zip opensim-SC_OLD-0dce4f1997c57cbdf6bc1f322182c318d3838e40.tar.gz opensim-SC_OLD-0dce4f1997c57cbdf6bc1f322182c318d3838e40.tar.bz2 opensim-SC_OLD-0dce4f1997c57cbdf6bc1f322182c318d3838e40.tar.xz |
Revert "Allow IInventoryService.GetFolder(folderId, userId) as well as GetFolder(InventoryFolderBase folder)"
This reverts commit 3525195bc9b5fdfd9799411edd452981ef1f4ebd.
Diffstat (limited to '')
5 files changed, 11 insertions, 33 deletions
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/BaseInventoryConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/BaseInventoryConnector.cs index 5b13d58..1e51187 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/BaseInventoryConnector.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/BaseInventoryConnector.cs | |||
@@ -205,8 +205,6 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Inventory | |||
205 | 205 | ||
206 | public abstract InventoryItemBase GetItem(InventoryItemBase item); | 206 | public abstract InventoryItemBase GetItem(InventoryItemBase item); |
207 | 207 | ||
208 | public abstract InventoryFolderBase GetFolder(UUID folderId, UUID userId); | ||
209 | |||
210 | public abstract InventoryFolderBase GetFolder(InventoryFolderBase folder); | 208 | public abstract InventoryFolderBase GetFolder(InventoryFolderBase folder); |
211 | 209 | ||
212 | /// <summary> | 210 | /// <summary> |
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/HGInventoryBroker.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/HGInventoryBroker.cs index fc30347..e09db15 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/HGInventoryBroker.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/HGInventoryBroker.cs | |||
@@ -1,4 +1,4 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) Contributors, http://opensimulator.org/ | 2 | * Copyright (c) Contributors, http://opensimulator.org/ |
3 | * See CONTRIBUTORS.TXT for a full list of copyright holders. | 3 | * See CONTRIBUTORS.TXT for a full list of copyright holders. |
4 | * | 4 | * |
@@ -470,7 +470,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Inventory | |||
470 | return connector.DeleteItems(ownerID, itemIDs); | 470 | return connector.DeleteItems(ownerID, itemIDs); |
471 | } | 471 | } |
472 | 472 | ||
473 | public InventoryItemBase GetItem(InventoryItemBase item) | 473 | public InventoryItemBase GetItem(InventoryItemBase item) |
474 | { | 474 | { |
475 | if (item == null) | 475 | if (item == null) |
476 | return null; | 476 | return null; |
@@ -486,12 +486,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Inventory | |||
486 | return connector.GetItem(item); | 486 | return connector.GetItem(item); |
487 | } | 487 | } |
488 | 488 | ||
489 | public InventoryFolderBase GetFolder(UUID folderId, UUID userId) | 489 | public InventoryFolderBase GetFolder(InventoryFolderBase folder) |
490 | { | ||
491 | return GetFolder(new InventoryFolderBase(folderId, userId)); | ||
492 | } | ||
493 | |||
494 | public InventoryFolderBase GetFolder(InventoryFolderBase folder) | ||
495 | { | 490 | { |
496 | if (folder == null) | 491 | if (folder == null) |
497 | return null; | 492 | return null; |
@@ -508,12 +503,12 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Inventory | |||
508 | return connector.GetFolder(folder); | 503 | return connector.GetFolder(folder); |
509 | } | 504 | } |
510 | 505 | ||
511 | public bool HasInventoryForUser(UUID userID) | 506 | public bool HasInventoryForUser(UUID userID) |
512 | { | 507 | { |
513 | return false; | 508 | return false; |
514 | } | 509 | } |
515 | 510 | ||
516 | public List<InventoryItemBase> GetActiveGestures(UUID userId) | 511 | public List<InventoryItemBase> GetActiveGestures(UUID userId) |
517 | { | 512 | { |
518 | return new List<InventoryItemBase>(); | 513 | return new List<InventoryItemBase>(); |
519 | } | 514 | } |
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/LocalInventoryServiceConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/LocalInventoryServiceConnector.cs index 76be791..22bd04c 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/LocalInventoryServiceConnector.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/LocalInventoryServiceConnector.cs | |||
@@ -267,11 +267,6 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Inventory | |||
267 | return item; | 267 | return item; |
268 | } | 268 | } |
269 | 269 | ||
270 | public InventoryFolderBase GetFolder(UUID folderId, UUID userId) | ||
271 | { | ||
272 | return GetFolder(new InventoryFolderBase(folderId, userId)); | ||
273 | } | ||
274 | |||
275 | public InventoryFolderBase GetFolder(InventoryFolderBase folder) | 270 | public InventoryFolderBase GetFolder(InventoryFolderBase folder) |
276 | { | 271 | { |
277 | return m_InventoryService.GetFolder(folder); | 272 | return m_InventoryService.GetFolder(folder); |
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/RemoteInventoryServiceConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/RemoteInventoryServiceConnector.cs index 6d43280..aa3b30d 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/RemoteInventoryServiceConnector.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/RemoteInventoryServiceConnector.cs | |||
@@ -307,11 +307,6 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Inventory | |||
307 | return m_RemoteConnector.QueryItem(item.Owner.ToString(), item, sessionID); | 307 | return m_RemoteConnector.QueryItem(item.Owner.ToString(), item, sessionID); |
308 | } | 308 | } |
309 | 309 | ||
310 | public override InventoryFolderBase GetFolder(UUID folderId, UUID userId) | ||
311 | { | ||
312 | return GetFolder(new InventoryFolderBase(folderId, userId)); | ||
313 | } | ||
314 | |||
315 | public override InventoryFolderBase GetFolder(InventoryFolderBase folder) | 310 | public override InventoryFolderBase GetFolder(InventoryFolderBase folder) |
316 | { | 311 | { |
317 | if (folder == null) | 312 | if (folder == null) |
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/RemoteXInventoryServiceConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/RemoteXInventoryServiceConnector.cs index b1e21a1..277060d 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/RemoteXInventoryServiceConnector.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/RemoteXInventoryServiceConnector.cs | |||
@@ -250,7 +250,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Inventory | |||
250 | } | 250 | } |
251 | 251 | ||
252 | 252 | ||
253 | public bool DeleteItems(UUID ownerID, List<UUID> itemIDs) | 253 | public bool DeleteItems(UUID ownerID, List<UUID> itemIDs) |
254 | { | 254 | { |
255 | if (itemIDs == null) | 255 | if (itemIDs == null) |
256 | return false; | 256 | return false; |
@@ -260,7 +260,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Inventory | |||
260 | return m_RemoteConnector.DeleteItems(ownerID, itemIDs); | 260 | return m_RemoteConnector.DeleteItems(ownerID, itemIDs); |
261 | } | 261 | } |
262 | 262 | ||
263 | public InventoryItemBase GetItem(InventoryItemBase item) | 263 | public InventoryItemBase GetItem(InventoryItemBase item) |
264 | { | 264 | { |
265 | m_log.DebugFormat("[XINVENTORY CONNECTOR]: GetItem {0}", item.ID); | 265 | m_log.DebugFormat("[XINVENTORY CONNECTOR]: GetItem {0}", item.ID); |
266 | if (item == null) | 266 | if (item == null) |
@@ -271,12 +271,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Inventory | |||
271 | return m_RemoteConnector.GetItem(item); | 271 | return m_RemoteConnector.GetItem(item); |
272 | } | 272 | } |
273 | 273 | ||
274 | public InventoryFolderBase GetFolder(UUID folderId, UUID userId) | 274 | public InventoryFolderBase GetFolder(InventoryFolderBase folder) |
275 | { | ||
276 | return GetFolder(new InventoryFolderBase(folderId, userId)); | ||
277 | } | ||
278 | |||
279 | public InventoryFolderBase GetFolder(InventoryFolderBase folder) | ||
280 | { | 275 | { |
281 | m_log.DebugFormat("[XINVENTORY CONNECTOR]: GetFolder {0}", folder.ID); | 276 | m_log.DebugFormat("[XINVENTORY CONNECTOR]: GetFolder {0}", folder.ID); |
282 | if (folder == null) | 277 | if (folder == null) |
@@ -285,17 +280,17 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Inventory | |||
285 | return m_RemoteConnector.GetFolder(folder); | 280 | return m_RemoteConnector.GetFolder(folder); |
286 | } | 281 | } |
287 | 282 | ||
288 | public bool HasInventoryForUser(UUID userID) | 283 | public bool HasInventoryForUser(UUID userID) |
289 | { | 284 | { |
290 | return false; | 285 | return false; |
291 | } | 286 | } |
292 | 287 | ||
293 | public List<InventoryItemBase> GetActiveGestures(UUID userId) | 288 | public List<InventoryItemBase> GetActiveGestures(UUID userId) |
294 | { | 289 | { |
295 | return new List<InventoryItemBase>(); | 290 | return new List<InventoryItemBase>(); |
296 | } | 291 | } |
297 | 292 | ||
298 | public int GetAssetPermissions(UUID userID, UUID assetID) | 293 | public int GetAssetPermissions(UUID userID, UUID assetID) |
299 | { | 294 | { |
300 | return m_RemoteConnector.GetAssetPermissions(userID, assetID); | 295 | return m_RemoteConnector.GetAssetPermissions(userID, assetID); |
301 | } | 296 | } |