C# 클래스 Mckineap.Models.Context.Projects.ProjectFactory

ProjectFactory class
Wraps Project creation with automated fields validation.
파일 보기 프로젝트 열기: loic-lavergne/mckineap

공개 메소드들

메소드 설명
CreateProject ( string path, string name ) : Project
DeleteProject ( Project project ) : System.Boolean

비공개 메소드들

메소드 설명
CheckPathIntegrity ( string path ) : System.Boolean

Returns true if the Project's path exists and has read/write permissions, otherwise returns false TODO: Check path IO Permissions and return appropriate errors

CreateProjectWorkspace ( string path, string name ) : System.Boolean

Creates a new directory for the project.

DirectoryHasPermission ( string directory ) : System.Boolean

Returns true if there are reading and writing permissions on the directory

FieldIsValid ( string field ) : System.Boolean

Returns true if the field is valid. A valid field is neither NULL nor empty.

FolderIsAvailable ( string folder ) : System.Boolean

Returns true if the Project's folder doesn't exist, otherwise returns false

ProjectFactory ( ) : System
WriteProjectConfigurationFile ( string path, string name ) : System.Boolean

Creates a new Project configuration file.
Writes into the Project configuration file the default configuration parameters.

메소드 상세

CreateProject() 공개 정적인 메소드

public static CreateProject ( string path, string name ) : Project
path string
name string
리턴 Project

DeleteProject() 공개 정적인 메소드

public static DeleteProject ( Project project ) : System.Boolean
project Project
리턴 System.Boolean