diff options
author | Teravus Ovares | 2008-09-06 07:52:41 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-09-06 07:52:41 +0000 |
commit | 7d89e122930be39e84a6d174548fa2d12ac0484a (patch) | |
tree | e5aa5752f988a9aba2a969f49e5e208985eda80c /OpenSim/Framework/Communications/Cache/CachedUserInfo.cs | |
parent | * minor: speculatively try a change to bamboo.build to see if this generates ... (diff) | |
download | opensim-SC_OLD-7d89e122930be39e84a6d174548fa2d12ac0484a.zip opensim-SC_OLD-7d89e122930be39e84a6d174548fa2d12ac0484a.tar.gz opensim-SC_OLD-7d89e122930be39e84a6d174548fa2d12ac0484a.tar.bz2 opensim-SC_OLD-7d89e122930be39e84a6d174548fa2d12ac0484a.tar.xz |
* This is the fabled LibOMV update with all of the libOMV types from JHurliman
* This is a HUGE OMG update and will definitely have unknown side effects.. so this is really only for the strong hearted at this point. Regular people should let the dust settle.
* This has been tested to work with most basic functions. However.. make sure you back up 'everything' before using this. It's that big!
* Essentially we're back at square 1 in the testing phase.. so lets identify things that broke.
Diffstat (limited to 'OpenSim/Framework/Communications/Cache/CachedUserInfo.cs')
-rw-r--r-- | OpenSim/Framework/Communications/Cache/CachedUserInfo.cs | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/OpenSim/Framework/Communications/Cache/CachedUserInfo.cs b/OpenSim/Framework/Communications/Cache/CachedUserInfo.cs index 8e3be81..339bb31 100644 --- a/OpenSim/Framework/Communications/Cache/CachedUserInfo.cs +++ b/OpenSim/Framework/Communications/Cache/CachedUserInfo.cs | |||
@@ -30,24 +30,24 @@ using System.Collections.Generic; | |||
30 | using System.Reflection; | 30 | using System.Reflection; |
31 | using System.Threading; | 31 | using System.Threading; |
32 | 32 | ||
33 | using libsecondlife; | 33 | using OpenMetaverse; |
34 | using log4net; | 34 | using log4net; |
35 | 35 | ||
36 | namespace OpenSim.Framework.Communications.Cache | 36 | namespace OpenSim.Framework.Communications.Cache |
37 | { | 37 | { |
38 | internal delegate void AddItemDelegate(InventoryItemBase itemInfo); | 38 | internal delegate void AddItemDelegate(InventoryItemBase itemInfo); |
39 | internal delegate void UpdateItemDelegate(InventoryItemBase itemInfo); | 39 | internal delegate void UpdateItemDelegate(InventoryItemBase itemInfo); |
40 | internal delegate void DeleteItemDelegate(LLUUID itemID); | 40 | internal delegate void DeleteItemDelegate(UUID itemID); |
41 | 41 | ||
42 | internal delegate void CreateFolderDelegate(string folderName, LLUUID folderID, ushort folderType, LLUUID parentID); | 42 | internal delegate void CreateFolderDelegate(string folderName, UUID folderID, ushort folderType, UUID parentID); |
43 | internal delegate void MoveFolderDelegate(LLUUID folderID, LLUUID parentID); | 43 | internal delegate void MoveFolderDelegate(UUID folderID, UUID parentID); |
44 | internal delegate void PurgeFolderDelegate(LLUUID folderID); | 44 | internal delegate void PurgeFolderDelegate(UUID folderID); |
45 | internal delegate void UpdateFolderDelegate(string name, LLUUID folderID, ushort type, LLUUID parentID); | 45 | internal delegate void UpdateFolderDelegate(string name, UUID folderID, ushort type, UUID parentID); |
46 | 46 | ||
47 | internal delegate void SendInventoryDescendentsDelegate( | 47 | internal delegate void SendInventoryDescendentsDelegate( |
48 | IClientAPI client, LLUUID folderID, bool fetchFolders, bool fetchItems); | 48 | IClientAPI client, UUID folderID, bool fetchFolders, bool fetchItems); |
49 | 49 | ||
50 | public delegate void OnItemReceivedDelegate(LLUUID itemID); | 50 | public delegate void OnItemReceivedDelegate(UUID itemID); |
51 | 51 | ||
52 | /// <summary> | 52 | /// <summary> |
53 | /// Stores user profile and inventory data received from backend services for a particular user. | 53 | /// Stores user profile and inventory data received from backend services for a particular user. |
@@ -84,12 +84,12 @@ namespace OpenSim.Framework.Communications.Cache | |||
84 | public InventoryFolderImpl RootFolder { get { return m_rootFolder; } } | 84 | public InventoryFolderImpl RootFolder { get { return m_rootFolder; } } |
85 | private InventoryFolderImpl m_rootFolder; | 85 | private InventoryFolderImpl m_rootFolder; |
86 | 86 | ||
87 | public LLUUID SessionID | 87 | public UUID SessionID |
88 | { | 88 | { |
89 | get { return m_session_id; } | 89 | get { return m_session_id; } |
90 | set { m_session_id = value; } | 90 | set { m_session_id = value; } |
91 | } | 91 | } |
92 | private LLUUID m_session_id = LLUUID.Zero; | 92 | private UUID m_session_id = UUID.Zero; |
93 | 93 | ||
94 | /// <summary> | 94 | /// <summary> |
95 | /// Constructor | 95 | /// Constructor |
@@ -127,9 +127,9 @@ namespace OpenSim.Framework.Communications.Cache | |||
127 | /// Helper function for InventoryReceive() - Store a folder temporarily until we've received entire folder list | 127 | /// Helper function for InventoryReceive() - Store a folder temporarily until we've received entire folder list |
128 | /// </summary> | 128 | /// </summary> |
129 | /// <param name="folder"></param> | 129 | /// <param name="folder"></param> |
130 | private void AddFolderToDictionary(InventoryFolderImpl folder, IDictionary<LLUUID, IList<InventoryFolderImpl>> dictionary) | 130 | private void AddFolderToDictionary(InventoryFolderImpl folder, IDictionary<UUID, IList<InventoryFolderImpl>> dictionary) |
131 | { | 131 | { |
132 | LLUUID parentFolderId = folder.ParentID; | 132 | UUID parentFolderId = folder.ParentID; |
133 | 133 | ||
134 | if (dictionary.ContainsKey(parentFolderId)) | 134 | if (dictionary.ContainsKey(parentFolderId)) |
135 | dictionary[parentFolderId].Add(folder); | 135 | dictionary[parentFolderId].Add(folder); |
@@ -148,9 +148,9 @@ namespace OpenSim.Framework.Communications.Cache | |||
148 | /// heirarchy | 148 | /// heirarchy |
149 | /// </summary> | 149 | /// </summary> |
150 | /// <param name="parentId"> | 150 | /// <param name="parentId"> |
151 | /// A <see cref="LLUUID"/> | 151 | /// A <see cref="UUID"/> |
152 | /// </param> | 152 | /// </param> |
153 | private void ResolveReceivedFolders(InventoryFolderImpl parentFolder, IDictionary<LLUUID, IList<InventoryFolderImpl>> folderDictionary) | 153 | private void ResolveReceivedFolders(InventoryFolderImpl parentFolder, IDictionary<UUID, IList<InventoryFolderImpl>> folderDictionary) |
154 | { | 154 | { |
155 | if (folderDictionary.ContainsKey(parentFolder.ID)) | 155 | if (folderDictionary.ContainsKey(parentFolder.ID)) |
156 | { | 156 | { |
@@ -208,19 +208,19 @@ namespace OpenSim.Framework.Communications.Cache | |||
208 | try | 208 | try |
209 | { | 209 | { |
210 | // collection of all received folders, indexed by their parent ID | 210 | // collection of all received folders, indexed by their parent ID |
211 | IDictionary<LLUUID, IList<InventoryFolderImpl>> receivedFolders = | 211 | IDictionary<UUID, IList<InventoryFolderImpl>> receivedFolders = |
212 | new Dictionary<LLUUID, IList<InventoryFolderImpl>>(); | 212 | new Dictionary<UUID, IList<InventoryFolderImpl>>(); |
213 | 213 | ||
214 | // Take all received folders, find the root folder, and put ther rest into | 214 | // Take all received folders, find the root folder, and put ther rest into |
215 | // the pendingCategorizationFolders collection | 215 | // the pendingCategorizationFolders collection |
216 | foreach (InventoryFolderImpl folder in folders) | 216 | foreach (InventoryFolderImpl folder in folders) |
217 | AddFolderToDictionary(folder, receivedFolders); | 217 | AddFolderToDictionary(folder, receivedFolders); |
218 | 218 | ||
219 | if (!receivedFolders.ContainsKey(LLUUID.Zero)) | 219 | if (!receivedFolders.ContainsKey(UUID.Zero)) |
220 | throw new Exception("Database did not return a root inventory folder"); | 220 | throw new Exception("Database did not return a root inventory folder"); |
221 | else | 221 | else |
222 | { | 222 | { |
223 | IList<InventoryFolderImpl> rootFolderList = receivedFolders[LLUUID.Zero]; | 223 | IList<InventoryFolderImpl> rootFolderList = receivedFolders[UUID.Zero]; |
224 | m_rootFolder = rootFolderList[0]; | 224 | m_rootFolder = rootFolderList[0]; |
225 | if (rootFolderList.Count > 1) | 225 | if (rootFolderList.Count > 1) |
226 | { | 226 | { |
@@ -231,7 +231,7 @@ namespace OpenSim.Framework.Communications.Cache | |||
231 | rootFolderList[i].ID, RootFolder.ID); | 231 | rootFolderList[i].ID, RootFolder.ID); |
232 | } | 232 | } |
233 | } | 233 | } |
234 | receivedFolders.Remove(LLUUID.Zero); | 234 | receivedFolders.Remove(UUID.Zero); |
235 | } | 235 | } |
236 | 236 | ||
237 | // Now take the pendingCategorizationFolders collection, and turn that into a tree, | 237 | // Now take the pendingCategorizationFolders collection, and turn that into a tree, |
@@ -240,7 +240,7 @@ namespace OpenSim.Framework.Communications.Cache | |||
240 | ResolveReceivedFolders(RootFolder, receivedFolders); | 240 | ResolveReceivedFolders(RootFolder, receivedFolders); |
241 | 241 | ||
242 | // Generate a warning for folders that are not part of the heirarchy | 242 | // Generate a warning for folders that are not part of the heirarchy |
243 | foreach (KeyValuePair<LLUUID, IList<InventoryFolderImpl>> folderList in receivedFolders) | 243 | foreach (KeyValuePair<UUID, IList<InventoryFolderImpl>> folderList in receivedFolders) |
244 | { | 244 | { |
245 | foreach (InventoryFolderImpl folder in folderList.Value) | 245 | foreach (InventoryFolderImpl folder in folderList.Value) |
246 | m_log.WarnFormat("[INVENTORY CACHE]: Malformed Database: Unresolved Pending Folder {0}", folder.Name); | 246 | m_log.WarnFormat("[INVENTORY CACHE]: Malformed Database: Unresolved Pending Folder {0}", folder.Name); |
@@ -314,7 +314,7 @@ namespace OpenSim.Framework.Communications.Cache | |||
314 | /// </summary> | 314 | /// </summary> |
315 | /// <param name="parentID"></param> | 315 | /// <param name="parentID"></param> |
316 | /// <returns></returns> | 316 | /// <returns></returns> |
317 | public bool CreateFolder(string folderName, LLUUID folderID, ushort folderType, LLUUID parentID) | 317 | public bool CreateFolder(string folderName, UUID folderID, ushort folderType, UUID parentID) |
318 | { | 318 | { |
319 | // m_log.DebugFormat( | 319 | // m_log.DebugFormat( |
320 | // "[AGENT INVENTORY]: Creating inventory folder {0} {1} for {2} {3}", folderID, folderName, remoteClient.Name, remoteClient.AgentId); | 320 | // "[AGENT INVENTORY]: Creating inventory folder {0} {1} for {2} {3}", folderID, folderName, remoteClient.Name, remoteClient.AgentId); |
@@ -389,7 +389,7 @@ namespace OpenSim.Framework.Communications.Cache | |||
389 | /// <param name="type"></param> | 389 | /// <param name="type"></param> |
390 | /// <param name="name"></param> | 390 | /// <param name="name"></param> |
391 | /// <param name="parentID"></param> | 391 | /// <param name="parentID"></param> |
392 | public bool UpdateFolder(string name, LLUUID folderID, ushort type, LLUUID parentID) | 392 | public bool UpdateFolder(string name, UUID folderID, ushort type, UUID parentID) |
393 | { | 393 | { |
394 | // m_log.DebugFormat( | 394 | // m_log.DebugFormat( |
395 | // "[AGENT INVENTORY]: Updating inventory folder {0} {1} for {2} {3}", folderID, name, remoteClient.Name, remoteClient.AgentId); | 395 | // "[AGENT INVENTORY]: Updating inventory folder {0} {1} for {2} {3}", folderID, name, remoteClient.Name, remoteClient.AgentId); |
@@ -440,7 +440,7 @@ namespace OpenSim.Framework.Communications.Cache | |||
440 | /// | 440 | /// |
441 | /// <param name="folderID"></param> | 441 | /// <param name="folderID"></param> |
442 | /// <param name="parentID"></param> | 442 | /// <param name="parentID"></param> |
443 | public bool MoveFolder(LLUUID folderID, LLUUID parentID) | 443 | public bool MoveFolder(UUID folderID, UUID parentID) |
444 | { | 444 | { |
445 | // m_log.DebugFormat( | 445 | // m_log.DebugFormat( |
446 | // "[AGENT INVENTORY]: Moving inventory folder {0} into folder {1} for {2} {3}", | 446 | // "[AGENT INVENTORY]: Moving inventory folder {0} into folder {1} for {2} {3}", |
@@ -487,7 +487,7 @@ namespace OpenSim.Framework.Communications.Cache | |||
487 | /// </summary> | 487 | /// </summary> |
488 | /// | 488 | /// |
489 | /// <param name="folderID"></param> | 489 | /// <param name="folderID"></param> |
490 | public bool PurgeFolder(LLUUID folderID) | 490 | public bool PurgeFolder(UUID folderID) |
491 | { | 491 | { |
492 | // m_log.InfoFormat("[AGENT INVENTORY]: Purging folder {0} for {1} uuid {2}", | 492 | // m_log.InfoFormat("[AGENT INVENTORY]: Purging folder {0} for {1} uuid {2}", |
493 | // folderID, remoteClient.Name, remoteClient.AgentId); | 493 | // folderID, remoteClient.Name, remoteClient.AgentId); |
@@ -542,7 +542,7 @@ namespace OpenSim.Framework.Communications.Cache | |||
542 | { | 542 | { |
543 | if (m_hasReceivedInventory) | 543 | if (m_hasReceivedInventory) |
544 | { | 544 | { |
545 | if (item.Folder == LLUUID.Zero) | 545 | if (item.Folder == UUID.Zero) |
546 | { | 546 | { |
547 | InventoryFolderImpl f = FindFolderForType(item.AssetType); | 547 | InventoryFolderImpl f = FindFolderForType(item.AssetType); |
548 | if (f != null) | 548 | if (f != null) |
@@ -607,7 +607,7 @@ namespace OpenSim.Framework.Communications.Cache | |||
607 | /// true on a successful delete or a if the request is queued. | 607 | /// true on a successful delete or a if the request is queued. |
608 | /// Returns false on an immediate failure | 608 | /// Returns false on an immediate failure |
609 | /// </returns> | 609 | /// </returns> |
610 | public bool DeleteItem(LLUUID itemID) | 610 | public bool DeleteItem(UUID itemID) |
611 | { | 611 | { |
612 | if (m_hasReceivedInventory) | 612 | if (m_hasReceivedInventory) |
613 | { | 613 | { |
@@ -655,7 +655,7 @@ namespace OpenSim.Framework.Communications.Cache | |||
655 | /// <param name="fetchFolders"></param> | 655 | /// <param name="fetchFolders"></param> |
656 | /// <param name="fetchItems"></param> | 656 | /// <param name="fetchItems"></param> |
657 | /// <returns>true if the request was queued or successfully processed, false otherwise</returns> | 657 | /// <returns>true if the request was queued or successfully processed, false otherwise</returns> |
658 | public bool SendInventoryDecendents(IClientAPI client, LLUUID folderID, bool fetchFolders, bool fetchItems) | 658 | public bool SendInventoryDecendents(IClientAPI client, UUID folderID, bool fetchFolders, bool fetchItems) |
659 | { | 659 | { |
660 | if (m_hasReceivedInventory) | 660 | if (m_hasReceivedInventory) |
661 | { | 661 | { |