Try our conversational search powered by Generative AI!

Interface IContentChangeManager

Namespace: EPiServer.Cms.Shell.UI.Rest
Assembly: EPiServer.Cms.Shell.UI.dll
Version: 11.20.7
Syntax
public interface IContentChangeManager

Methods

Commit(ContentReference, SaveAction)

Declaration
CommitResult Commit(ContentReference contentReference, SaveAction action)
Parameters
Type Name Description
ContentReference contentReference
SaveAction action
Returns
Type Description
CommitResult

Copy(IContent, IContent, Boolean)

Declaration
ContentReference Copy(IContent source, IContent destination, bool createAsLocalAsset)
Parameters
Type Name Description
IContent source
IContent destination
System.Boolean createAsLocalAsset
Returns
Type Description
ContentReference

Create(ContentReference, Int32, Nullable<Int64>, Boolean, ILocalAssetNameGenerator, IDictionary<String, Object>)

Declaration
ContentReference Create(ContentReference parentLink, int contentTypeId, long? resourceFolderId, bool createAsLocalAsset, ILocalAssetNameGenerator nameGenerator, IDictionary<string, object> properties)
Parameters
Type Name Description
ContentReference parentLink
System.Int32 contentTypeId
System.Nullable<System.Int64> resourceFolderId
System.Boolean createAsLocalAsset
ILocalAssetNameGenerator nameGenerator
System.Collections.Generic.IDictionary<System.String, System.Object> properties
Returns
Type Description
ContentReference

Create(ContentReference, Int32, Nullable<Int64>, Boolean, String, IDictionary<String, Object>)

Declaration
ContentReference Create(ContentReference parentLink, int contentTypeId, long? resourceFolderId, bool createAsLocalAsset, string name, IDictionary<string, object> properties)
Parameters
Type Name Description
ContentReference parentLink
System.Int32 contentTypeId
System.Nullable<System.Int64> resourceFolderId
System.Boolean createAsLocalAsset
System.String name
System.Collections.Generic.IDictionary<System.String, System.Object> properties
Returns
Type Description
ContentReference

CreateLanguageBranch(ContentReference, String, String, IDictionary<String, Object>)

Declaration
ContentReference CreateLanguageBranch(ContentReference contentReference, string name, string languageBranch, IDictionary<string, object> properties)
Parameters
Type Name Description
ContentReference contentReference
System.String name
System.String languageBranch
System.Collections.Generic.IDictionary<System.String, System.Object> properties
Returns
Type Description
ContentReference

GetOrCreateContentAssetsFolder(ContentReference)

Declaration
ContentReference GetOrCreateContentAssetsFolder(ContentReference parentLink)
Parameters
Type Name Description
ContentReference parentLink
Returns
Type Description
ContentReference

Move(IContent, IContent, Boolean)

Declaration
ContentReference Move(IContent source, IContent destination, bool createAsLocalAsset)
Parameters
Type Name Description
IContent source
IContent destination
System.Boolean createAsLocalAsset
Returns
Type Description
ContentReference

TranslateAncestors(IContent)

Declaration
IEnumerable<ContentReference> TranslateAncestors(IContent content)
Parameters
Type Name Description
IContent content
Returns
Type Description
System.Collections.Generic.IEnumerable<ContentReference>

UpdateContentProperties(ContentReference, IDictionary<String, String>)

Declaration
PropertiesUpdateResult UpdateContentProperties(ContentReference contentReference, IDictionary<string, string> properties)
Parameters
Type Name Description
ContentReference contentReference
System.Collections.Generic.IDictionary<System.String, System.String> properties
Returns
Type Description
PropertiesUpdateResult

UpdateContentProperties(ContentReference, IDictionary<String, String>, SaveAction)

Declaration
PropertiesUpdateResult UpdateContentProperties(ContentReference contentReference, IDictionary<string, string> properties, SaveAction saveAction)
Parameters
Type Name Description
ContentReference contentReference
System.Collections.Generic.IDictionary<System.String, System.String> properties
SaveAction saveAction
Returns
Type Description
PropertiesUpdateResult

Extension Methods