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
formDataBinder
IFormDataBinderformComponentCommandInvoker
IFormComponentCommandInvokerformItemCollectionProvider
IFormItemCollectionProvidercontentItemManagerFactory
IContentItemManagerFactoryuserAccessor
IAuthenticatedUserAccessorpageLinkGenerator
IPageLinkGeneratorcontentLanguageRetriever
IContentLanguageRetrievercontentItemDisplayNameValidator
IContentItemDisplayNameValidatorcontentItemUIDataRetriever
IContentItemUIDataRetrieverworkflowStepRoleArbiter
IWorkflowStepRoleArbitercoveringWorkflowRetriever
ICoveringWorkflowRetrievercontentItemWorkflowManagerFactory
IContentItemWorkflowManagerFactory
Properties
FolderId
Folder identifier.
[PageParameter(typeof(ContentFolderModelBinder), typeof(ContentHubFolder))]
[Obsolete("This property is meant for system purposes, it shouldn't be used directly.")]
[ObsoleteSince(29, 0)]
public ContentFolderId FolderId { get; set; }
Property Value
Remarks
This API supports the framework infrastructure and is not intended to be used directly from your code.
ItemID
Item ID.
[PageParameter(typeof(IntPageModelBinder), typeof(ContentItemEditSection))]
public int ItemID { get; set; }
Property Value
- int
Methods
Archive(CancellationToken)
Archives the content item.
[Obsolete("Archive status was replaced by Unpublished status, use Unpublish instead.")]
[ObsoleteSince(29, 2)]
public Task<ICommandResponse> Archive(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationTokenCancellation token.
Returns
- Task<ICommandResponse>
CancelScheduledPublish(CancellationToken)
Cancels scheduled publish of the content item.
public Task<ICommandResponse> CancelScheduledPublish(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationTokenCancellation token.
Returns
- Task<ICommandResponse>
CancelScheduledPublishAndEdit(CancellationToken)
Cancels scheduled publish of the content item and starts a new workflow.
public Task<ICommandResponse> CancelScheduledPublishAndEdit(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationTokenCancellation token.
Returns
- Task<ICommandResponse>
CancelScheduledUnpublish(CancellationToken)
Cancels scheduled unpublish of the content item.
public Task<ICommandResponse> CancelScheduledUnpublish(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationTokenCancellation token.
Returns
- Task<ICommandResponse>
CascadePublish(ContentItemSubmissionCommandArguments, CancellationToken)
Publishes the content item and all nested content items.
[Obsolete("Use Publish command instead.")]
[ObsoleteSince(29, 1)]
public Task<ICommandResponse> CascadePublish(ContentItemSubmissionCommandArguments args, CancellationToken cancellationToken = default)
Parameters
args
ContentItemSubmissionCommandArgumentsPublish submit arguments.
cancellationToken
CancellationTokenCancellation token.
Returns
- Task<ICommandResponse>
ChangeWorkflowStep(ContentItemSubmissionCommandArguments, CancellationToken)
Changes the content item workflow step.
public Task<ICommandResponse> ChangeWorkflowStep(ContentItemSubmissionCommandArguments args, CancellationToken cancellationToken = default)
Parameters
args
ContentItemSubmissionCommandArgumentsChange workflow step submit arguments.
cancellationToken
CancellationTokenCancellation token.
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
CreateNewVersion(CancellationToken)
Creates new Draft version of content item.
public Task<ICommandResponse> CreateNewVersion(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationTokenCancellation token.
Returns
- Task<ICommandResponse>
Delete(CancellationToken)
Deletes the InitialDraft version of content item.
public Task<ICommandResponse> Delete(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationTokenCancellation token.
Returns
- Task<ICommandResponse>
Discard(CancellationToken)
Discards the Draft version of content item.
public Task<ICommandResponse> Discard(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationTokenCancellation 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
commandModel
FormComponentCommandModelForm component command arguments.
cancellationToken
CancellationTokenThe 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
cancellationToken
CancellationTokenCancellation instruction.
Returns
- Task<IFormContext>
Publish(ContentItemSubmissionCommandArguments, CancellationToken)
Publishes the content item.
public Task<ICommandResponse> Publish(ContentItemSubmissionCommandArguments args, CancellationToken cancellationToken = default)
Parameters
args
ContentItemSubmissionCommandArgumentsPublish submit arguments.
cancellationToken
CancellationTokenCancellation token.
Returns
- Task<ICommandResponse>
Rename(RenameCommandArguments, CancellationToken)
Updates content item display name.
public Task<ICommandResponse> Rename(RenameCommandArguments args, CancellationToken cancellationToken = default)
Parameters
args
RenameCommandArgumentsRename command arguments.
cancellationToken
CancellationTokenCancellation instruction.
Returns
- Task<ICommandResponse>
Save(ContentItemSubmissionCommandArguments, CancellationToken)
Saves the changes in the content item.
public Task<ICommandResponse> Save(ContentItemSubmissionCommandArguments args, CancellationToken cancellationToken = default)
Parameters
args
ContentItemSubmissionCommandArgumentsArguments
cancellationToken
CancellationTokenCancellation token.
Returns
- Task<ICommandResponse>
Unpublish(CancellationToken)
Redirects to the page with unpublishing options.
public Task<ICommandResponse> Unpublish(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationTokenCancellation 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.public Task<ICommandResponse> Versions(ContentItemSubmissionCommandArguments args, CancellationToken cancellationToken = default)
Parameters
args
ContentItemSubmissionCommandArgumentscancellationToken
CancellationToken
Returns
- Task<ICommandResponse>