Class DefaultConsignmentService
java.lang.Object
de.hybris.platform.ordersplitting.impl.DefaultConsignmentService
- All Implemented Interfaces:
ConsignmentService
- Direct Known Subclasses:
DefaultPickupConsignmentService
Default implementation of
ConsignmentService-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateConsignment(AbstractOrderModel order, String code, List<AbstractOrderEntryModel> orderEntries) Creates the consignment.getWarehouse(List<AbstractOrderEntryModel> orderEntries) Gets the warehouse.voidsetModelService(ModelService modelService) voidsetWarehouseService(WarehouseService warehouseService)
-
Constructor Details
-
DefaultConsignmentService
public DefaultConsignmentService()
-
-
Method Details
-
createConsignment
public ConsignmentModel createConsignment(AbstractOrderModel order, String code, List<AbstractOrderEntryModel> orderEntries) throws ConsignmentCreationException Description copied from interface:ConsignmentServiceCreates the consignment.- Specified by:
createConsignmentin interfaceConsignmentService- Parameters:
order- the order. If Order is instance of OrderModel type then it is taken to relation to created consignmentcode- the codeorderEntries- the order entries- Returns:
- the consignment model
- Throws:
ConsignmentCreationException- in the case of any inconsistency (e.g. warehouses not found)
-
getWarehouse
Description copied from interface:ConsignmentServiceGets the warehouse. Simple random one from possible- Specified by:
getWarehousein interfaceConsignmentService- Parameters:
orderEntries- the order entries- Returns:
- the warehouse
-
setModelService
-
setWarehouseService
-