Class CatalogContentVersionStore
This class is intended to be used internally by EPiServer. We do not support any backward
compatibility on this. Please DO NOT use this in your project.
Version repository of Catalog contents.
Inheritance
System.Object
CatalogContentVersionStore
Implements
EPiServer.Core.IContentVersionRepository
EPiServer.Core.IContentVersionRepositoryEx
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: EPiServer.Business.Commerce.dll
Version: 13.30.0
Syntax
public class CatalogContentVersionStore : IContentVersionRepository, IContentVersionRepositoryEx
Constructors
CatalogContentVersionStore(ReferenceConverter, CatalogEventHandler, LocalizationService, ISynchronizedObjectInstanceCache, CatalogContentVersionDB, CatalogContentLoader, MetaDataCommitter, MetaDataPropertyConfiguration)
Declaration
[Obsolete("Use constructor with IContentLoader parameter. This will be removed in the next major version.")]
public CatalogContentVersionStore(ReferenceConverter referenceConverter, CatalogEventHandler catalogEventHandler, LocalizationService localizationService, ISynchronizedObjectInstanceCache objectInstanceCache, CatalogContentVersionDB catalogContentVersionDB, CatalogContentLoader catalogContentLoader, MetaDataCommitter metaDataCommitter, MetaDataPropertyConfiguration metaDataPropertyConfiguration)
Parameters
CatalogContentVersionStore(ReferenceConverter, CatalogEventHandler, LocalizationService, ISynchronizedObjectInstanceCache, CatalogContentVersionDB, CatalogContentLoader, MetaDataCommitter, MetaDataPropertyConfiguration, ProjectRepository)
Declaration
[Obsolete("Use constructor without ProjectRepository instead. Will remain at least until August 2019.")]
public CatalogContentVersionStore(ReferenceConverter referenceConverter, CatalogEventHandler catalogEventHandler, LocalizationService localizationService, ISynchronizedObjectInstanceCache objectInstanceCache, CatalogContentVersionDB catalogContentVersionDB, CatalogContentLoader catalogContentLoader, MetaDataCommitter metaDataCommitter, MetaDataPropertyConfiguration metaDataPropertyConfiguration, ProjectRepository projectRepository)
Parameters
CatalogContentVersionStore(ReferenceConverter, CatalogEventHandler, LocalizationService, ISynchronizedObjectInstanceCache, CatalogContentVersionDB, IContentLoader, MetaDataCommitter, MetaDataPropertyConfiguration)
Declaration
[Obsolete("Use alternative constructor. Will remain at least until July 2021.")]
public CatalogContentVersionStore(ReferenceConverter referenceConverter, CatalogEventHandler catalogEventHandler, LocalizationService localizationService, ISynchronizedObjectInstanceCache objectInstanceCache, CatalogContentVersionDB catalogContentVersionDB, IContentLoader catalogContentLoader, MetaDataCommitter metaDataCommitter, MetaDataPropertyConfiguration metaDataPropertyConfiguration)
Parameters
CatalogContentVersionStore(ReferenceConverter, CatalogEventHandler, LocalizationService, ISynchronizedObjectInstanceCache, CatalogContentVersionDB, IContentLoader, MetaDataCommitter, MetaDataPropertyConfiguration, CatalogOptions)
Declaration
public CatalogContentVersionStore(ReferenceConverter referenceConverter, CatalogEventHandler catalogEventHandler, LocalizationService localizationService, ISynchronizedObjectInstanceCache objectInstanceCache, CatalogContentVersionDB catalogContentVersionDB, IContentLoader catalogContentLoader, MetaDataCommitter metaDataCommitter, MetaDataPropertyConfiguration metaDataPropertyConfiguration, CatalogOptions catalogOptions)
Parameters
Type |
Name |
Description |
ReferenceConverter |
referenceConverter |
The reference converter.
|
CatalogEventHandler |
catalogEventHandler |
The catalog event handler.
|
EPiServer.Framework.Localization.LocalizationService |
localizationService |
The localization service.
|
EPiServer.Framework.Cache.ISynchronizedObjectInstanceCache |
objectInstanceCache |
The object instance cache.
|
CatalogContentVersionDB |
catalogContentVersionDB |
The catalog content version database.
|
EPiServer.IContentLoader |
catalogContentLoader |
The catalog content loader.
|
MetaDataCommitter |
metaDataCommitter |
The meta data committer.
|
MetaDataPropertyConfiguration |
metaDataPropertyConfiguration |
The catalog meta data property configuration.
|
CatalogOptions |
catalogOptions |
The catalog options
|
Methods
ClearCache(ContentReference)
Declaration
public void ClearCache(ContentReference contentLink)
Parameters
Type |
Name |
Description |
EPiServer.Core.ContentReference |
contentLink |
The content link.
|
Delete(ContentReference)
Declaration
public virtual void Delete(ContentReference contentLink)
Parameters
Type |
Name |
Description |
EPiServer.Core.ContentReference |
contentLink |
|
DeleteAllVersions(ContentReference)
Delete all versions of a content
Declaration
public virtual void DeleteAllVersions(ContentReference contentLink)
Parameters
Type |
Name |
Description |
EPiServer.Core.ContentReference |
contentLink |
The content link.
|
ImportVersion(IList<CatalogContentBase>, IList<ContentReference>)
This method is intended to be used internally by EPiServer. We do not support any backward
compatibility on this. Please DO NOT use this in your project.
Imports the list of content version from another versioning system, CatalogContentDraft store for example, to the current versioning system.
Declaration
public IDictionary<ContentReference, int> ImportVersion(IList<CatalogContentBase> contents, IList<ContentReference> commonDraftWorkIds)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IList<CatalogContentBase> |
contents |
A list of content to create versions. These content must have WorkId in ContentLink.
|
System.Collections.Generic.IList<EPiServer.Core.ContentReference> |
commonDraftWorkIds |
The list of work id of common drafts.
|
Returns
Type |
Description |
System.Collections.Generic.IDictionary<EPiServer.Core.ContentReference, System.Int32> |
A mapping between the old content link and the inserted work Id.
|
Initialize(IContentEvents)
This type/member supports the EPiServer infrastructure and is not intended to be
used directly from your code.
Initializes event handlers for the events in EPiServer.Core.IContentEvents.
Declaration
public void Initialize(IContentEvents contentEvents)
Parameters
Type |
Name |
Description |
EPiServer.Core.IContentEvents |
contentEvents |
|
List(VersionFilter, Int32, Int32, out Int32)
Declaration
public virtual IEnumerable<ContentVersion> List(VersionFilter filter, int startIndex, int maxRows, out int totalCount)
Parameters
Type |
Name |
Description |
EPiServer.Core.VersionFilter |
filter |
|
System.Int32 |
startIndex |
|
System.Int32 |
maxRows |
|
System.Int32 |
totalCount |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<EPiServer.DataAbstraction.ContentVersion> |
|
ListObsolete(Int32, out Int32)
Declaration
public IEnumerable<ContentVersion> ListObsolete(int maxRows, out int totalCount)
Parameters
Type |
Name |
Description |
System.Int32 |
maxRows |
|
System.Int32 |
totalCount |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<EPiServer.DataAbstraction.ContentVersion> |
|
Load(ContentReference)
Declaration
public ContentVersion Load(ContentReference contentLink)
Parameters
Type |
Name |
Description |
EPiServer.Core.ContentReference |
contentLink |
|
Returns
Type |
Description |
EPiServer.DataAbstraction.ContentVersion |
|
LoadCommonDraft(ContentReference, String)
Declaration
public ContentVersion LoadCommonDraft(ContentReference contentLink, string language)
Parameters
Type |
Name |
Description |
EPiServer.Core.ContentReference |
contentLink |
|
System.String |
language |
|
Returns
Type |
Description |
EPiServer.DataAbstraction.ContentVersion |
|
LoadPublished(ContentReference)
Declaration
public ContentVersion LoadPublished(ContentReference contentLink)
Parameters
Type |
Name |
Description |
EPiServer.Core.ContentReference |
contentLink |
|
Returns
Type |
Description |
EPiServer.DataAbstraction.ContentVersion |
|
LoadPublished(ContentReference, String)
Declaration
public ContentVersion LoadPublished(ContentReference contentLink, string languageBranch)
Parameters
Type |
Name |
Description |
EPiServer.Core.ContentReference |
contentLink |
|
System.String |
languageBranch |
|
Returns
Type |
Description |
EPiServer.DataAbstraction.ContentVersion |
|
SaveContentVersion(CatalogContentBase, String, Boolean)
Declaration
public void SaveContentVersion(CatalogContentBase content, string currentUser, bool publishAction)
Parameters
Type |
Name |
Description |
CatalogContentBase |
content |
|
System.String |
currentUser |
|
System.Boolean |
publishAction |
|
SetCommonDraft(ContentReference)
Declaration
public void SetCommonDraft(ContentReference contentLink)
Parameters
Type |
Name |
Description |
EPiServer.Core.ContentReference |
contentLink |
|
UnInitialize(IContentEvents)
Uninitializes event handlers for the events in EPiServer.Core.IContentEvents.
Declaration
public void UnInitialize(IContentEvents contentEvents)
Parameters
Type |
Name |
Description |
EPiServer.Core.IContentEvents |
contentEvents |
|
Implements
EPiServer.Core.IContentVersionRepository
EPiServer.Core.IContentVersionRepositoryEx