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

Utility methods for inventory archiving
Afficher le fichier Open project: aurora-sim/Aurora-Sim-Optional-Modules Class Usage Examples

Méthodes publiques

Свойство Type Description
ESCAPE_CHARACTER char
PATH_DELIMITER char

Méthodes publiques

Méthode Description
EscapeArchivePath ( string path ) : string

Escape an archive path.

FindFolderByPath ( IInventoryService inventoryService, OpenSim.Framework.InventoryFolderBase startFolder, string path ) : List

Find a folder given a PATH_DELIMITER delimited path starting from this folder

FindFolderByPath ( IInventoryService inventoryService, UUID userId, string path ) : List

Find a folder given a PATH_DELIMITER delimited path starting from a user's root folder

FindItemByPath ( IInventoryService inventoryService, OpenSim.Framework.InventoryFolderBase startFolder, string path ) : OpenSim.Framework.InventoryItemBase

Find an item given a PATH_DELIMITOR delimited path starting from this folder. This method does not handle paths that contain multiple delimitors FIXME: We do not yet handle situations where folders or items have the same name. We could handle this by some XPath like expression FIXME: Delimitors which occur in names themselves are not currently escapable.

FindItemByPath ( IInventoryService inventoryService, UUID userId, string path ) : OpenSim.Framework.InventoryItemBase

Find an item given a PATH_DELIMITOR delimited path starting from the user's root folder. This method does not handle paths that contain multiple delimitors FIXME: We do not yet handle situations where folders or items have the same name. We could handle this by some XPath like expression FIXME: Delimitors which occur in names themselves are not currently escapable.

SplitEscapedPath ( string path ) : string[]

Split a human escaped path into two components if it contains an unescaped path delimiter, or one component if no delimiter is present

UnescapeArchivePath ( string path ) : string

Unescape an archive path.

UnescapePath ( string path ) : string

Unescapes a human escaped path. This means that "\\" goes to "\", and "\/" goes to "/"

Method Details

EscapeArchivePath() public static méthode

Escape an archive path.
public static EscapeArchivePath ( string path ) : string
path string
Résultat string

FindFolderByPath() public static méthode

Find a folder given a PATH_DELIMITER delimited path starting from this folder
public static FindFolderByPath ( IInventoryService inventoryService, OpenSim.Framework.InventoryFolderBase startFolder, string path ) : List
inventoryService IInventoryService /// Inventory service to query ///
startFolder OpenSim.Framework.InventoryFolderBase /// The folder from which the path starts ///
path string /// The path to the required folder. /// It this is empty or consists only of the PATH_DELIMTER then this folder itself is returned. ///
Résultat List

FindFolderByPath() public static méthode

Find a folder given a PATH_DELIMITER delimited path starting from a user's root folder
public static FindFolderByPath ( IInventoryService inventoryService, UUID userId, string path ) : List
inventoryService IInventoryService /// Inventory service to query ///
userId UUID /// User id to search ///
path string /// The path to the required folder. /// It this is empty or consists only of the PATH_DELIMTER then this folder itself is returned. ///
Résultat List

FindItemByPath() public static méthode

Find an item given a PATH_DELIMITOR delimited path starting from this folder. This method does not handle paths that contain multiple delimitors FIXME: We do not yet handle situations where folders or items have the same name. We could handle this by some XPath like expression FIXME: Delimitors which occur in names themselves are not currently escapable.
public static FindItemByPath ( IInventoryService inventoryService, OpenSim.Framework.InventoryFolderBase startFolder, string path ) : OpenSim.Framework.InventoryItemBase
inventoryService IInventoryService /// Inventory service to query ///
startFolder OpenSim.Framework.InventoryFolderBase /// The folder from which the path starts ///
path string /// /// The path to the required item. ///
Résultat OpenSim.Framework.InventoryItemBase

FindItemByPath() public static méthode

Find an item given a PATH_DELIMITOR delimited path starting from the user's root folder. This method does not handle paths that contain multiple delimitors FIXME: We do not yet handle situations where folders or items have the same name. We could handle this by some XPath like expression FIXME: Delimitors which occur in names themselves are not currently escapable.
public static FindItemByPath ( IInventoryService inventoryService, UUID userId, string path ) : OpenSim.Framework.InventoryItemBase
inventoryService IInventoryService /// Inventory service to query ///
userId UUID /// The user to search ///
path string /// The path to the required item. ///
Résultat OpenSim.Framework.InventoryItemBase

SplitEscapedPath() public static méthode

Split a human escaped path into two components if it contains an unescaped path delimiter, or one component if no delimiter is present
public static SplitEscapedPath ( string path ) : string[]
path string
Résultat string[]

UnescapeArchivePath() public static méthode

Unescape an archive path.
public static UnescapeArchivePath ( string path ) : string
path string
Résultat string

UnescapePath() public static méthode

Unescapes a human escaped path. This means that "\\" goes to "\", and "\/" goes to "/"
public static UnescapePath ( string path ) : string
path string
Résultat string

Property Details

ESCAPE_CHARACTER public_oe static_oe property

public static char ESCAPE_CHARACTER
Résultat char

PATH_DELIMITER public_oe static_oe property

public static char PATH_DELIMITER
Résultat char