Class ContentItemCreateLanguageVariant
Content item language variant create page.
[UINavigation(false)]
public sealed class ContentItemCreateLanguageVariant : ContentItemCreateBase<ContentItemCreateLanguageVariantModel>, IPage
- Inheritance
-
objectContentItemCreateBase<ContentItemCreateLanguageVariantModel>ContentItemCreateLanguageVariant
- Implements
- Inherited Members
- Extension Methods
Constructors
ContentItemCreateLanguageVariant(IFormDataBinder, IFormComponentCommandInvoker, IFormItemCollectionProvider, IContentItemManagerFactory, IAuthenticatedUserAccessor, IPageLinkGenerator, IContentLanguageRetriever, IContentItemDisplayNameValidator)
Initializes a new instance of ContentItemCreateLanguageVariant.
public ContentItemCreateLanguageVariant(IFormDataBinder formDataBinder, IFormComponentCommandInvoker formComponentCommandInvoker, IFormItemCollectionProvider formItemCollectionProvider, IContentItemManagerFactory contentItemManagerFactory, IAuthenticatedUserAccessor userAccessor, IPageLinkGenerator pageLinkGenerator, IContentLanguageRetriever contentLanguageRetriever, IContentItemDisplayNameValidator contentItemDisplayNameValidator)
Parameters
formDataBinder
IFormDataBinderformComponentCommandInvoker
IFormComponentCommandInvokerformItemCollectionProvider
IFormItemCollectionProvidercontentItemManagerFactory
IContentItemManagerFactoryuserAccessor
IAuthenticatedUserAccessorpageLinkGenerator
IPageLinkGeneratorcontentLanguageRetriever
IContentLanguageRetrievercontentItemDisplayNameValidator
IContentItemDisplayNameValidator
Properties
ItemID
Item ID.
[PageParameter(typeof(IntPageModelBinder), typeof(ContentItemEditSection))]
public int ItemID { get; set; }
Property Value
- int
Methods
Change(ContentItemChangeCommandArguments, CancellationToken)
Handles the form change command. The command is invoked whenever visibility conditions or form component configurators of the form need to be reevaluated to re-render the form.
public override Task<ICommandResponse<FormChangeResult>> Change(ContentItemChangeCommandArguments args, CancellationToken cancellationToken = default)
Parameters
args
ContentItemChangeCommandArgumentsForm change arguments.
cancellationToken
CancellationTokenCancellation instruction.
Returns
- Task<ICommandResponse<FormChangeResult>>
ChangeWorkflowStepInternal(ContentItemSubmissionCommandArguments, IContentItemManager, List<IFormComponent>, CancellationToken)
Tries to create the content item and returns a response. If successful, redirects to the corresponding change workflow step tab.
protected override Task<ICommandResponse> ChangeWorkflowStepInternal(ContentItemSubmissionCommandArguments args, IContentItemManager manager, List<IFormComponent> formComponents, CancellationToken cancellationToken = default)
Parameters
args
ContentItemSubmissionCommandArgumentsForm submission arguments.
manager
IContentItemManagerContent item manager.
formComponents
List<IFormComponent>Form components.
cancellationToken
CancellationTokenCancellation instruction.
Returns
- Task<ICommandResponse>
ConfigureTemplateProperties(ContentItemClientProperties)
Gets the object representing client side template properties.
public override Task<ContentItemClientProperties> ConfigureTemplateProperties(ContentItemClientProperties properties)
Parameters
properties
ContentItemClientPropertiesInitialized properties object.
Returns
CreateAndPublishInternal(ContentItemSubmissionCommandArguments, IContentItemManager, List<IFormComponent>, CancellationToken)
Tries to create the content item and returns a response. If successful, redirects to the corresponding cascade publish tab.
protected override Task<ICommandResponse> CreateAndPublishInternal(ContentItemSubmissionCommandArguments args, IContentItemManager manager, List<IFormComponent> formComponents, CancellationToken cancellationToken = default)
Parameters
args
ContentItemSubmissionCommandArgumentsForm submission arguments.
manager
IContentItemManagerContent item manager.
formComponents
List<IFormComponent>Form components.
cancellationToken
CancellationTokenCancellation instruction.
Returns
- Task<ICommandResponse>
CreateInternal(ContentItemSubmissionCommandArguments, IContentItemManager, List<IFormComponent>, CancellationToken)
Creates the content item and returns response.
protected override Task<ICommandResponse> CreateInternal(ContentItemSubmissionCommandArguments args, IContentItemManager manager, List<IFormComponent> formComponents, CancellationToken cancellationToken)
Parameters
args
ContentItemSubmissionCommandArgumentsForm submission arguments.
manager
IContentItemManagerContent item manager.
formComponents
List<IFormComponent>Form components.
cancellationToken
CancellationTokenCancellation instruction.
Returns
- Task<ICommandResponse>