Class DefaultOneOrderOSINServiceTypeHandler
java.lang.Object
de.hybris.platform.oneorderfacades.handlers.osin.impl.DefaultOneOrderOSINServiceTypeHandler
- All Implemented Interfaces:
OneOrderOSINOrderItemHandler
public class DefaultOneOrderOSINServiceTypeHandler
extends Object
implements OneOrderOSINOrderItemHandler
The One Order Item Type implementation of
OneOrderOSINOrderItemHandler interface. This Handler populates the service
type in a order item type attribute.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected PriceTypecreatePriceForService(AbstractOrderEntryModel orderEntry) Create a price type for a service.protected StringcreateSeatIdentifier(String seatId, AbstractOrderEntryModel orderEntry) Create seat identifier string.protected voidcreateService(AbstractOrderEntryModel orderEntry, String travellerUid, List<ServiceType> serviceTypeList) Create service.protected ServiceAssociationsTypecreateServiceAssociations(AbstractOrderEntryModel orderEntry) Populate service associations.protected ServiceAssociationsTypecreateServiceAssociationsFromConsignmentEntry(ConsignmentEntryModel consignmentEntry) Create service associations from consignment entry.protected List<ServiceType>createServiceFromConsignmentEntry(ConsignmentEntryModel consignmentEntry) Create service from a consignment entry.protected TaxTypecreateTaxType(de.hybris.platform.util.TaxValue taxValue) Creates tax type.protected de.hybris.platform.servicelayer.config.ConfigurationServiceGets the configurationServiceprotected StringgetSeatIdentifier(AbstractOrderEntryModel orderEntry) Gets seat identifier.protected de.hybris.platform.servicelayer.session.SessionServiceGets session service.protected StringGets traveller uid.voidhandle(List<AbstractOrderEntryModel> transportOrderEntryList, Integer entryGroupNumber, OrderItemType orderItemType) Handler which populates the service type in a order item type attribute in Order Sales Information Notification message.voidsetConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService) Sets the configurationServicevoidsetSessionService(de.hybris.platform.servicelayer.session.SessionService sessionService) Sets session service.
-
Constructor Details
-
DefaultOneOrderOSINServiceTypeHandler
public DefaultOneOrderOSINServiceTypeHandler()
-
-
Method Details
-
handle
public void handle(List<AbstractOrderEntryModel> transportOrderEntryList, Integer entryGroupNumber, OrderItemType orderItemType) Handler which populates the service type in a order item type attribute in Order Sales Information Notification message.- Specified by:
handlein interfaceOneOrderOSINOrderItemHandler- Parameters:
transportOrderEntryList- the list of transportOrderEntriesorderItemType- the orderItemType
-
createService
protected void createService(AbstractOrderEntryModel orderEntry, String travellerUid, List<ServiceType> serviceTypeList) Create service.- Parameters:
orderEntry- the order entrytravellerUid- the traveller uidserviceTypeList- the list of service types
-
createServiceFromConsignmentEntry
protected List<ServiceType> createServiceFromConsignmentEntry(ConsignmentEntryModel consignmentEntry) Create service from a consignment entry.- Parameters:
consignmentEntry- the consignment entry
-
createServiceAssociationsFromConsignmentEntry
protected ServiceAssociationsType createServiceAssociationsFromConsignmentEntry(ConsignmentEntryModel consignmentEntry) Create service associations from consignment entry.- Parameters:
consignmentEntry- the consignment entry
-
createServiceAssociations
Populate service associations.- Parameters:
orderEntry- the order entry
-
getSeatIdentifier
Gets seat identifier.- Parameters:
orderEntry- the order entry- Returns:
- the seat identifier
-
createSeatIdentifier
Create seat identifier string.- Parameters:
seatId- the seat idorderEntry- the order entry- Returns:
- the string
-
createPriceForService
Create a price type for a service.- Parameters:
orderEntry- the orderEntry- Returns:
- the price type
-
createTaxType
Creates tax type.- Parameters:
taxValue- the taxValue- Returns:
- the taxType
-
getTravellerUid
Gets traveller uid.- Parameters:
entry- the entry- Returns:
- the traveller uid
-
getSessionService
protected de.hybris.platform.servicelayer.session.SessionService getSessionService()Gets session service.- Returns:
- the session service
-
setSessionService
public void setSessionService(de.hybris.platform.servicelayer.session.SessionService sessionService) Sets session service.- Parameters:
sessionService- the session service
-
getConfigurationService
protected de.hybris.platform.servicelayer.config.ConfigurationService getConfigurationService()Gets the configurationService- Returns:
- the configurationService
-
setConfigurationService
public void setConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService) Sets the configurationService- Parameters:
configurationService- the configurationService
-