C# Class vlko.BlogModule.RavenDB.Commands.FileBrowserCommands

Inheritance: IFileBrowserCommands
Afficher le fichier Open project: vlko/vlko

Méthodes publiques

Свойство Type Description
UserDirectoryName string

Méthodes publiques

Méthode Description
DeleteFile ( string user, string fileIdent ) : bool

Deletes the file.

GetAllUserFileInfos ( string user ) : IEnumerable

Gets all user files.

GetFileInfo ( string user, string fileIdent ) : FileViewModel

Gets the file info.

SanitizeFileName ( string fileName ) : string

Sanitizes the name of the file.

SaveFile ( string user, string fileIdent, Stream fileStream ) : bool

Saves the file.

Private Methods

Méthode Description
FileBrowserCommands ( IAppInfoService appInfo ) : System

Method Details

DeleteFile() public méthode

Deletes the file.
public DeleteFile ( string user, string fileIdent ) : bool
user string The user.
fileIdent string The file ident.
Résultat bool

GetAllUserFileInfos() public méthode

Gets all user files.
public GetAllUserFileInfos ( string user ) : IEnumerable
user string The user.
Résultat IEnumerable

GetFileInfo() public méthode

Gets the file info.
public GetFileInfo ( string user, string fileIdent ) : FileViewModel
user string The user.
fileIdent string The file ident.
Résultat FileViewModel

SanitizeFileName() public static méthode

Sanitizes the name of the file.
public static SanitizeFileName ( string fileName ) : string
fileName string Name of the file.
Résultat string

SaveFile() public méthode

Saves the file.
public SaveFile ( string user, string fileIdent, Stream fileStream ) : bool
user string The user.
fileIdent string The file ident.
fileStream Stream The file stream.
Résultat bool

Property Details

UserDirectoryName public_oe property

public string UserDirectoryName
Résultat string