Class OrderLineFieldService
- Namespace
- Dynamicweb.Ecommerce.Orders
- Assembly
- Dynamicweb.Ecommerce.dll
public class OrderLineFieldService : ICacheStorage<string, OrderLineField>, ICacheStorage<string>, ICacheStorage
- Inheritance
-
OrderLineFieldService
- Implements
- Inherited Members
Methods
ClearCache()
Resets all keys to the default value for objects stored in the object cache
public void ClearCache()
ClearRelationCaches()
public void ClearRelationCaches()
Delete(OrderLineField)
Deletes a given order line field.
public void Delete(OrderLineField field)
Parameters
field
OrderLineFieldField to delete.
DeleteOrderLineFieldRelationForGroup(string, OrderLineField)
Removes an order line field relation for a given Group.
public void DeleteOrderLineFieldRelationForGroup(string groupId, OrderLineField field)
Parameters
groupId
stringIdentifier of the group.
field
OrderLineFieldRelated order line field.
DeleteOrderLineFieldRelationForShop(string, OrderLineField)
Removes an order line field relation for a given Shop.
public void DeleteOrderLineFieldRelationForShop(string shopId, OrderLineField field)
Parameters
shopId
stringIdentifier of the shop.
field
OrderLineFieldRelated order line field.
DeleteOrderLineFieldRelationsBySystemName(string)
Deletes all order line field relations by field system name.
public void DeleteOrderLineFieldRelationsBySystemName(string systemName)
Parameters
systemName
stringSystem name of the field.
DeleteOrderLineFieldRelationsForGroup(string)
Removes all order line field relations for a given Group.
public void DeleteOrderLineFieldRelationsForGroup(string groupId)
Parameters
groupId
stringIdentifier of the group.
DeleteOrderLineFieldRelationsForShop(string)
Removes all order line field relations for a given Shop.
public void DeleteOrderLineFieldRelationsForShop(string shopId)
Parameters
shopId
stringIdentifier of the group.
GetOrderLineFieldBySystemName(string)
Gets an order line field by system name.
public OrderLineField GetOrderLineFieldBySystemName(string systemName)
Parameters
systemName
stringSystem name of the field.
Returns
- OrderLineField
An instance of OrderLineField, if found; otherwise, null.
GetOrderLineFieldRelationsByGroup(string)
Gets all order line field relations for a given Group.
public OrderLineFieldCollection GetOrderLineFieldRelationsByGroup(string groupId)
Parameters
groupId
stringIdentifier of the group.
Returns
- OrderLineFieldCollection
A sorted collection of fields related to the given group.
GetOrderLineFieldRelationsByShop(string)
Gets all order line field relations for a given Shop.
public OrderLineFieldCollection GetOrderLineFieldRelationsByShop(string shopId)
Parameters
shopId
stringIdentifier of the shop.
Returns
- OrderLineFieldCollection
A sorted collection of fields related to the given shop.
GetOrderLineFields()
Gets all order line fields.
public OrderLineFieldCollection GetOrderLineFields()
Returns
- OrderLineFieldCollection
A sorted collection of OrderLineField.
Save(OrderLineField)
Saves a given order line field.
public void Save(OrderLineField field)
Parameters
field
OrderLineFieldField to save.
SaveOrderLineFieldRelationForGroup(string, OrderLineField)
Adds an order line field relation for a given Group.
public void SaveOrderLineFieldRelationForGroup(string groupId, OrderLineField field)
Parameters
groupId
stringIdentifier of the group.
field
OrderLineFieldRelated order line field.
SaveOrderLineFieldRelationForShop(string, OrderLineField)
Adds an order line field relation for a given Shop.
public void SaveOrderLineFieldRelationForShop(string shopId, OrderLineField field)
Parameters
shopId
stringIdentifier of the shop.
field
OrderLineFieldRelated order line field.
SaveOrderLineFieldRelationsForGroup(string, OrderLineFieldCollection)
Saves the order line field relations for a given Group.
public void SaveOrderLineFieldRelationsForGroup(string groupId, OrderLineFieldCollection fields)
Parameters
groupId
stringIdentifier of the group.
fields
OrderLineFieldCollectionRelated order line fields.
SaveOrderLineFieldRelationsForShop(string, OrderLineFieldCollection)
Saves the order line field relations for a given Shop.
public void SaveOrderLineFieldRelationsForShop(string shopId, OrderLineFieldCollection fields)
Parameters
shopId
stringIdentifier of the shop.
fields
OrderLineFieldCollectionRelated order line fields.