Class HeadlessInformation
Page information properties page.
public sealed class HeadlessInformation : ModelEditPage<HeadlessInformationModel>, IPage
- Inheritance
-
objectHeadlessInformation
- Implements
- Inherited Members
- Extension Methods
Constructors
HeadlessInformation(IFormItemCollectionProvider, IFormDataBinder, IUserInfoProvider, IAuthenticatedUserAccessor, IHeadlessItemManagerFactory, IInfoProvider<ContentItemInfo>, IInfoProvider<HeadlessItemInfo>, IContentLanguageRetriever)
Initializes a new instance of the HeadlessInformation class.
public HeadlessInformation(IFormItemCollectionProvider formItemCollectionProvider, IFormDataBinder formDataBinder, IUserInfoProvider userInfoProvider, IAuthenticatedUserAccessor authenticatedUserAccessor, IHeadlessItemManagerFactory headlessItemManagerFactory, IInfoProvider<ContentItemInfo> contentItemProvider, IInfoProvider<HeadlessItemInfo> headlessItemInfoProvider, IContentLanguageRetriever contentLanguageRetriever)
Parameters
formItemCollectionProvider
IFormItemCollectionProviderformDataBinder
IFormDataBinderuserInfoProvider
IUserInfoProviderauthenticatedUserAccessor
IAuthenticatedUserAccessorheadlessItemManagerFactory
IHeadlessItemManagerFactorycontentItemProvider
IInfoProvider<ContentItemInfo>headlessItemInfoProvider
IInfoProvider<HeadlessItemInfo>contentLanguageRetriever
IContentLanguageRetriever
Properties
ApplicationIdentifier
Application identifier.
[PageParameter(typeof(HeadlessChannelApplicationModelBinder), typeof(HeadlessChannelApplication))]
public HeadlessChannelApplicationUrlIdentifier ApplicationIdentifier { get; set; }
Property Value
ContentLanguageIdentifier
Content language identifier.
[PageParameter(typeof(ContentLanguageModelBinder), typeof(HeadlessChannelContentLanguage))]
public ContentLanguageUrlIdentifier ContentLanguageIdentifier { get; set; }
Property Value
HeadlessItemID
Headless item identifier.
[PageParameter(typeof(IntPageModelBinder), typeof(HeadlessEditLayout))]
public int HeadlessItemID { get; set; }
Property Value
- int
Model
Gets edited model that represents the form.
protected override HeadlessInformationModel Model { get; }
Property Value
SuccessMessageKey
Gets or sets the success message displayed after submitting the form.
protected override string SuccessMessageKey { get; }
Property Value
- string
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.
ProcessFormData(HeadlessInformationModel, ICollection<IFormItem>)
Stores the model
and creates a response for the Submit(FormSubmissionCommandArguments) command.
protected override Task<ICommandResponse> ProcessFormData(HeadlessInformationModel model, ICollection<IFormItem> formItems)
Parameters
model
HeadlessInformationModelModel 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.