C# Class Universe.Modules.Archivers.InventoryArchiveReadRequest

Afficher le fichier Open project: Virtual-Universe/Virtual-Universe Class Usage Examples

Protected Properties

Свойство Type Description
archive Universe.Framework.Serialization.TarArchiveReader
m_assetsIncluded bool
m_creatorIdForAssetId UUID>.Dictionary
m_merge bool
m_registry IRegistryCore

Méthodes publiques

Méthode Description
AddInventoryItem ( InventoryItemBase item ) : bool
Close ( ) : void
Execute ( bool loadAll ) : HashSet

Execute the request

InventoryArchiveReadRequest ( IRegistryCore registry, UserAccount userInfo, string invPath, string loadPath, bool merge, UUID overwriteCreator ) : System
LoadControlFile ( byte data ) : void

Loads the archive.xml control file.

ReplicateArchivePathToUserInventory ( string iarPath, InventoryFolderBase rootDestFolder, InventoryFolderBase>.Dictionary &resolvedFolders, HashSet &loadedNodes ) : InventoryFolderBase

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

Méthodes protégées

Méthode Description
CreateFoldersForPath ( InventoryFolderBase destFolder, string iarPathExisting, string iarPathToReplicate, InventoryFolderBase>.Dictionary &resolvedFolders, HashSet &loadedNodes ) : void

Create a set of folders for the given path.

LoadItem ( byte data, InventoryFolderBase loadFolder ) : InventoryItemBase

Load an item from the archive

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

Resolve a destination folder

Private Methods

Méthode Description
InventoryArchiveReadRequest ( ) : System
LoadAsset ( string assetPath, byte data ) : bool

Load an asset

Method Details

AddInventoryItem() public méthode

public AddInventoryItem ( InventoryItemBase item ) : bool
item Universe.Framework.Services.ClassHelpers.Inventory.InventoryItemBase
Résultat bool

Close() public méthode

public Close ( ) : void
Résultat void

CreateFoldersForPath() protected méthode

Create a set of folders for the given path.
protected CreateFoldersForPath ( InventoryFolderBase destFolder, string iarPathExisting, string iarPathToReplicate, InventoryFolderBase>.Dictionary &resolvedFolders, HashSet &loadedNodes ) : void
destFolder Universe.Framework.Services.ClassHelpers.Inventory.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. ///
Résultat void

Execute() public méthode

Execute the request
public Execute ( bool loadAll ) : HashSet
loadAll bool
Résultat HashSet

InventoryArchiveReadRequest() public méthode

public InventoryArchiveReadRequest ( IRegistryCore registry, UserAccount userInfo, string invPath, string loadPath, bool merge, UUID overwriteCreator ) : System
registry IRegistryCore
userInfo Universe.Framework.Services.UserAccount
invPath string
loadPath string
merge bool
overwriteCreator UUID
Résultat System

LoadControlFile() public méthode

Loads the archive.xml control file.
public LoadControlFile ( byte data ) : void
data byte Data.
Résultat void

LoadItem() protected méthode

Load an item from the archive
protected LoadItem ( byte data, InventoryFolderBase loadFolder ) : InventoryItemBase
data byte The raw item data
loadFolder Universe.Framework.Services.ClassHelpers.Inventory.InventoryFolderBase
Résultat Universe.Framework.Services.ClassHelpers.Inventory.InventoryItemBase

ReplicateArchivePathToUserInventory() public méthode

Replicate the inventory paths in the archive to the user's inventory as necessary.
public ReplicateArchivePathToUserInventory ( string iarPath, InventoryFolderBase rootDestFolder, InventoryFolderBase>.Dictionary &resolvedFolders, HashSet &loadedNodes ) : InventoryFolderBase
iarPath string The item archive path to replicate
rootDestFolder Universe.Framework.Services.ClassHelpers.Inventory.InventoryFolderBase The root folder for the inventory load
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. ///
Résultat Universe.Framework.Services.ClassHelpers.Inventory.InventoryFolderBase

ResolveDestinationFolder() protected méthode

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

Property Details

archive protected_oe property

protected TarArchiveReader,Universe.Framework.Serialization archive
Résultat Universe.Framework.Serialization.TarArchiveReader

m_assetsIncluded protected_oe property

protected bool m_assetsIncluded
Résultat bool

m_creatorIdForAssetId protected_oe property

Record the creator id that should be associated with an asset. This is used to adjust asset creator ids after OSP resolution (since OSP creators are only stored in the item
protected Dictionary m_creatorIdForAssetId
Résultat UUID>.Dictionary

m_merge protected_oe property

Do we want to merge this load with existing inventory?
protected bool m_merge
Résultat bool

m_registry protected_oe property

protected IRegistryCore m_registry
Résultat IRegistryCore