C# Class Roadkill.Core.Mvc.Controllers.PagesController

Inheritance: ControllerBase
Show file Open project: LocalGovDigital/pipeline Class Usage Examples

Public Methods

Method Description
ByUser ( string id, bool encoded ) : System.Web.Mvc.ActionResult

Displays all pages for a particular user.

PagesController ( Roadkill.Core.Configuration.ApplicationSettings settings, Roadkill.Core.Security.UserServiceBase userManager, SettingsService settingsService, IPageService pageService, SearchService searchService, PageHistoryService historyService, IUserContext context ) : System
Tag ( string id ) : System.Web.Mvc.ActionResult

Returns all pages for the given tag.

Version ( System.Guid id ) : System.Web.Mvc.ActionResult

Gets a particular version of a page.

Private Methods

Method Description
AllPages ( ) : System.Web.Mvc.ActionResult
AllTags ( ) : System.Web.Mvc.ActionResult
AllTagsAsJson ( string term = "" ) : System.Web.Mvc.ActionResult
Delete ( int id ) : System.Web.Mvc.ActionResult
Edit ( PageViewModel model ) : System.Web.Mvc.ActionResult
Edit ( int id ) : System.Web.Mvc.ActionResult
GetPreview ( string id ) : System.Web.Mvc.ActionResult
History ( int id ) : System.Web.Mvc.ActionResult
New ( PageViewModel model ) : System.Web.Mvc.ActionResult
New ( string title = "", string tags = "" ) : System.Web.Mvc.ActionResult
Revert ( System.Guid versionId, int pageId ) : System.Web.Mvc.ActionResult

Method Details

ByUser() public method

Displays all pages for a particular user.
public ByUser ( string id, bool encoded ) : System.Web.Mvc.ActionResult
id string The username
encoded bool Whether the username paramter is Base64 encoded.
return System.Web.Mvc.ActionResult

PagesController() public method

public PagesController ( Roadkill.Core.Configuration.ApplicationSettings settings, Roadkill.Core.Security.UserServiceBase userManager, SettingsService settingsService, IPageService pageService, SearchService searchService, PageHistoryService historyService, IUserContext context ) : System
settings Roadkill.Core.Configuration.ApplicationSettings
userManager Roadkill.Core.Security.UserServiceBase
settingsService Roadkill.Core.Services.SettingsService
pageService IPageService
searchService Roadkill.Core.Services.SearchService
historyService Roadkill.Core.Services.PageHistoryService
context IUserContext
return System

Tag() public method

Returns all pages for the given tag.
public Tag ( string id ) : System.Web.Mvc.ActionResult
id string The tag name
return System.Web.Mvc.ActionResult

Version() public method

Gets a particular version of a page.
public Version ( System.Guid id ) : System.Web.Mvc.ActionResult
id System.Guid The Guid ID for the version.
return System.Web.Mvc.ActionResult