Class MetaDataCommitter

This type/member supports the EPiServer infrastructure and is not intended to be used directly from your code.

Commits content property values to the corresponding meta data plus storage format.

Inheritance
System.Object
MetaDataCommitter
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()
Namespace: EPiServer.Commerce.Catalog.Provider.Persistence
Assembly: EPiServer.Business.Commerce.dll
Version: 10.8.0
Syntax
public class MetaDataCommitter
Remarks

This committer works with published version only. Use the ContentVersionCommitter to work with draft version.

Constructors

MetaDataCommitter(MetaDataPropertyMapper, IMarketService)

Initializes a new instance of the MetaDataCommitter class.

Declaration
[Obsolete("Use other contructor instead. Will remain at least until November 2016.")]
public MetaDataCommitter(MetaDataPropertyMapper metaDataPropertyMapper, IMarketService marketService)
Parameters
Type Name Description
MetaDataPropertyMapper metaDataPropertyMapper

The meta data property mapper.

IMarketService marketService

The market service.

MetaDataCommitter(MetaDataPropertyMapper, IMarketService, MetaDataPropertyConfiguration)

Initializes a new instance of the MetaDataCommitter class.

Declaration
public MetaDataCommitter(MetaDataPropertyMapper metaDataPropertyMapper, IMarketService marketService, MetaDataPropertyConfiguration metaDataPropertyConfiguration)
Parameters
Type Name Description
MetaDataPropertyMapper metaDataPropertyMapper

The meta data property mapper.

IMarketService marketService

The market service.

MetaDataPropertyConfiguration metaDataPropertyConfiguration

The catalog meta data property configuration.

Methods

CommitMetaAttributes<T>(T, Int32)

This type/member supports the EPiServer infrastructure and is not intended to be used directly from your code. Commits the meta attributes.

Declaration
public virtual void CommitMetaAttributes<T>(T content, int objectId)
    where T : CatalogContentBase, IMetaClass
Parameters
Type Name Description
T content

The content.

System.Int32 objectId

The object ID.

Type Parameters
Name Description
T

GetSerializedMetaData<T>(T, Int32)

This type/member supports the EPiServer infrastructure and is not intended to be used directly from your code.

Get the serialized meta data.

Declaration
[Obsolete("This method is no longer used, will remain at least until August 2016.")]
public virtual byte[] GetSerializedMetaData<T>(T content, int objectId)
    where T : CatalogContentBase, IMetaClass
Parameters
Type Name Description
T content

The content.

System.Int32 objectId

The id of the catalog entry.

Returns
Type Description
System.Byte[]

Serialized data.

Type Parameters
Name Description
T

UpdateSerializedMetaData<T>(T, Int32, Byte[])

This type/member supports the EPiServer infrastructure and is not intended to be used directly from your code.

Updates the serialized meta data.

Declaration
[Obsolete("This method is no longer used, will remain at least until August 2016.")]
public virtual byte[] UpdateSerializedMetaData<T>(T content, int objectId, byte[] serializedData)
    where T : CatalogContentBase, IMetaClass
Parameters
Type Name Description
T content

The content.

System.Int32 objectId

The id of the catalog entry.

System.Byte[] serializedData

The serialized data.

Returns
Type Description
System.Byte[]

Updated serialized data.

Type Parameters
Name Description
T