C# 클래스 Warehouse.Utils

파일 보기 프로젝트 열기: Starcounter/Warehouse

공개 메소드들

메소드 설명
AddSampleData ( ) : void

Add sample data

AssureAdminSystemUserGroupAndPermissions ( ) : void
AssureUniqueFilename ( string folder, string fileName, string &newFile ) : void

Assure the a file is unique in a folder by assiging a counting number at the end of the file.

CalculateHash ( string file ) : string
CreateDirectory ( string path ) : string

Create Directory structure

DeleteAll ( ) : void

Delete all used tables

GeneratePasswordHash ( string userId, string password, string &hashedPassword ) : void
GetRequestProtocolVersion ( Request request ) : int

Parse out the protocol version number from the header

GetUniqueFilename ( string destination, string extention, string &fileName ) : void
IsDirectoryEmpty ( string folder ) : bool

Check if directory is empty

SanitizeName ( string folder ) : string

Sanitize Name Assure valid file or folder name

WriteToLocalLog ( string message ) : void

비공개 메소드들

메소드 설명
CreateDepot ( string name, Organization org ) : Depot
CreateOrganization ( string name ) : Organization
CreateSalt ( int size ) : byte[]
GenerateSaltedHash ( byte plainText, byte salt ) : byte[]
GetBytes ( string str ) : byte[]
GetString ( byte bytes ) : string
IsClassLoaded ( string fullName ) : bool

메소드 상세

AddSampleData() 공개 정적인 메소드

Add sample data
public static AddSampleData ( ) : void
리턴 void

AssureAdminSystemUserGroupAndPermissions() 공개 정적인 메소드

public static AssureAdminSystemUserGroupAndPermissions ( ) : void
리턴 void

AssureUniqueFilename() 공개 정적인 메소드

Assure the a file is unique in a folder by assiging a counting number at the end of the file.
public static AssureUniqueFilename ( string folder, string fileName, string &newFile ) : void
folder string
fileName string
newFile string
리턴 void

CalculateHash() 공개 정적인 메소드

public static CalculateHash ( string file ) : string
file string
리턴 string

CreateDirectory() 공개 정적인 메소드

Create Directory structure
public static CreateDirectory ( string path ) : string
path string
리턴 string

DeleteAll() 공개 정적인 메소드

Delete all used tables
public static DeleteAll ( ) : void
리턴 void

GeneratePasswordHash() 공개 정적인 메소드

public static GeneratePasswordHash ( string userId, string password, string &hashedPassword ) : void
userId string
password string
hashedPassword string
리턴 void

GetRequestProtocolVersion() 공개 정적인 메소드

Parse out the protocol version number from the header
public static GetRequestProtocolVersion ( Request request ) : int
request Request
리턴 int

GetUniqueFilename() 공개 정적인 메소드

public static GetUniqueFilename ( string destination, string extention, string &fileName ) : void
destination string
extention string
fileName string
리턴 void

IsDirectoryEmpty() 공개 정적인 메소드

Check if directory is empty
public static IsDirectoryEmpty ( string folder ) : bool
folder string
리턴 bool

SanitizeName() 공개 정적인 메소드

Sanitize Name Assure valid file or folder name
public static SanitizeName ( string folder ) : string
folder string
리턴 string

WriteToLocalLog() 공개 정적인 메소드

public static WriteToLocalLog ( string message ) : void
message string
리턴 void