C# Class SenseNet.ContentRepository.Storage.RepositoryPath

This class handles the path and its methods.
Show file Open project: maxpavlov/FlexNet

Public Properties

Property Type Description
CONTENTNAMINGSECTIONKEY string

Private Properties

Property Type Description
GetInvalidPathException System.Exception
GetParentPathSafe string
IsPathExists bool
PathExists bool

Public Methods

Method Description
CheckValidName ( string name ) : void
CheckValidPath ( string path ) : void
Combine ( ) : string
Combine ( string path1, string path2 ) : string

Concatenates the specified pathes.

GetDepth ( string path ) : int
GetFileName ( string path ) : string

Gets the file name from a valid path, which is located after the last PathSeparator.

GetFileNameSafe ( string path ) : string

Gets the file name from a path, which is located after the last PathSeparator, without checking path validity.

GetParentPath ( string path ) : string

Gets the parent path from a path.

IsInTree ( string targetPath, string rootPath ) : bool
IsInvalidNameChar ( char c ) : bool
IsInvalidPathChar ( char c ) : bool
IsValidName ( string name ) : PathResult
IsValidPath ( string path ) : PathResult

Determines whether the specified path is valid.

NameContainsInvalidChar ( string s ) : bool
PathContainsInvalidChar ( string s ) : bool

Private Methods

Method Description
GetInvalidPathException ( PathResult result, string path ) : Exception
GetParentPathSafe ( string path ) : string
IsPathExists ( string path ) : bool
PathExists ( string path ) : bool

Method Details

CheckValidName() public static method

public static CheckValidName ( string name ) : void
name string
return void

CheckValidPath() public static method

public static CheckValidPath ( string path ) : void
path string
return void

Combine() public static method

public static Combine ( ) : string
return string

Combine() public static method

Concatenates the specified pathes.
public static Combine ( string path1, string path2 ) : string
path1 string The path 1.
path2 string The path 2.
return string

GetDepth() public static method

public static GetDepth ( string path ) : int
path string
return int

GetFileName() public static method

Gets the file name from a valid path, which is located after the last PathSeparator.
public static GetFileName ( string path ) : string
path string The path.
return string

GetFileNameSafe() public static method

Gets the file name from a path, which is located after the last PathSeparator, without checking path validity.
public static GetFileNameSafe ( string path ) : string
path string The path.
return string

GetParentPath() public static method

Gets the parent path from a path.
public static GetParentPath ( string path ) : string
path string The path.
return string

IsInTree() public static method

public static IsInTree ( string targetPath, string rootPath ) : bool
targetPath string
rootPath string
return bool

IsInvalidNameChar() public static method

public static IsInvalidNameChar ( char c ) : bool
c char
return bool

IsInvalidPathChar() public static method

public static IsInvalidPathChar ( char c ) : bool
c char
return bool

IsValidName() public static method

public static IsValidName ( string name ) : PathResult
name string
return PathResult

IsValidPath() public static method

Determines whether the specified path is valid.
public static IsValidPath ( string path ) : PathResult
path string The path.
return PathResult

NameContainsInvalidChar() public static method

public static NameContainsInvalidChar ( string s ) : bool
s string
return bool

PathContainsInvalidChar() public static method

public static PathContainsInvalidChar ( string s ) : bool
s string
return bool

Property Details

CONTENTNAMINGSECTIONKEY public static property

public static string CONTENTNAMINGSECTIONKEY
return string