aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r--OpenSim/Framework/Communications/InventoryServiceBase.cs33
1 files changed, 1 insertions, 32 deletions
diff --git a/OpenSim/Framework/Communications/InventoryServiceBase.cs b/OpenSim/Framework/Communications/InventoryServiceBase.cs
index 719e0d6..a0228e8 100644
--- a/OpenSim/Framework/Communications/InventoryServiceBase.cs
+++ b/OpenSim/Framework/Communications/InventoryServiceBase.cs
@@ -75,42 +75,11 @@ namespace OpenSim.Framework.Communications
75 #endregion 75 #endregion
76 76
77 #region IInventoryServices methods 77 #region IInventoryServices methods
78
79 /// <summary>
80 /// Returns the root folder plus any folders in root (so down one level in the Inventory folders tree)
81 /// for the given user.
82 /// </summary>
83 /// <param name="userID"></param>
84 /// <returns></returns>
85 public List<InventoryFolderBase> RequestFirstLevelFolders(LLUUID userID)
86 {
87 List<InventoryFolderBase> inventoryList = new List<InventoryFolderBase>();
88 InventoryFolderBase rootFolder = null;
89
90 foreach (KeyValuePair<string, IInventoryData> plugin in m_plugins)
91 {
92 rootFolder = plugin.Value.getUserRootFolder(userID);
93 if (rootFolder != null)
94 {
95 m_log.Info(
96 "[INVENTORY]: Found root folder for user with ID " + userID + ". Retrieving inventory contents.");
97
98 inventoryList = plugin.Value.getInventoryFolders(rootFolder.folderID);
99 inventoryList.Insert(0, rootFolder);
100 return inventoryList;
101 }
102 }
103
104 m_log.Warn(
105 "[INVENTORY]: Could not find a root folder belonging to user with ID " + userID);
106
107 return inventoryList;
108 }
109 78
110 // See IInventoryServices 79 // See IInventoryServices
111 public List<InventoryFolderBase> GetInventorySkeleton(LLUUID userId) 80 public List<InventoryFolderBase> GetInventorySkeleton(LLUUID userId)
112 { 81 {
113 m_log.DebugFormat("[AGENT INVENTORY]: Getting inventory skeleton for {0}", userId); 82 //m_log.DebugFormat("[AGENT INVENTORY]: Getting inventory skeleton for {0}", userId);
114 83
115 List<InventoryFolderBase> userFolders = new List<InventoryFolderBase>(); 84 List<InventoryFolderBase> userFolders = new List<InventoryFolderBase>();
116 85