Table of Contents

Class DashboardController

Namespace
Umbraco.Cms.Web.BackOffice.Controllers
Assembly
Umbraco.Web.BackOffice.dll
[Authorize(Policy = "BackOfficeAccess")]
public class DashboardController : UmbracoApiController
Inheritance
DashboardController

Constructors

DashboardController(IBackOfficeSecurityAccessor, AppCaches, ILogger<DashboardController>, IDashboardService, IUmbracoVersion, IShortStringHelper, IOptionsSnapshot<ContentDashboardSettings>, ISiteIdentifierService)

Initializes a new instance of the DashboardController with all its dependencies.

[ActivatorUtilitiesConstructor]
public DashboardController(IBackOfficeSecurityAccessor backOfficeSecurityAccessor, AppCaches appCaches, ILogger<DashboardController> logger, IDashboardService dashboardService, IUmbracoVersion umbracoVersion, IShortStringHelper shortStringHelper, IOptionsSnapshot<ContentDashboardSettings> dashboardSettings, ISiteIdentifierService siteIdentifierService)

Parameters

backOfficeSecurityAccessor IBackOfficeSecurityAccessor
appCaches AppCaches
logger ILogger<DashboardController>
dashboardService IDashboardService
umbracoVersion IUmbracoVersion
shortStringHelper IShortStringHelper
dashboardSettings IOptionsSnapshot<ContentDashboardSettings>
siteIdentifierService ISiteIdentifierService

Methods

GetDashboard(string)

[ValidateAngularAntiForgeryToken]
public IEnumerable<Tab<IDashboardSlim>> GetDashboard(string section)

Parameters

section string

Returns

IEnumerable<Tab<IDashboardSlim>>

GetRemoteDashboardContent(string, string?)

[ValidateAngularAntiForgeryToken]
public Task<JObject> GetRemoteDashboardContent(string section, string? baseUrl)

Parameters

section string
baseUrl string

Returns

Task<JObject>

GetRemoteDashboardCss(string, string?)

public Task<IActionResult> GetRemoteDashboardCss(string section, string? baseUrl)

Parameters

section string
baseUrl string

Returns

Task<IActionResult>

GetRemoteXml(string, string)

public Task<IActionResult> GetRemoteXml(string site, string url)

Parameters

site string
url string

Returns

Task<IActionResult>