C# 클래스 Roadkill.Core.Import.ScrewTurnImporter

Retrieves page data from a ScrewTurn wiki database, and attempts to import the data into Roadkill.
상속: IWikiImporter
파일 보기 프로젝트 열기: LocalGovDigital/pipeline 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
ApplicationSettings Roadkill.Core.Configuration.ApplicationSettings
Repository IRepository

공개 메소드들

메소드 설명
ImportFromSqlServer ( string connectionString ) : void

Imports page data from a Screwturn database using the provided connection string.

ScrewTurnImporter ( Roadkill.Core.Configuration.ApplicationSettings settings, IRepository repository ) : System
UpdateSearchIndex ( SearchService searchService ) : void

Updates the search index after a successful import.

비공개 메소드들

메소드 설명
AddContent ( string pageName, Roadkill.Core.Database.Page page ) : void

Extracts and saves all textual content for a page.

CleanContent ( string text ) : string

Attempts to clean the Screwturn wiki syntax so it loosely matches media wiki format.

GetCategories ( string pageName ) : string

Returns all categories in the Screwturn database as a ";" delimited string.

ImportFiles ( ) : void

Saves all files from the File table to the attachments folder.

ImportPages ( ) : void

Adds all pages and their content from screwturn.

ImportUsers ( ) : void

Imports all users from the users table.

SaveFile ( string filename, byte data ) : void

Saves a single file to the attachment folder/subfolder.

메소드 상세

ImportFromSqlServer() 공개 메소드

Imports page data from a Screwturn database using the provided connection string.
public ImportFromSqlServer ( string connectionString ) : void
connectionString string The database connection string.
리턴 void

ScrewTurnImporter() 공개 메소드

public ScrewTurnImporter ( Roadkill.Core.Configuration.ApplicationSettings settings, IRepository repository ) : System
settings Roadkill.Core.Configuration.ApplicationSettings
repository IRepository
리턴 System

UpdateSearchIndex() 공개 메소드

Updates the search index after a successful import.
public UpdateSearchIndex ( SearchService searchService ) : void
searchService Roadkill.Core.Services.SearchService
리턴 void

프로퍼티 상세

ApplicationSettings 보호되어 있는 프로퍼티

protected ApplicationSettings,Roadkill.Core.Configuration ApplicationSettings
리턴 Roadkill.Core.Configuration.ApplicationSettings

Repository 보호되어 있는 프로퍼티

protected IRepository Repository
리턴 IRepository