Table of Contents

Class SchemaOrgOfferConfigurationService

Namespace
Dynamicweb.Ecommerce.ProductCatalog.SchemaOrg
Assembly
Dynamicweb.Ecommerce.dll

Manages the configured values written to the Schema.org Offer of a product: the item condition used when no field mapping supplies one, and the seller.

public abstract class SchemaOrgOfferConfigurationService
Inheritance
SchemaOrgOfferConfigurationService
Inherited Members

Remarks

Register an implementation of this type to keep the configuration somewhere other than the EcomSchemaOrgMapping table; SchemaOrgProductFactory reads the configuration through this type.

Methods

Delete(string?)

Deletes the configuration for the given language.

public abstract void Delete(string? languageId)

Parameters

languageId string

The language ID, or null for the configuration for all languages.

GetAll()

Gets all configurations, the configuration for all languages first.

public abstract IEnumerable<SchemaOrgOfferConfiguration> GetAll()

Returns

IEnumerable<SchemaOrgOfferConfiguration>

The configurations.

GetByLanguage(string?)

Gets the configuration saved for exactly the given language, without the values it takes from the configuration for all languages.

public abstract SchemaOrgOfferConfiguration? GetByLanguage(string? languageId)

Parameters

languageId string

The language ID, or null for the configuration for all languages.

Returns

SchemaOrgOfferConfiguration

The configuration, or null when nothing is configured for the language.

GetEffective(string?)

Gets the values that apply in the given language: each value configured for the language, and otherwise the value configured for all languages.

public abstract SchemaOrgOfferConfiguration? GetEffective(string? languageId)

Parameters

languageId string

The language the values are resolved for.

Returns

SchemaOrgOfferConfiguration

The values that apply, or null when nothing is configured for the language or for all languages.

Save(SchemaOrgOfferConfiguration)

Saves the configuration, replacing what was configured for its language. A configuration without any value removes the configuration for its language.

public abstract void Save(SchemaOrgOfferConfiguration configuration)

Parameters

configuration SchemaOrgOfferConfiguration

The configuration to save.

Exceptions

ArgumentNullException

Thrown when configuration is null.

See Also

To top