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
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: 11.8.3
Syntax
public class CatalogContentVersionStore : IContentVersionRepository
Constructors
CatalogContentVersionStore(ReferenceConverter, CatalogEventHandler, LocalizationService, ISynchronizedObjectInstanceCache, CatalogContentVersionDB, CatalogContentLoader, MetaDataCommitter, MetaDataPropertyConfiguration)
Declaration
[Obsolete("This constructor was obsoleted, will remain at least until September 2017. Use CatalogContentVersionStore(ReferenceConverter, CatalogEventHandler, LocalizationService, ISynchronizedObjectInstanceCache, CatalogContentVersionDB, CatalogContentLoader, MetaDataCommitter, MetaDataPropertyConfiguration, ProjectRepository) instead.")]
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
public CatalogContentVersionStore(ReferenceConverter referenceConverter, CatalogEventHandler catalogEventHandler, LocalizationService localizationService, ISynchronizedObjectInstanceCache objectInstanceCache, CatalogContentVersionDB catalogContentVersionDB, CatalogContentLoader catalogContentLoader, MetaDataCommitter metaDataCommitter, MetaDataPropertyConfiguration metaDataPropertyConfiguration, ProjectRepository projectRepository)
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.
|
| CatalogContentLoader |
catalogContentLoader |
The catalog content loader.
|
| MetaDataCommitter |
metaDataCommitter |
The meta data committer.
|
| MetaDataPropertyConfiguration |
metaDataPropertyConfiguration |
The catalog meta data property configuration.
|
| EPiServer.DataAbstraction.ProjectRepository |
projectRepository |
Repository for loading and save EPiServer.DataAbstraction.Project and EPiServer.DataAbstraction.ProjectItem
|
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(ContentReference)
Declaration
[Obsolete("This method is no longer part of the IContentVersionRepository interface. Use the corresponding extension method for IContentVersionRepository. Will remain at least until October 2017.")]
public virtual IEnumerable<ContentVersion> List(ContentReference contentLink)
Parameters
| Type |
Name |
Description |
| EPiServer.Core.ContentReference |
contentLink |
|
Returns
| Type |
Description |
| System.Collections.Generic.IEnumerable<EPiServer.DataAbstraction.ContentVersion> |
|
List(ContentReference, String)
Declaration
[Obsolete("This method is no longer part of the IContentVersionRepository interface. Use the corresponding extension method for IContentVersionRepository. Will remain at least until October 2017.")]
public IEnumerable<ContentVersion> List(ContentReference contentLink, string languageBranch)
Parameters
| Type |
Name |
Description |
| EPiServer.Core.ContentReference |
contentLink |
|
| System.String |
languageBranch |
|
Returns
| Type |
Description |
| System.Collections.Generic.IEnumerable<EPiServer.DataAbstraction.ContentVersion> |
|
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> |
|
ListDelayedPublish()
Declaration
[Obsolete("This method is no longer part of the IContentVersionRepository interface. Use the corresponding extension method for IContentVersionRepository. Will remain at least until October 2017.")]
public IEnumerable<ContentReference> ListDelayedPublish()
Returns
| Type |
Description |
| System.Collections.Generic.IEnumerable<EPiServer.Core.ContentReference> |
|
ListPublished(ContentReference)
Declaration
[Obsolete("This method is no longer part of the IContentVersionRepository interface. Use the corresponding extension method for IContentVersionRepository. Will remain at least until October 2017.")]
public IEnumerable<ContentVersion> ListPublished(ContentReference contentLink)
Parameters
| Type |
Name |
Description |
| EPiServer.Core.ContentReference |
contentLink |
|
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