C# Класс Roadkill.Core.Services.RelService

Provides a set of tasks for wiki page management.
Наследование: Roadkill.Core.Services.ServiceBase, IRelService
Показать файл Открыть проект

Открытые методы

Метод Описание
AddRel ( RelViewModel model ) : RelViewModel

Adds the page to the database.

AllRelsCreatedBy ( string userName ) : IEnumerable

Gets alls the pages created by a user.

DeleteRel ( int id ) : void

Deletes a page from the database.

FindAllRels ( bool loadPageContent = false ) : IEnumerable

Retrieves a list of all pages in the system.

FindByTag ( string tag ) : IEnumerable

Finds all pages with the given tag.

FindByTitle ( string title ) : PageViewModel

Finds a page by its title

GetRelById ( int id, bool loadContent = false ) : RelViewModel

Retrieves the page by its id.

RelService ( Roadkill.Core.Configuration.ApplicationSettings settings, IRepository repository, SearchService searchService, PageHistoryService historyService, IUserContext context, ListCache listCache, Roadkill.Core.Cache.PageViewModelCache pageViewModelCache, Roadkill.Core.Cache.SiteCache sitecache, IPluginFactory pluginFactory ) : System
UpdateRel ( RelViewModel model ) : void

Updates the provided relationship.

Описание методов

AddRel() публичный Метод

Adds the page to the database.
An databaseerror occurred while saving. An error occurred adding the page to the search index.
public AddRel ( RelViewModel model ) : RelViewModel
model Roadkill.Core.Mvc.ViewModels.RelViewModel The summary details for the page.
Результат Roadkill.Core.Mvc.ViewModels.RelViewModel

AllRelsCreatedBy() публичный Метод

Gets alls the pages created by a user.
An databaseerror occurred while retrieving the list.
public AllRelsCreatedBy ( string userName ) : IEnumerable
userName string Name of the user.
Результат IEnumerable

DeleteRel() публичный Метод

Deletes a page from the database.
An databaseerror occurred while deleting the page.
public DeleteRel ( int id ) : void
id int
Результат void

FindAllRels() публичный Метод

Retrieves a list of all pages in the system.
An databaseerror occurred while retrieving the list.
public FindAllRels ( bool loadPageContent = false ) : IEnumerable
loadPageContent bool
Результат IEnumerable

FindByTag() публичный Метод

Finds all pages with the given tag.
An database error occurred while getting the list.
public FindByTag ( string tag ) : IEnumerable
tag string The tag to search for.
Результат IEnumerable

FindByTitle() публичный Метод

Finds a page by its title
An databaseerror occurred while getting the page.
public FindByTitle ( string title ) : PageViewModel
title string The page title
Результат Roadkill.Core.Mvc.ViewModels.PageViewModel

GetRelById() публичный Метод

Retrieves the page by its id.
An databaseerror occurred while getting the page.
public GetRelById ( int id, bool loadContent = false ) : RelViewModel
id int The id of the page
loadContent bool
Результат Roadkill.Core.Mvc.ViewModels.RelViewModel

RelService() публичный Метод

public RelService ( Roadkill.Core.Configuration.ApplicationSettings settings, IRepository repository, SearchService searchService, PageHistoryService historyService, IUserContext context, ListCache listCache, Roadkill.Core.Cache.PageViewModelCache pageViewModelCache, Roadkill.Core.Cache.SiteCache sitecache, IPluginFactory pluginFactory ) : System
settings Roadkill.Core.Configuration.ApplicationSettings
repository IRepository
searchService SearchService
historyService PageHistoryService
context IUserContext
listCache ListCache
pageViewModelCache Roadkill.Core.Cache.PageViewModelCache
sitecache Roadkill.Core.Cache.SiteCache
pluginFactory IPluginFactory
Результат System

UpdateRel() публичный Метод

Updates the provided relationship.
An databaseerror occurred while updating. An error occurred adding the page to the search index.
public UpdateRel ( RelViewModel model ) : void
model Roadkill.Core.Mvc.ViewModels.RelViewModel The summary.
Результат void