Table of Contents

Class ContentItemEdit

Namespace
Kentico.Xperience.Admin.Base.UIPages
Assembly
Kentico.Xperience.Admin.Base.dll

Page for editing the content item.

public sealed class ContentItemEdit : ContentItemEditPageBase, IPage
Inheritance
object
ContentItemEdit
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 IFormDataBinder
formComponentCommandInvoker IFormComponentCommandInvoker
formItemCollectionProvider IFormItemCollectionProvider
contentItemManagerFactory IContentItemManagerFactory
userAccessor IAuthenticatedUserAccessor
pageLinkGenerator IPageLinkGenerator
contentLanguageRetriever IContentLanguageRetriever
contentItemDisplayNameValidator IContentItemDisplayNameValidator
contentItemUIDataRetriever IContentItemUIDataRetriever
workflowStepRoleArbiter IWorkflowStepRoleArbiter
coveringWorkflowRetriever ICoveringWorkflowRetriever
contentItemWorkflowManagerFactory 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

ContentFolderId

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 CancellationToken

Cancellation token.

Returns

Task<ICommandResponse>

CancelScheduledPublish(CancellationToken)

Cancels scheduled publish of the content item.

public Task<ICommandResponse> CancelScheduledPublish(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Cancellation 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 CancellationToken

Cancellation token.

Returns

Task<ICommandResponse>

CancelScheduledUnpublish(CancellationToken)

Cancels scheduled unpublish of the content item.

public Task<ICommandResponse> CancelScheduledUnpublish(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Cancellation 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 ContentItemSubmissionCommandArguments

Publish submit arguments.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<ICommandResponse>

ChangeWorkflowStep(ContentItemSubmissionCommandArguments, CancellationToken)

Changes the content item workflow step.

public Task<ICommandResponse> ChangeWorkflowStep(ContentItemSubmissionCommandArguments args, CancellationToken cancellationToken = default)

Parameters

args ContentItemSubmissionCommandArguments

Change workflow step submit arguments.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<ICommandResponse>

ConfigureTemplateProperties(ContentItemClientProperties)

Gets the object representing client side template properties.

public override Task<ContentItemClientProperties> ConfigureTemplateProperties(ContentItemClientProperties properties)

Parameters

properties ContentItemClientProperties

Initialized properties object.

Returns

Task<ContentItemClientProperties>

CreateNewVersion(CancellationToken)

Creates new Draft version of content item.

public Task<ICommandResponse> CreateNewVersion(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Cancellation token.

Returns

Task<ICommandResponse>

Delete(CancellationToken)

Deletes the InitialDraft version of content item.

public Task<ICommandResponse> Delete(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Cancellation token.

Returns

Task<ICommandResponse>

Discard(CancellationToken)

Discards the Draft version of content item.

public Task<ICommandResponse> Discard(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Cancellation 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 FormComponentCommandModel

Form component command arguments.

cancellationToken CancellationToken

The 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 CancellationToken

Cancellation instruction.

Returns

Task<IFormContext>

Publish(ContentItemSubmissionCommandArguments, CancellationToken)

Publishes the content item.

public Task<ICommandResponse> Publish(ContentItemSubmissionCommandArguments args, CancellationToken cancellationToken = default)

Parameters

args ContentItemSubmissionCommandArguments

Publish submit arguments.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<ICommandResponse>

Rename(RenameCommandArguments, CancellationToken)

Updates content item display name.

public Task<ICommandResponse> Rename(RenameCommandArguments args, CancellationToken cancellationToken = default)

Parameters

args RenameCommandArguments

Rename command arguments.

cancellationToken CancellationToken

Cancellation 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 ContentItemSubmissionCommandArguments

Arguments

cancellationToken CancellationToken

Cancellation token.

Returns

Task<ICommandResponse>

Unpublish(CancellationToken)

Redirects to the page with unpublishing options.

public Task<ICommandResponse> Unpublish(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Cancellation 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 ContentItemSubmissionCommandArguments
cancellationToken CancellationToken

Returns

Task<ICommandResponse>