Table of Contents

Class WebPageModelEditPageBase<TModel>

Namespace
Kentico.Xperience.Admin.Websites.UIPages
Assembly
Kentico.Xperience.Admin.Websites.dll

Base class of a page providing basic webpage identifiers in the context of the webpage application. Use for pages based on a model.

[UIEvaluatePermission("View")]
public abstract class WebPageModelEditPageBase<TModel> : ModelEditPage<TModel>, IPage where TModel : new()

Type Parameters

TModel

Model to edit.

Inheritance
object
WebPageModelEditPageBase<TModel>
Implements
Derived
Inherited Members
Extension Methods

Remarks

Checks webpage's READ permission.

Constructors

WebPageModelEditPageBase(IFormDataBinder, IWebPageManagerFactory, IAuthenticatedUserAccessor, IServiceProvider)

Initializes an instance of the WebPageModelEditPageBase<TModel> class.

protected WebPageModelEditPageBase(IFormDataBinder formDataBinder, IWebPageManagerFactory webPageManagerFactory, IAuthenticatedUserAccessor authenticatedUserAccessor, IServiceProvider serviceProvider)

Parameters

formDataBinder IFormDataBinder

Form data binder.

webPageManagerFactory IWebPageManagerFactory

Web page manager factory.

authenticatedUserAccessor IAuthenticatedUserAccessor

Authenticated user accessor.

serviceProvider IServiceProvider

Service provider.

Properties

ApplicationIdentifier

Application identifier.

[PageParameter(typeof(WebPagesApplicationModelBinder), typeof(WebPagesApplication))]
public WebPagesApplicationUrlIdentifier ApplicationIdentifier { get; set; }

Property Value

WebPagesApplicationUrlIdentifier

WebPageIdentifier

Page identifier composed from culture code and node ID.

[PageParameter(typeof(WebPageUrlIdentifierPageModelBinder), typeof(WebPageLayout))]
public WebPageUrlIdentifier WebPageIdentifier { get; set; }

Property Value

WebPageUrlIdentifier

Methods

CheckAclPermission(int, string, CancellationToken)

Checks whether the user has given ACL permission.

protected Task CheckAclPermission(int webPageItemId, string permissionName, CancellationToken cancellationToken = default)

Parameters

webPageItemId int

Web page item identifier.

permissionName string

Name of the ACL permission.

cancellationToken CancellationToken

Cancellation token.

Returns

Task

Exceptions

ForbiddenAccessException

If user does not have the given permission for specified web page.

ConfigurePage()

Set up page's configuration. Configures the submit action.

public override Task ConfigurePage()

Returns

Task

ConfigureTemplateProperties(EditTemplateClientProperties)

Transforms the configuration to template properties.

public override Task<EditTemplateClientProperties> ConfigureTemplateProperties(EditTemplateClientProperties properties)

Parameters

properties EditTemplateClientProperties

Returns

Task<EditTemplateClientProperties>

Remarks

Performs also permission evaluation.