C# Class OpenSim.Region.CoreModules.Avatar.Inventory.Archiver.InventoryArchiveReadRequest

Datei anzeigen Open project: N3X15/VoxelSim Class Usage Examples

Public Properties

Property Type Description
MAX_MAJOR_VERSION int

Protected Properties

Property Type Description
archive OpenSim.Framework.Serialization.TarArchiveReader
m_merge bool
m_scene OpenSim.Region.Framework.Scenes.Scene

Public Methods

Method Description
Close ( ) : void
Execute ( ) : HashSet

Execute the request

InventoryArchiveReadRequest ( Scene scene, UserAccount userInfo, string invPath, Stream loadStream, bool merge ) : System
InventoryArchiveReadRequest ( Scene scene, UserAccount userInfo, string invPath, string loadPath, bool merge ) : System
ReplicateArchivePathToUserInventory ( string iarPath, OpenSim.Framework.InventoryFolderBase rootDestFolder, InventoryFolderBase>.Dictionary resolvedFolders, HashSet loadedNodes ) : OpenSim.Framework.InventoryFolderBase

Replicate the inventory paths in the archive to the user's inventory as necessary.

Protected Methods

Method Description
CreateFoldersForPath ( OpenSim.Framework.InventoryFolderBase destFolder, string iarPathExisting, string iarPathToReplicate, InventoryFolderBase>.Dictionary resolvedFolders, HashSet loadedNodes ) : void

Create a set of folders for the given path.

LoadControlFile ( string path, byte data ) : void

Load control file

LoadItem ( byte data, OpenSim.Framework.InventoryFolderBase loadFolder ) : OpenSim.Framework.InventoryItemBase

Load an item from the archive

ResolveDestinationFolder ( OpenSim.Framework.InventoryFolderBase rootDestFolder, string &archivePath, InventoryFolderBase>.Dictionary resolvedFolders ) : OpenSim.Framework.InventoryFolderBase

Resolve a destination folder

Private Methods

Method Description
LoadAsset ( string assetPath, byte data ) : bool

Load an asset

Method Details

Close() public method

public Close ( ) : void
return void

CreateFoldersForPath() protected method

Create a set of folders for the given path.
protected CreateFoldersForPath ( OpenSim.Framework.InventoryFolderBase destFolder, string iarPathExisting, string iarPathToReplicate, InventoryFolderBase>.Dictionary resolvedFolders, HashSet loadedNodes ) : void
destFolder OpenSim.Framework.InventoryFolderBase /// The root folder from which the creation will take place. ///
iarPathExisting string /// the part of the iar path that already exists ///
iarPathToReplicate string /// The path to replicate in the user's inventory from iar ///
resolvedFolders InventoryFolderBase>.Dictionary /// The folders that we have resolved so far for a given archive path. ///
loadedNodes HashSet /// Track the inventory nodes created. ///
return void

Execute() public method

Execute the request
public Execute ( ) : HashSet
return HashSet

InventoryArchiveReadRequest() public method

public InventoryArchiveReadRequest ( Scene scene, UserAccount userInfo, string invPath, Stream loadStream, bool merge ) : System
scene OpenSim.Region.Framework.Scenes.Scene
userInfo OpenSim.Services.Interfaces.UserAccount
invPath string
loadStream Stream
merge bool
return System

InventoryArchiveReadRequest() public method

public InventoryArchiveReadRequest ( Scene scene, UserAccount userInfo, string invPath, string loadPath, bool merge ) : System
scene OpenSim.Region.Framework.Scenes.Scene
userInfo OpenSim.Services.Interfaces.UserAccount
invPath string
loadPath string
merge bool
return System

LoadControlFile() protected method

Load control file
protected LoadControlFile ( string path, byte data ) : void
path string
data byte
return void

LoadItem() protected method

Load an item from the archive
protected LoadItem ( byte data, OpenSim.Framework.InventoryFolderBase loadFolder ) : OpenSim.Framework.InventoryItemBase
data byte The raw item data
loadFolder OpenSim.Framework.InventoryFolderBase
return OpenSim.Framework.InventoryItemBase

ReplicateArchivePathToUserInventory() public method

Replicate the inventory paths in the archive to the user's inventory as necessary.
public ReplicateArchivePathToUserInventory ( string iarPath, OpenSim.Framework.InventoryFolderBase rootDestFolder, InventoryFolderBase>.Dictionary resolvedFolders, HashSet loadedNodes ) : OpenSim.Framework.InventoryFolderBase
iarPath string The item archive path to replicate
rootDestFolder OpenSim.Framework.InventoryFolderBase
resolvedFolders InventoryFolderBase>.Dictionary /// The folders that we have resolved so far for a given archive path. /// This method will add more folders if necessary ///
loadedNodes HashSet /// Track the inventory nodes created. ///
return OpenSim.Framework.InventoryFolderBase

ResolveDestinationFolder() protected method

Resolve a destination folder
protected ResolveDestinationFolder ( OpenSim.Framework.InventoryFolderBase rootDestFolder, string &archivePath, InventoryFolderBase>.Dictionary resolvedFolders ) : OpenSim.Framework.InventoryFolderBase
rootDestFolder OpenSim.Framework.InventoryFolderBase
archivePath string /// The item archive path to resolve. The portion of the path passed back is that /// which corresponds to the resolved desintation folder. /// /// The root folder for the inventory load ///
resolvedFolders InventoryFolderBase>.Dictionary /// The folders that we have resolved so far for a given archive path. ///
return OpenSim.Framework.InventoryFolderBase

Property Details

MAX_MAJOR_VERSION public_oe static_oe property

The maximum major version of archive that we can read. Minor versions shouldn't need a max number since version bumps here should be compatible.
public static int MAX_MAJOR_VERSION
return int

archive protected_oe property

protected TarArchiveReader,OpenSim.Framework.Serialization archive
return OpenSim.Framework.Serialization.TarArchiveReader

m_merge protected_oe property

Do we want to merge this load with existing inventory?
protected bool m_merge
return bool

m_scene protected_oe property

protected Scene,OpenSim.Region.Framework.Scenes m_scene
return OpenSim.Region.Framework.Scenes.Scene