Class DefaultConsignmentService
- java.lang.Object
-
- de.hybris.platform.ordersplitting.impl.DefaultConsignmentService
-
- All Implemented Interfaces:
ConsignmentService
- Direct Known Subclasses:
DefaultPickupConsignmentService
public class DefaultConsignmentService extends java.lang.Object implements ConsignmentService
Default implementation ofConsignmentService
-
-
Constructor Summary
Constructors Constructor Description DefaultConsignmentService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConsignmentModelcreateConsignment(AbstractOrderModel order, java.lang.String code, java.util.List<AbstractOrderEntryModel> orderEntries)Creates the consignment.WarehouseModelgetWarehouse(java.util.List<AbstractOrderEntryModel> orderEntries)Gets the warehouse.voidsetModelService(ModelService modelService)voidsetWarehouseService(WarehouseService warehouseService)
-
-
-
Method Detail
-
createConsignment
public ConsignmentModel createConsignment(AbstractOrderModel order, java.lang.String code, java.util.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
public WarehouseModel getWarehouse(java.util.List<AbstractOrderEntryModel> orderEntries)
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
public void setModelService(ModelService modelService)
-
setWarehouseService
public void setWarehouseService(WarehouseService warehouseService)
-
-