Table of Contents

Class FormerUrlEdit

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

General tab of the former URL's edit page.

public sealed class FormerUrlEdit : ModelEditPage<FormerUrlEditModel>, IPage
Inheritance
object
FormerUrlEdit
Implements
Inherited Members
Extension Methods

Constructors

FormerUrlEdit(IFormItemCollectionProvider, IFormDataBinder, IWebsiteChannelDomainProvider, IAbsoluteUrlBuilder, IInfoProvider<WebPageFormerUrlPathInfo>, IInfoProvider<WebPageItemInfo>, IContentLanguageRetriever, IWebPageRedirectManagerCore, IContentLanguageFallbackChainProvider)

Initializes a new instance of the FormerUrlEdit class.

public FormerUrlEdit(IFormItemCollectionProvider formItemCollectionProvider, IFormDataBinder formDataBinder, IWebsiteChannelDomainProvider websiteChannelDomainProvider, IAbsoluteUrlBuilder absoluteUrlBuilder, IInfoProvider<WebPageFormerUrlPathInfo> webPageFormerUrlPathInfoProvider, IInfoProvider<WebPageItemInfo> webPageItemInfoProvider, IContentLanguageRetriever contentLanguageRetriever, IWebPageRedirectManagerCore webPageRedirectManager, IContentLanguageFallbackChainProvider contentLanguageFallbackChainProvider)

Parameters

formItemCollectionProvider IFormItemCollectionProvider
formDataBinder IFormDataBinder
websiteChannelDomainProvider IWebsiteChannelDomainProvider
absoluteUrlBuilder IAbsoluteUrlBuilder
webPageFormerUrlPathInfoProvider IInfoProvider<WebPageFormerUrlPathInfo>
webPageItemInfoProvider IInfoProvider<WebPageItemInfo>
contentLanguageRetriever IContentLanguageRetriever
webPageRedirectManager IWebPageRedirectManagerCore
contentLanguageFallbackChainProvider IContentLanguageFallbackChainProvider

Properties

Model

Gets edited model that represents the form.

protected override FormerUrlEditModel Model { get; }

Property Value

FormerUrlEditModel

ObjectId

ID of the former URL.

[PageParameter(typeof(IntPageModelBinder), typeof(FormerUrlEditSection))]
public int ObjectId { get; set; }

Property Value

int

RefetchAll

Indicates whether to refetch all templates on edit.

protected override bool RefetchAll { get; }

Property Value

bool

Methods

ConfigurePage()

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

public override Task ConfigurePage()

Returns

Task

GetFormItems()

Examines properties of Model and returns corresponding IFormItems.

protected override Task<ICollection<IFormItem>> GetFormItems()

Returns

Task<ICollection<IFormItem>>

Remarks

Override the method in case when additional set-up of form components is required.

InitializeContext()

Initializes form context.

protected override Task<IFormContext> InitializeContext()

Returns

Task<IFormContext>

ProcessFormData(FormerUrlEditModel, ICollection<IFormItem>)

Stores the model and creates a response for the Submit(FormSubmissionCommandArguments) command.

protected override Task<ICommandResponse> ProcessFormData(FormerUrlEditModel model, ICollection<IFormItem> formItems)

Parameters

model FormerUrlEditModel

Model to be stored.

formItems ICollection<IFormItem>

Form items with bound component values.

Returns

Task<ICommandResponse>

The response to be used for the Submit(FormSubmissionCommandArguments) command.