Class DefaultMultichannelOrderHistoryExtractorService
java.lang.Object
de.hybris.platform.sap.sapcarintegration.services.impl.AbstractCarOrderHistoryBaseExtractor
de.hybris.platform.sap.sapcarintegration.services.impl.DefaultCarOrderHistoryExtractorService
de.hybris.platform.sap.sapcarintegration.services.impl.DefaultMultichannelOrderHistoryExtractorService
- All Implemented Interfaces:
CarOrderHistoryExtractorService,MultichannelOrderHistoryExtractorService
public class DefaultMultichannelOrderHistoryExtractorService
extends DefaultCarOrderHistoryExtractorService
implements MultichannelOrderHistoryExtractorService
Default concrete implementation to provide business logic for
MultichannelOrderHistoryExtractorService-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected OrderChannelTypeEnumutility method to determine order Type storeId != null ---> POS Order salesOrg + DisChannel + DocumentType == Current Store Config ---> Hybris web Order Otherwise its an SD ORderprotected CarMultichannelOrderHistoryDataextractMultichannelOrder(org.apache.olingo.odata2.api.ep.entry.ODataEntry entry) extractMultichannelOrders(PaginationData paginationData, org.apache.olingo.odata2.api.ep.feed.ODataFeed feed) Extract the full details of the Multichannel orders from the CAR instanceprotected CarOrderEntryDataextractOrderEntry(org.apache.olingo.odata2.api.ep.entry.ODataEntry odataEntry, int entryNumber) voidextractSalesDocumentEntries(CarMultichannelOrderHistoryData order, org.apache.olingo.odata2.api.ep.feed.ODataFeed feed) Extract the various Sales Document Entries contained within the MultiChannel CAR instanceextractSalesDocumentHeader(org.apache.olingo.odata2.api.ep.feed.ODataFeed feed) Extract Header information for MultiChannel Orders from a CAR instancesvoidsetCarConfigurationService(CarConfigurationService carConfigurationService) Methods inherited from class de.hybris.platform.sap.sapcarintegration.services.impl.DefaultCarOrderHistoryExtractorService
extractOrder, extractOrder, extractOrderEntries, extractOrders, extractStoreLocationMethods inherited from class de.hybris.platform.sap.sapcarintegration.services.impl.AbstractCarOrderHistoryBaseExtractor
createBasePrice, createBasePriceWithTax, createPrice, createPrice, createPriceWithTaxMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.sap.sapcarintegration.services.CarOrderHistoryExtractorService
extractOrder, extractOrderEntries, extractOrders, extractStoreLocation
-
Constructor Details
-
DefaultMultichannelOrderHistoryExtractorService
public DefaultMultichannelOrderHistoryExtractorService()
-
-
Method Details
-
getCarConfigurationService
-
setCarConfigurationService
-
extractMultichannelOrders
public List<CarMultichannelOrderHistoryData> extractMultichannelOrders(PaginationData paginationData, org.apache.olingo.odata2.api.ep.feed.ODataFeed feed) Description copied from interface:MultichannelOrderHistoryExtractorServiceExtract the full details of the Multichannel orders from the CAR instance- Specified by:
extractMultichannelOrdersin interfaceMultichannelOrderHistoryExtractorService- Returns:
- List containing entries for each Order instance
-
extractMultichannelOrder
protected CarMultichannelOrderHistoryData extractMultichannelOrder(org.apache.olingo.odata2.api.ep.entry.ODataEntry entry) -
extractSalesDocumentHeader
public CarMultichannelOrderHistoryData extractSalesDocumentHeader(org.apache.olingo.odata2.api.ep.feed.ODataFeed feed) Description copied from interface:MultichannelOrderHistoryExtractorServiceExtract Header information for MultiChannel Orders from a CAR instances- Specified by:
extractSalesDocumentHeaderin interfaceMultichannelOrderHistoryExtractorService- Returns:
- OrderHistoryData containing Multichannel header from the Sales Document
-
extractSalesDocumentEntries
public void extractSalesDocumentEntries(CarMultichannelOrderHistoryData order, org.apache.olingo.odata2.api.ep.feed.ODataFeed feed) Description copied from interface:MultichannelOrderHistoryExtractorServiceExtract the various Sales Document Entries contained within the MultiChannel CAR instance- Specified by:
extractSalesDocumentEntriesin interfaceMultichannelOrderHistoryExtractorService
-
extractOrderEntry
protected CarOrderEntryData extractOrderEntry(org.apache.olingo.odata2.api.ep.entry.ODataEntry odataEntry, int entryNumber) - Overrides:
extractOrderEntryin classDefaultCarOrderHistoryExtractorService
-
determineOrderChannelType
utility method to determine order Type storeId != null ---> POS Order salesOrg + DisChannel + DocumentType == Current Store Config ---> Hybris web Order Otherwise its an SD ORder- Parameters:
order-- Returns:
-