Class CatalogGuidMapping
Represents the database access to get Catalog Guid mapping from database. This should be a very fast operation.
This class supports the EPiServer Commerce infrastructure and is not intended to be used directly from your code.
Inheritance
Inherited Members
Namespace: Mediachase.Commerce.Catalog.Data
Assembly: Mediachase.Commerce.dll
Version: 10.8.0Syntax
[Obsolete("This class is no longer used. Use Mediachase.Commerce.Catalog.Data.ContentGuidAdmin instead. Will remain at least until August 2016.")]
public class CatalogGuidMapping
Constructors
CatalogGuidMapping(ReferenceConverter)
Initializes a new instance of the CatalogGuidMapping class.
Declaration
public CatalogGuidMapping(ReferenceConverter referenceConverter)
Parameters
Type | Name | Description |
---|---|---|
ReferenceConverter | referenceConverter | The reference converter. |
CatalogGuidMapping(ReferenceConverter, ISynchronizedObjectInstanceCache)
Initializes a new instance of the CatalogGuidMapping class.
Declaration
public CatalogGuidMapping(ReferenceConverter referenceConverter, ISynchronizedObjectInstanceCache synchronizedObjectInstanceCache)
Parameters
Type | Name | Description |
---|---|---|
ReferenceConverter | referenceConverter | The reference converter. |
EPiServer.Framework.Cache.ISynchronizedObjectInstanceCache | synchronizedObjectInstanceCache | The synchronized object instance cache. |
Methods
ResolveContentGuid(ContentReference)
Gets content Guid from contentLink
.
Declaration
[Obsolete("This method is no longer used. Use Mediachase.Commerce.Catalog.Data.ContentGuidAdmin.ResolveContentGuid(contentLink) instead. Will remain at least until August 2016.")]
public virtual Guid ResolveContentGuid(ContentReference contentLink)
Parameters
Type | Name | Description |
---|---|---|
EPiServer.Core.ContentReference | contentLink | The content link. |
Returns
Type | Description |
---|---|
System.Guid | The Guid for the specifed content, or Guid.Empty if the content guid is not found |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | The input content link is not CatalogEntry, CatalogNode or Catalog. |
ResolveContentGuids(IList<ContentReference>)
Gets content Guids from contentLinks
.
Declaration
[Obsolete("This method is no longer used. Will remain at least until August 2016.")]
public virtual ConcurrentDictionary<int, Guid> ResolveContentGuids(IList<ContentReference> contentLinks)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IList<EPiServer.Core.ContentReference> | contentLinks | The content links. |
Returns
Type | Description |
---|---|
System.Collections.Concurrent.ConcurrentDictionary<System.Int32, System.Guid> |
ResolveContentLink(Guid)
Gets content link from contentGuid
.
Declaration
[Obsolete("This method is no longer used. Use Mediachase.Commerce.Catalog.Data.ContentGuidAdmin.ResolveContentLink(contentGuid) instead. Will remain at least until August 2016.")]
public virtual ContentReference ResolveContentLink(Guid contentGuid)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | contentGuid | The content unique identifier. |
Returns
Type | Description |
---|---|
EPiServer.Core.ContentReference | Content link, or empty reference if the content link is not found |