Class ContentItemEdit
Page for editing the content item.
public sealed class ContentItemEdit : ContentItemEditPageBase, IPage
- Inheritance
-
objectContentItemEdit
- Implements
- Inherited Members
- Extension Methods
Constructors
ContentItemEdit(IFormDataBinder, IFormComponentCommandInvoker, IFormItemCollectionProvider, IContentItemManagerFactory, IAuthenticatedUserAccessor, IPageLinkGenerator, IContentLanguageRetriever, IContentItemDisplayNameValidator, IContentItemUIDataRetriever, IWorkflowStepRoleArbiter, ICoveringWorkflowRetriever, IContentItemWorkflowManagerFactory)
Initializes a new instance of ContentItemEdit
public ContentItemEdit(IFormDataBinder formDataBinder, IFormComponentCommandInvoker formComponentCommandInvoker, IFormItemCollectionProvider formItemCollectionProvider, IContentItemManagerFactory contentItemManagerFactory, IAuthenticatedUserAccessor userAccessor, IPageLinkGenerator pageLinkGenerator, IContentLanguageRetriever contentLanguageRetriever, IContentItemDisplayNameValidator contentItemDisplayNameValidator, IContentItemUIDataRetriever contentItemUIDataRetriever, IWorkflowStepRoleArbiter workflowStepRoleArbiter, ICoveringWorkflowRetriever coveringWorkflowRetriever, IContentItemWorkflowManagerFactory contentItemWorkflowManagerFactory)
Parameters
formDataBinderIFormDataBinderformComponentCommandInvokerIFormComponentCommandInvokerformItemCollectionProviderIFormItemCollectionProvidercontentItemManagerFactoryIContentItemManagerFactoryuserAccessorIAuthenticatedUserAccessorpageLinkGeneratorIPageLinkGeneratorcontentLanguageRetrieverIContentLanguageRetrievercontentItemDisplayNameValidatorIContentItemDisplayNameValidatorcontentItemUIDataRetrieverIContentItemUIDataRetrieverworkflowStepRoleArbiterIWorkflowStepRoleArbitercoveringWorkflowRetrieverICoveringWorkflowRetrievercontentItemWorkflowManagerFactoryIContentItemWorkflowManagerFactory
Properties
ItemID
Item ID.
[PageParameter(typeof(IntPageModelBinder), typeof(ContentItemEditSection))]
public int ItemID { get; set; }
Property Value
- int
Methods
CancelScheduledPublish(CancellationToken)
Cancels scheduled publish of the content item.
[PageCommand(CommandName = "CancelScheduledPublish")]
public Task<ICommandResponse> CancelScheduledPublish(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<ICommandResponse>
CancelScheduledPublishAndEdit(CancellationToken)
Cancels scheduled publish of the content item and starts a new workflow.
[PageCommand(CommandName = "CancelScheduledPublishAndEdit")]
public Task<ICommandResponse> CancelScheduledPublishAndEdit(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<ICommandResponse>
CancelScheduledUnpublish(CancellationToken)
Cancels scheduled unpublish of the content item.
[PageCommand(CommandName = "CancelScheduledUnpublish")]
public Task<ICommandResponse> CancelScheduledUnpublish(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<ICommandResponse>
ChangeWorkflowStep(ContentItemSubmissionCommandArguments, CancellationToken)
Changes the content item workflow step.
[PageCommand(CommandName = "ChangeWorkflowStep")]
public Task<ICommandResponse> ChangeWorkflowStep(ContentItemSubmissionCommandArguments args, CancellationToken cancellationToken = default)
Parameters
argsContentItemSubmissionCommandArgumentsChange workflow step submit arguments.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<ICommandResponse>
ConfigureTemplateProperties(ContentItemClientProperties)
Gets the object representing client side template properties.
public override Task<ContentItemClientProperties> ConfigureTemplateProperties(ContentItemClientProperties properties)
Parameters
propertiesContentItemClientPropertiesInitialized properties object.
Returns
CreateNewVersion(CancellationToken)
Creates new Draft version of content item.
[PageCommand(CommandName = "CreateNewVersion")]
public Task<ICommandResponse> CreateNewVersion(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<ICommandResponse>
Delete(CancellationToken)
Deletes the InitialDraft version of content item.
[PageCommand(CommandName = "Delete")]
public Task<ICommandResponse> Delete(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<ICommandResponse>
Discard(CancellationToken)
Discards the Draft version of content item.
[PageCommand(CommandName = "Discard")]
public Task<ICommandResponse> Discard(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<ICommandResponse>
GetFormComponentCommandFormComponents(FormComponentCommandModel, CancellationToken)
Gets the form components for the form component command.
protected override Task<ICollection<IFormComponent>> GetFormComponentCommandFormComponents(FormComponentCommandModel commandModel, CancellationToken cancellationToken = default)
Parameters
commandModelFormComponentCommandModelForm component command arguments.
cancellationTokenCancellationTokenThe cancellation instruction.
Returns
- Task<ICollection<IFormComponent>>
Returns the form components valid for the specific command.
InitializeContext(CancellationToken)
Initializes form context.
protected override Task<IFormContext> InitializeContext(CancellationToken cancellationToken)
Parameters
cancellationTokenCancellationTokenCancellation instruction.
Returns
- Task<IFormContext>
Publish(ContentItemSubmissionCommandArguments, CancellationToken)
Publishes the content item.
[PageCommand(CommandName = "Publish")]
public Task<ICommandResponse> Publish(ContentItemSubmissionCommandArguments args, CancellationToken cancellationToken = default)
Parameters
argsContentItemSubmissionCommandArgumentsPublish submit arguments.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<ICommandResponse>
Rename(RenameCommandArguments, CancellationToken)
Updates content item display name.
[PageCommand]
public Task<ICommandResponse> Rename(RenameCommandArguments args, CancellationToken cancellationToken = default)
Parameters
argsRenameCommandArgumentsRename command arguments.
cancellationTokenCancellationTokenCancellation instruction.
Returns
- Task<ICommandResponse>
Save(ContentItemSubmissionCommandArguments, CancellationToken)
Saves the changes in the content item.
[PageCommand(CommandName = "Save")]
public Task<ICommandResponse> Save(ContentItemSubmissionCommandArguments args, CancellationToken cancellationToken = default)
Parameters
argsContentItemSubmissionCommandArgumentsArguments
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<ICommandResponse>
Unpublish(CancellationToken)
Redirects to the page with unpublishing options.
[PageCommand(CommandName = "Unpublish")]
public Task<ICommandResponse> Unpublish(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<ICommandResponse>
ValidatePage()
Validates the page state prior invocation of the ConfigurePage() method.
public override Task<PageValidationResult> ValidatePage()
Returns
- Task<PageValidationResult>
Versions(ContentItemSubmissionCommandArguments, CancellationToken)
Shows content item versions.
Versions submit arguments. Cancellation token.[PageCommand(CommandName = "Versions")]
public Task<ICommandResponse> Versions(ContentItemSubmissionCommandArguments args, CancellationToken cancellationToken = default)
Parameters
argsContentItemSubmissionCommandArgumentscancellationTokenCancellationToken
Returns
- Task<ICommandResponse>