aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services/Connectors/Inventory/InventoryServiceConnector.cs
diff options
context:
space:
mode:
authorTeravus Ovares (Dan Olivares)2009-08-11 20:32:05 -0400
committerTeravus Ovares (Dan Olivares)2009-08-11 20:32:05 -0400
commit2e9fc9a22b9718bb96934ed3b51ac0767f9ca4f3 (patch)
treeb8a0cc747dd73da553d8d3504d3c842d9283be73 /OpenSim/Services/Connectors/Inventory/InventoryServiceConnector.cs
parentTry something to help the tests complete. (diff)
parentFixes a race condition in EQ processing that was making EQs pop up again upon... (diff)
downloadopensim-SC-2e9fc9a22b9718bb96934ed3b51ac0767f9ca4f3.zip
opensim-SC-2e9fc9a22b9718bb96934ed3b51ac0767f9ca4f3.tar.gz
opensim-SC-2e9fc9a22b9718bb96934ed3b51ac0767f9ca4f3.tar.bz2
opensim-SC-2e9fc9a22b9718bb96934ed3b51ac0767f9ca4f3.tar.xz
Merge branch 'master' of ssh://MyConnection/var/git/opensim
Diffstat (limited to 'OpenSim/Services/Connectors/Inventory/InventoryServiceConnector.cs')
-rw-r--r--OpenSim/Services/Connectors/Inventory/InventoryServiceConnector.cs49
1 files changed, 49 insertions, 0 deletions
diff --git a/OpenSim/Services/Connectors/Inventory/InventoryServiceConnector.cs b/OpenSim/Services/Connectors/Inventory/InventoryServiceConnector.cs
index ae15cfb..e41b427 100644
--- a/OpenSim/Services/Connectors/Inventory/InventoryServiceConnector.cs
+++ b/OpenSim/Services/Connectors/Inventory/InventoryServiceConnector.cs
@@ -155,6 +155,55 @@ namespace OpenSim.Services.Connectors
155 } 155 }
156 } 156 }
157 157
158 /// <summary>
159 /// Gets the user folder for the given folder-type
160 /// </summary>
161 /// <param name="userID"></param>
162 /// <param name="type"></param>
163 /// <returns></returns>
164 public Dictionary<AssetType, InventoryFolderBase> GetSystemFolders(string userID, UUID sessionID)
165 {
166 // !!! Not just yet.
167 //try
168 //{
169 // List<InventoryFolderBase> folders = SynchronousRestSessionObjectPoster<Guid, List<InventoryFolderBase>>.BeginPostObject(
170 // "POST", m_ServerURI + "/SystemFolders/", new Guid(userID), sessionID.ToString(), userID.ToString());
171 // Dictionary<AssetType, InventoryFolderBase> dFolders = new Dictionary<AssetType, InventoryFolderBase>();
172 // foreach (InventoryFolderBase f in folders)
173 // dFolders[(AssetType)f.Type] = f;
174 // return dFolders;
175 //}
176 //catch (Exception e)
177 //{
178 // m_log.ErrorFormat("[INVENTORY CONNECTOR]: GetSystemFolders operation failed, {0} {1}",
179 // e.Source, e.Message);
180 //}
181
182 return new Dictionary<AssetType, InventoryFolderBase>();
183 }
184
185 /// <summary>
186 /// Gets everything (folders and items) inside a folder
187 /// </summary>
188 /// <param name="userId"></param>
189 /// <param name="folderID"></param>
190 /// <returns></returns>
191 public InventoryCollection GetFolderContent(string userID, UUID folderID, UUID sessionID)
192 {
193 try
194 {
195 return SynchronousRestSessionObjectPoster<Guid, InventoryCollection>.BeginPostObject(
196 "POST", m_ServerURI + "/GetFolderContent/", folderID.Guid, sessionID.ToString(), userID.ToString());
197 }
198 catch (Exception e)
199 {
200 m_log.ErrorFormat("[INVENTORY CONNECTOR]: GetFolderForType operation failed, {0} {1}",
201 e.Source, e.Message);
202 }
203
204 return null;
205 }
206
158 public bool AddFolder(string userID, InventoryFolderBase folder, UUID sessionID) 207 public bool AddFolder(string userID, InventoryFolderBase folder, UUID sessionID)
159 { 208 {
160 try 209 try