From 1e1b2ab221851efc414678b7ea52ef2ca788ce9f Mon Sep 17 00:00:00 2001 From: Diva Canto Date: Sun, 10 Jan 2010 10:40:07 -0800 Subject: * OMG! All but one references to UserProfileCacheService have been rerouted! * HG is seriously broken here * Compiles. Untested. --- .../Inventory/Archiver/InventoryArchiveWriteRequest.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveWriteRequest.cs') diff --git a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveWriteRequest.cs b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveWriteRequest.cs index 8f75983..ab5dafd 100644 --- a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveWriteRequest.cs +++ b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveWriteRequest.cs @@ -41,6 +41,7 @@ using OpenSim.Framework.Communications.Cache; using OpenSim.Framework.Communications.Osp; using OpenSim.Region.CoreModules.World.Archiver; using OpenSim.Region.Framework.Scenes; +using OpenSim.Services.Interfaces; namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver { @@ -54,7 +55,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver private const string STAR_WILDCARD = "*"; private InventoryArchiverModule m_module; - private CachedUserInfo m_userInfo; + private UserAccount m_userInfo; private string m_invPath; protected TarArchiveWriter m_archiveWriter; protected UuidGatherer m_assetGatherer; @@ -89,7 +90,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver /// public InventoryArchiveWriteRequest( Guid id, InventoryArchiverModule module, Scene scene, - CachedUserInfo userInfo, string invPath, string savePath) + UserAccount userInfo, string invPath, string savePath) : this( id, module, @@ -105,7 +106,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver /// public InventoryArchiveWriteRequest( Guid id, InventoryArchiverModule module, Scene scene, - CachedUserInfo userInfo, string invPath, Stream saveStream) + UserAccount userInfo, string invPath, Stream saveStream) { m_id = id; m_module = module; @@ -215,7 +216,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver { InventoryFolderBase inventoryFolder = null; InventoryItemBase inventoryItem = null; - InventoryFolderBase rootFolder = m_scene.InventoryService.GetRootFolder(m_userInfo.UserProfile.ID); + InventoryFolderBase rootFolder = m_scene.InventoryService.GetRootFolder(m_userInfo.PrincipalID); bool foundStar = false; @@ -318,14 +319,13 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver foreach (UUID creatorId in m_userUuids.Keys) { // Record the creator of this item - CachedUserInfo creator - = m_scene.CommsManager.UserProfileCacheService.GetUserDetails(creatorId); + UserAccount creator = m_scene.UserAccountService.GetUserAccount(m_scene.RegionInfo.ScopeID, creatorId); if (creator != null) { m_archiveWriter.WriteFile( - ArchiveConstants.USERS_PATH + creator.UserProfile.Name + ".xml", - UserProfileSerializer.Serialize(creator.UserProfile)); + ArchiveConstants.USERS_PATH + creator.FirstName + " " + creator.LastName + ".xml", + UserProfileSerializer.Serialize(creator)); } else { -- cgit v1.1