Class FormerUrlEdit
General tab of the former URL's edit page.
public sealed class FormerUrlEdit : ModelEditPage<FormerUrlEditModel>, IPage
- Inheritance
-
objectFormerUrlEdit
- 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
IFormItemCollectionProviderformDataBinder
IFormDataBinderwebsiteChannelDomainProvider
IWebsiteChannelDomainProviderabsoluteUrlBuilder
IAbsoluteUrlBuilderwebPageFormerUrlPathInfoProvider
IInfoProvider<WebPageFormerUrlPathInfo>webPageItemInfoProvider
IInfoProvider<WebPageItemInfo>contentLanguageRetriever
IContentLanguageRetrieverwebPageRedirectManager
IWebPageRedirectManagerCorecontentLanguageFallbackChainProvider
IContentLanguageFallbackChainProvider
Properties
Model
Gets edited model that represents the form.
protected override FormerUrlEditModel Model { get; }
Property Value
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()
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
FormerUrlEditModelModel 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.