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 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:
      handle in interface OneOrderOSINOrderItemHandler
      Parameters:
      transportOrderEntryList - the list of transportOrderEntries
      orderItemType - the orderItemType
    • createService

      protected void createService(AbstractOrderEntryModel orderEntry, String travellerUid, List<ServiceType> serviceTypeList)
      Create service.
      Parameters:
      orderEntry - the order entry
      travellerUid - the traveller uid
      serviceTypeList - 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

      protected ServiceAssociationsType createServiceAssociations(AbstractOrderEntryModel orderEntry)
      Populate service associations.
      Parameters:
      orderEntry - the order entry
    • getSeatIdentifier

      protected String getSeatIdentifier(AbstractOrderEntryModel orderEntry)
      Gets seat identifier.
      Parameters:
      orderEntry - the order entry
      Returns:
      the seat identifier
    • createSeatIdentifier

      protected String createSeatIdentifier(String seatId, AbstractOrderEntryModel orderEntry)
      Create seat identifier string.
      Parameters:
      seatId - the seat id
      orderEntry - the order entry
      Returns:
      the string
    • createPriceForService

      protected PriceType createPriceForService(AbstractOrderEntryModel orderEntry)
      Create a price type for a service.
      Parameters:
      orderEntry - the orderEntry
      Returns:
      the price type
    • createTaxType

      protected TaxType createTaxType(de.hybris.platform.util.TaxValue taxValue)
      Creates tax type.
      Parameters:
      taxValue - the taxValue
      Returns:
      the taxType
    • getTravellerUid

      protected String getTravellerUid(AbstractOrderEntryModel entry)
      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