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
backOfficeSecurityAccessorIBackOfficeSecurityAccessorappCachesAppCachesloggerILogger<DashboardController>dashboardServiceIDashboardServiceumbracoVersionIUmbracoVersionshortStringHelperIShortStringHelperdashboardSettingsIOptionsSnapshot<ContentDashboardSettings>siteIdentifierServiceISiteIdentifierService
Methods
GetDashboard(string)
[ValidateAngularAntiForgeryToken]
public IEnumerable<Tab<IDashboardSlim>> GetDashboard(string section)
Parameters
sectionstring
Returns
- IEnumerable<Tab<IDashboardSlim>>
GetRemoteDashboardContent(string, string?)
[ValidateAngularAntiForgeryToken]
public Task<JObject> GetRemoteDashboardContent(string section, string? baseUrl)
Parameters
Returns
- Task<JObject>
GetRemoteDashboardCss(string, string?)
public Task<IActionResult> GetRemoteDashboardCss(string section, string? baseUrl)
Parameters
Returns
GetRemoteXml(string, string)
public Task<IActionResult> GetRemoteXml(string site, string url)