C# Класс Roadkill.Core.Import.ScrewTurnImporter

Retrieves page data from a ScrewTurn wiki database, and attempts to import the data into Roadkill.
Наследование: IWikiImporter
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
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