C# Class Roadkill.Core.Services.SettingsService

Provides common tasks for changing the Roadkill application settings.
Inheritance: Roadkill.Core.Services.ServiceBase
Mostra file Open project: LocalGovDigital/pipeline Class Usage Examples

Public Methods

Method Description
ClearUserTable ( ) : void

Clears all users from the system.

CreateTables ( SettingsViewModel model ) : void

Creates the database schema tables.

GetSiteSettings ( ) : SiteSettings

Retrieves the current site settings.

SaveSiteSettings ( SettingsViewModel model ) : void

Saves all settings that are stored in the database, to the configuration table.

SettingsService ( Roadkill.Core.Configuration.ApplicationSettings settings, IRepository repository ) : System

Method Details

ClearUserTable() public method

Clears all users from the system.
An databaseerror occurred while clearing the user table.
public ClearUserTable ( ) : void
return void

CreateTables() public method

Creates the database schema tables.
An datastore error occurred while creating the database tables.
public CreateTables ( SettingsViewModel model ) : void
model Roadkill.Core.Mvc.ViewModels.SettingsViewModel The settings data.
return void

GetSiteSettings() public method

Retrieves the current site settings.
public GetSiteSettings ( ) : SiteSettings
return Roadkill.Core.Configuration.SiteSettings

SaveSiteSettings() public method

Saves all settings that are stored in the database, to the configuration table.
An datastore error occurred while saving the configuration.
public SaveSiteSettings ( SettingsViewModel model ) : void
model Roadkill.Core.Mvc.ViewModels.SettingsViewModel Summary data containing the settings.
return void

SettingsService() public method

public SettingsService ( Roadkill.Core.Configuration.ApplicationSettings settings, IRepository repository ) : System
settings Roadkill.Core.Configuration.ApplicationSettings
repository IRepository
return System