Class ChannelEdit
General tab of the channel edit page.
public sealed class ChannelEdit : InfoEditPage<ChannelInfo>, IPage
- Inheritance
-
objectChannelEdit
- Implements
- Inherited Members
- Extension Methods
Constructors
ChannelEdit(IFormComponentMapper, IFormDataBinder, IEnumerable<IChannelSpecificFormItemsProcessor>, IChannelManager, IInfoProvider<ChannelInfo>, IChannelItemCounter)
Initializes a new instance of the ChannelEdit class.
public ChannelEdit(IFormComponentMapper formComponentMapper, IFormDataBinder formDataBinder, IEnumerable<IChannelSpecificFormItemsProcessor> channelSpecificFormItemsProcessors, IChannelManager channelManager, IInfoProvider<ChannelInfo> channelInfoProvider, IChannelItemCounter channelItemCounter)
Parameters
formComponentMapper
IFormComponentMapperformDataBinder
IFormDataBinderchannelSpecificFormItemsProcessors
IEnumerable<IChannelSpecificFormItemsProcessor>channelManager
IChannelManagerchannelInfoProvider
IInfoProvider<ChannelInfo>channelItemCounter
IChannelItemCounter
Properties
ObjectId
ID of the channel.
[PageParameter(typeof(IntPageModelBinder))]
public override 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()
Prepares form items for editing object of the specified ObjectType.
protected override Task<ICollection<IFormItem>> GetFormItems()
Returns
- Task<ICollection<IFormItem>>
Returns the collection of form items.
SetFormData(ChannelInfo, IFormFieldValueProvider)
Sets the infoObject
.
protected override Task SetFormData(ChannelInfo infoObject, IFormFieldValueProvider fieldValueProvider)
Parameters
infoObject
ChannelInfoInfo object to be set.
fieldValueProvider
IFormFieldValueProviderProvider of form field values.
Returns
- Task