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
OrderLineField- Field to delete.
DeleteOrderLineFieldRelationForGroup(string, OrderLineField)
Removes an order line field relation for a given Group.
public void DeleteOrderLineFieldRelationForGroup(string groupId, OrderLineField field)
Parameters
groupId
string- Identifier of the group.
field
OrderLineField- Related 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
string- Identifier of the shop.
field
OrderLineField- Related order line field.
DeleteOrderLineFieldRelationsBySystemName(string)
Deletes all order line field relations by field system name.
public void DeleteOrderLineFieldRelationsBySystemName(string systemName)
Parameters
systemName
string- System name of the field.
DeleteOrderLineFieldRelationsForGroup(string)
Removes all order line field relations for a given Group.
public void DeleteOrderLineFieldRelationsForGroup(string groupId)
Parameters
groupId
string- Identifier of the group.
DeleteOrderLineFieldRelationsForShop(string)
Removes all order line field relations for a given Shop.
public void DeleteOrderLineFieldRelationsForShop(string shopId)
Parameters
shopId
string- Identifier of the group.
GetOrderLineFieldBySystemName(string)
Gets an order line field by system name.
public OrderLineField GetOrderLineFieldBySystemName(string systemName)
Parameters
systemName
string- System 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
string- Identifier 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
string- Identifier 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
OrderLineField- Field to save.
SaveOrderLineFieldRelationForGroup(string, OrderLineField)
Adds an order line field relation for a given Group.
public void SaveOrderLineFieldRelationForGroup(string groupId, OrderLineField field)
Parameters
groupId
string- Identifier of the group.
field
OrderLineField- Related 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
string- Identifier of the shop.
field
OrderLineField- Related 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
string- Identifier of the group.
fields
OrderLineFieldCollection- Related 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
string- Identifier of the shop.
fields
OrderLineFieldCollection- Related order line fields.