Package de.hybris.platform.order
Interface DeliveryModeService
-
- All Known Subinterfaces:
ZoneDeliveryModeService
- All Known Implementing Classes:
DefaultDeliveryModeService,DefaultZoneDeliveryModeService
public interface DeliveryModeServiceService around theDeliveryModeModel. Delivery mode is a summary data about a logistic company. You may find more info about delivery modes here. The service allows findingDeliveryModeModels by code. It also helps to find out delivery modes supported by payment modes.- Spring Bean ID:
- deliveryModeService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Collection<DeliveryModeModel>getAllDeliveryModes()Gets allDeliveryModeModels.DeliveryModeModelgetDeliveryModeForCode(java.lang.String code)Gets theDeliveryModeModelwith the specified code.java.util.Collection<DeliveryModeModel>getSupportedDeliveryModes(PaymentModeModel paymentMode)Gets allDeliveryModeModels which are supported for the givenPaymentModeModel.
-
-
-
Method Detail
-
getDeliveryModeForCode
DeliveryModeModel getDeliveryModeForCode(java.lang.String code)
Gets theDeliveryModeModelwith the specified code.- Parameters:
code- the delivery mode code- Returns:
- the found
DeliveryModeModelwith the specified code - Throws:
UnknownIdentifierException- if no delivery mode was found for the given code.AmbiguousIdentifierException- if more than one delivery model was found for the given code.
-
getAllDeliveryModes
java.util.Collection<DeliveryModeModel> getAllDeliveryModes()
Gets allDeliveryModeModels.- Returns:
- a
Collectionof allDeliveryModeModels
-
getSupportedDeliveryModes
java.util.Collection<DeliveryModeModel> getSupportedDeliveryModes(PaymentModeModel paymentMode)
Gets allDeliveryModeModels which are supported for the givenPaymentModeModel.- Parameters:
paymentMode- target paymentMode- Returns:
- a
Collectionof supportedDeliveryModeModels - Throws:
java.lang.IllegalArgumentException- if paymentMode is null
-
-