Class CatalogContentDraftStore
Inheritance
System.Object
CatalogContentDraftStore
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.Commerce.Internal.Migration.dll
Version: 10.8.0
Syntax
[Obsolete("This class is part of the old catalog content versioning system used prior to Commerce 9. Will remain at least until April 2017.")]
public class CatalogContentDraftStore : IContentVersionRepository
Constructors
CatalogContentDraftStore(ApplicationContext, ReferenceConverter, CatalogContentLoader, CatalogContentCommitterHandler, DynamicDataStoreFactory, ISynchronizedObjectInstanceCache, CatalogEventHandler)
Declaration
[Obsolete("Use the constructor with IDatabaseFactory instead. Will remain at least until March 2016.")]
public CatalogContentDraftStore(ApplicationContext applicationContext, ReferenceConverter referenceConverter, CatalogContentLoader contentLoader, CatalogContentCommitterHandler contentCommitter, DynamicDataStoreFactory storeFactory, ISynchronizedObjectInstanceCache objectInstanceCache, CatalogEventHandler catalogEventHandler)
Parameters
CatalogContentDraftStore(ApplicationContext, ReferenceConverter, CatalogContentLoader, CatalogContentCommitterHandler, DynamicDataStoreFactory, ISynchronizedObjectInstanceCache, CatalogEventHandler, IDatabaseFactory)
Declaration
[Obsolete("Use the constructor with IStatusTransitionEvaluator. Will remain at least until April 2017.")]
public CatalogContentDraftStore(ApplicationContext applicationContext, ReferenceConverter referenceConverter, CatalogContentLoader contentLoader, CatalogContentCommitterHandler contentCommitter, DynamicDataStoreFactory storeFactory, ISynchronizedObjectInstanceCache objectInstanceCache, CatalogEventHandler catalogEventHandler, IDatabaseFactory databaseFactory)
Parameters
CatalogContentDraftStore(ReferenceConverter, CatalogContentLoader, CatalogContentCommitterHandler, DynamicDataStoreFactory, ISynchronizedObjectInstanceCache, IDatabaseFactory, IStatusTransitionEvaluator)
Declaration
public CatalogContentDraftStore(ReferenceConverter referenceConverter, CatalogContentLoader contentLoader, CatalogContentCommitterHandler contentCommitter, DynamicDataStoreFactory storeFactory, ISynchronizedObjectInstanceCache objectInstanceCache, IDatabaseFactory databaseFactory, IStatusTransitionEvaluator statusTransitionEvaluator)
Parameters
| Type |
Name |
Description |
| ReferenceConverter |
referenceConverter |
|
| CatalogContentLoader |
contentLoader |
|
| CatalogContentCommitterHandler |
contentCommitter |
|
| EPiServer.Data.Dynamic.DynamicDataStoreFactory |
storeFactory |
|
| EPiServer.Framework.Cache.ISynchronizedObjectInstanceCache |
objectInstanceCache |
|
| EPiServer.Data.Providers.IDatabaseFactory |
databaseFactory |
|
| EPiServer.Core.IStatusTransitionEvaluator |
statusTransitionEvaluator |
|
Fields
CachedCommittedContentKey
Declaration
[Obsolete("This is no longer used. Will remain at least until March 2016.")]
public const string CachedCommittedContentKey = "EP:CatalogCommittedContent"
Field Value
| Type |
Description |
| System.String |
|
CachedContentMasterLanguageCacheKey
Declaration
[Obsolete("This is no longer used. Will remain at least until March 2016.")]
public const string CachedContentMasterLanguageCacheKey = "EP:CatalogContentMasterLanguage"
Field Value
| Type |
Description |
| System.String |
|
CachedOriginalVersionDraftListKey
Declaration
public const string CachedOriginalVersionDraftListKey = "EP:CatalogOrgVersionDraft"
Field Value
| Type |
Description |
| System.String |
|
Methods
CreateDraft(CatalogContentBase, Int32, VersionStatus, Int32)
Declaration
protected virtual CatalogContentDraft CreateDraft(CatalogContentBase content, int workId, VersionStatus status, int masterVersionId)
Parameters
| Type |
Name |
Description |
| CatalogContentBase |
content |
|
| System.Int32 |
workId |
|
| EPiServer.Core.VersionStatus |
status |
|
| System.Int32 |
masterVersionId |
|
Returns
Delete(ContentReference)
Declaration
public virtual void Delete(ContentReference contentLink)
Parameters
| Type |
Name |
Description |
| EPiServer.Core.ContentReference |
contentLink |
|
DeleteContent(ContentReference)
Declaration
public virtual void DeleteContent(ContentReference contentLink)
Parameters
| Type |
Name |
Description |
| EPiServer.Core.ContentReference |
contentLink |
|
GetItems(IList<ContentReference>, String)
Declaration
public virtual IList<IContent> GetItems(IList<ContentReference> contentLinks, string language)
Parameters
| Type |
Name |
Description |
| System.Collections.Generic.IList<EPiServer.Core.ContentReference> |
contentLinks |
|
| System.String |
language |
|
Returns
| Type |
Description |
| System.Collections.Generic.IList<EPiServer.Core.IContent> |
|
IsNewVersionRequired(CatalogContentBase, SaveAction)
Declaration
protected virtual bool IsNewVersionRequired(CatalogContentBase content, SaveAction saveAction)
Parameters
| Type |
Name |
Description |
| CatalogContentBase |
content |
|
| EPiServer.DataAccess.SaveAction |
saveAction |
|
Returns
| Type |
Description |
| System.Boolean |
|
List(ContentReference)
Declaration
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
public virtual 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 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
public virtual IEnumerable<ContentReference> ListDelayedPublish()
Returns
| Type |
Description |
| System.Collections.Generic.IEnumerable<EPiServer.Core.ContentReference> |
|
ListPublished(ContentReference)
Declaration
public virtual 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 virtual ContentVersion Load(ContentReference contentLink)
Parameters
| Type |
Name |
Description |
| EPiServer.Core.ContentReference |
contentLink |
|
Returns
| Type |
Description |
| EPiServer.DataAbstraction.ContentVersion |
|
LoadCommonDraft(ContentReference, String)
Declaration
public virtual 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 virtual ContentVersion LoadPublished(ContentReference contentLink)
Parameters
| Type |
Name |
Description |
| EPiServer.Core.ContentReference |
contentLink |
|
Returns
| Type |
Description |
| EPiServer.DataAbstraction.ContentVersion |
|
LoadPublished(ContentReference, String)
Declaration
public virtual ContentVersion LoadPublished(ContentReference contentLink, string languageBranch)
Parameters
| Type |
Name |
Description |
| EPiServer.Core.ContentReference |
contentLink |
|
| System.String |
languageBranch |
|
Returns
| Type |
Description |
| EPiServer.DataAbstraction.ContentVersion |
|
Save(IContent, SaveAction)
Declaration
public virtual ContentReference Save(IContent content, SaveAction saveAction)
Parameters
| Type |
Name |
Description |
| EPiServer.Core.IContent |
content |
|
| EPiServer.DataAccess.SaveAction |
saveAction |
|
Returns
| Type |
Description |
| EPiServer.Core.ContentReference |
|
SetCommonDraft(ContentReference)
Declaration
public virtual void SetCommonDraft(ContentReference contentLink)
Parameters
| Type |
Name |
Description |
| EPiServer.Core.ContentReference |
contentLink |
|
Implements
EPiServer.Core.IContentVersionRepository