C# Class Roadkill.Core.Services.SettingsService

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

Méthodes publiques

Méthode 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 méthode

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

CreateTables() public méthode

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.
Résultat void

GetSiteSettings() public méthode

Retrieves the current site settings.
public GetSiteSettings ( ) : SiteSettings
Résultat Roadkill.Core.Configuration.SiteSettings

SaveSiteSettings() public méthode

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.
Résultat void

SettingsService() public méthode

public SettingsService ( Roadkill.Core.Configuration.ApplicationSettings settings, IRepository repository ) : System
settings Roadkill.Core.Configuration.ApplicationSettings
repository IRepository
Résultat System