|
| InventoryArchiveReadRequest (IInventoryService inv, IAssetService assets, IUserAccountService uacc, UserAccount userInfo, string invPath, string loadPath, bool merge) |
|
| InventoryArchiveReadRequest (UUID id, InventoryArchiverModule module, IInventoryService inv, IAssetService assets, IUserAccountService uacc, UserAccount userInfo, string invPath, string loadPath, bool merge) |
|
| InventoryArchiveReadRequest (UUID id, InventoryArchiverModule module, IInventoryService inv, IAssetService assets, IUserAccountService uacc, UserAccount userInfo, string invPath, Stream loadStream, bool merge) |
|
HashSet< InventoryNodeBase > | Execute () |
| Execute the request More...
|
|
void | Close () |
|
InventoryFolderBase | ReplicateArchivePathToUserInventory (string iarPath, InventoryFolderBase rootDestFolder, Dictionary< string, InventoryFolderBase > resolvedFolders, HashSet< InventoryNodeBase > loadedNodes) |
| Replicate the inventory paths in the archive to the user's inventory as necessary. More...
|
|
void | LoadControlFile (string path, byte[] data) |
| Load control file More...
|
|
|
static int | MAX_MAJOR_VERSION = 1 |
| 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. More...
|
|
|
InventoryFolderBase | ResolveDestinationFolder (InventoryFolderBase rootDestFolder, ref string archivePath, Dictionary< string, InventoryFolderBase > resolvedFolders) |
| Resolve a destination folder More...
|
|
void | CreateFoldersForPath (InventoryFolderBase destFolder, string iarPathExisting, string iarPathToReplicate, Dictionary< string, InventoryFolderBase > resolvedFolders, HashSet< InventoryNodeBase > loadedNodes) |
| Create a set of folders for the given path. More...
|
|
InventoryItemBase | LoadItem (byte[] data, InventoryFolderBase loadFolder) |
| Load an item from the archive More...
|
|
void | LoadInventoryFile (string path, TarArchiveReader.TarEntryType entryType, byte[] data) |
| Load inventory file More...
|
|
void | LoadAssetFile (string path, byte[] data) |
| Load asset file More...
|
|
void OpenSim.Region.CoreModules.Avatar.Inventory.Archiver.InventoryArchiveReadRequest.Close |
( |
| ) |
|
|
inline |
void OpenSim.Region.CoreModules.Avatar.Inventory.Archiver.InventoryArchiveReadRequest.CreateFoldersForPath |
( |
InventoryFolderBase |
destFolder, |
|
|
string |
iarPathExisting, |
|
|
string |
iarPathToReplicate, |
|
|
Dictionary< string, InventoryFolderBase > |
resolvedFolders, |
|
|
HashSet< InventoryNodeBase > |
loadedNodes |
|
) |
| |
|
inlineprotected |
Create a set of folders for the given path.
- Parameters
-
destFolder | The root folder from which the creation will take place. |
iarPathExisting | the part of the iar path that already exists |
iarPathToReplicate | The path to replicate in the user's inventory from iar |
resolvedFolders | The folders that we have resolved so far for a given archive path. |
loadedNodes | Track the inventory nodes created. |
Definition at line 390 of file InventoryArchiveReadRequest.cs.
HashSet<InventoryNodeBase> OpenSim.Region.CoreModules.Avatar.Inventory.Archiver.InventoryArchiveReadRequest.Execute |
( |
| ) |
|
|
inline |
Execute the request
Only call this once. To load another IAR, construct another request object.
- Returns
- A list of the inventory nodes loaded. If folders were loaded then only the root folders are returned
- Exceptions
-
System.Exception | Thrown if load fails. |
Definition at line 184 of file InventoryArchiveReadRequest.cs.
void OpenSim.Region.CoreModules.Avatar.Inventory.Archiver.InventoryArchiveReadRequest.LoadAssetFile |
( |
string |
path, |
|
|
byte[] |
data |
|
) |
| |
|
inlineprotected |
void OpenSim.Region.CoreModules.Avatar.Inventory.Archiver.InventoryArchiveReadRequest.LoadControlFile |
( |
string |
path, |
|
|
byte[] |
data |
|
) |
| |
|
inline |
void OpenSim.Region.CoreModules.Avatar.Inventory.Archiver.InventoryArchiveReadRequest.LoadInventoryFile |
( |
string |
path, |
|
|
TarArchiveReader.TarEntryType |
entryType, |
|
|
byte[] |
data |
|
) |
| |
|
inlineprotected |
Load an item from the archive
- Parameters
-
filePath | The archive path for the item |
data | The raw item data |
rootDestinationFolder | The root destination folder for loaded items |
nodesLoaded | All the inventory nodes (items and folders) loaded so far |
Definition at line 438 of file InventoryArchiveReadRequest.cs.
Replicate the inventory paths in the archive to the user's inventory as necessary.
- Parameters
-
iarPath | The item archive path to replicate |
rootDestinationFolder | The root folder for the inventory load |
resolvedFolders | The folders that we have resolved so far for a given archive path. This method will add more folders if necessary |
loadedNodes | Track the inventory nodes created. |
- Returns
- The last user inventory folder created or found for the archive path
Definition at line 270 of file InventoryArchiveReadRequest.cs.
Resolve a destination folder
We require here a root destination folder (usually the root of the user's inventory) and the archive path. We also pass in a list of previously resolved folders in case we've found this one previously.
- Parameters
-
archivePath | The item archive path to resolve. The portion of the path passed back is that which corresponds to the resolved desintation folder. - Parameters
-
rootDestinationFolder | The root folder for the inventory load |
resolvedFolders | The folders that we have resolved so far for a given archive path. |
- Returns
- The folder in the user's inventory that matches best the archive path given. If no such folder was found then the passed in root destination folder is returned.
|
Definition at line 314 of file InventoryArchiveReadRequest.cs.
TarArchiveReader OpenSim.Region.CoreModules.Avatar.Inventory.Archiver.InventoryArchiveReadRequest.archive |
|
protected |
IAssetService OpenSim.Region.CoreModules.Avatar.Inventory.Archiver.InventoryArchiveReadRequest.m_AssetService |
|
protected |
bool OpenSim.Region.CoreModules.Avatar.Inventory.Archiver.InventoryArchiveReadRequest.m_assetsLoaded |
|
protected |
Dictionary<UUID, UUID> OpenSim.Region.CoreModules.Avatar.Inventory.Archiver.InventoryArchiveReadRequest.m_creatorIdForAssetId = new Dictionary<UUID, UUID>() |
|
protected |
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
Definition at line 124 of file InventoryArchiveReadRequest.cs.
int OpenSim.Region.CoreModules.Avatar.Inventory.Archiver.InventoryArchiveReadRequest.m_failedAssetRestores |
|
protected |
UUID OpenSim.Region.CoreModules.Avatar.Inventory.Archiver.InventoryArchiveReadRequest.m_id |
|
protected |
bool OpenSim.Region.CoreModules.Avatar.Inventory.Archiver.InventoryArchiveReadRequest.m_inventoryNodesLoaded |
|
protected |
IInventoryService OpenSim.Region.CoreModules.Avatar.Inventory.Archiver.InventoryArchiveReadRequest.m_InventoryService |
|
protected |
bool OpenSim.Region.CoreModules.Avatar.Inventory.Archiver.InventoryArchiveReadRequest.m_merge |
|
protected |
InventoryFolderBase OpenSim.Region.CoreModules.Avatar.Inventory.Archiver.InventoryArchiveReadRequest.m_rootDestinationFolder |
|
protected |
int OpenSim.Region.CoreModules.Avatar.Inventory.Archiver.InventoryArchiveReadRequest.m_successfulAssetRestores |
|
protected |
int OpenSim.Region.CoreModules.Avatar.Inventory.Archiver.InventoryArchiveReadRequest.m_successfulItemRestores |
|
protected |
IUserAccountService OpenSim.Region.CoreModules.Avatar.Inventory.Archiver.InventoryArchiveReadRequest.m_UserAccountService |
|
protected |
int OpenSim.Region.CoreModules.Avatar.Inventory.Archiver.InventoryArchiveReadRequest.MAX_MAJOR_VERSION = 1 |
|
static |
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.
Definition at line 58 of file InventoryArchiveReadRequest.cs.
bool OpenSim.Region.CoreModules.Avatar.Inventory.Archiver.InventoryArchiveReadRequest.ControlFileLoaded |
|
getset |
bool OpenSim.Region.CoreModules.Avatar.Inventory.Archiver.InventoryArchiveReadRequest.EnforceControlFileCheck |
|
getset |
Do we want to enforce the check. IAR versions before 0.2 and 1.1 do not guarantee this order, so we can't enforce.
Definition at line 95 of file InventoryArchiveReadRequest.cs.
The documentation for this class was generated from the following file: