Class DefaultOMSASourcingService
java.lang.Object
de.hybris.platform.sapomsaservices.services.impl.DefaultAbstractOMSAService<SAPOMSASourcingRequest,SAPOMSASourcingResponse>
de.hybris.platform.sapomsaservices.services.impl.DefaultOMSASourcingService
- All Implemented Interfaces:
OMSAService<SAPOMSASourcingRequest,,SAPOMSASourcingResponse> OMSASourcingService
- Direct Known Subclasses:
DefaultOMSACronJobSourcingService
public class DefaultOMSASourcingService
extends DefaultAbstractOMSAService<SAPOMSASourcingRequest,SAPOMSASourcingResponse>
implements OMSASourcingService
Javadoc comment for
DefaultOMSASourcingService
This class contains definitions of sourcing methods.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildSourcingRequestPayload(AbstractOrderModel cartModel, boolean sourcingFlag) Builds Request payload for OMSA Sourcing API.doSourcing(AbstractOrderModel cartModel, boolean sourcingFlag) Calls the OMSA Sourcing API.booleanisEnabled(BaseStoreModel store) Checks if OMSA falgs are enabledvoidsetOmsaConfigurationService(OMSAConfigurationService omsaConfigurationService) Methods inherited from class de.hybris.platform.sapomsaservices.services.impl.DefaultAbstractOMSAService
callOMSA, getBaseStoreService, getConsumedDestination, getDestinationService, getOmsaConnector, getResponseType, getSapMappedDestinationService, setBaseStoreService, setDestinationService, setOmsaConnector, setResponseType, setSapMappedDestinationServiceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.sapomsaservices.services.OMSAService
createHttpEntity, getProductCode
-
Constructor Details
-
DefaultOMSASourcingService
public DefaultOMSASourcingService()
-
-
Method Details
-
doSourcing
public SAPOMSASourcingResponse doSourcing(AbstractOrderModel cartModel, boolean sourcingFlag) throws OMSAException Description copied from interface:OMSASourcingServiceCalls the OMSA Sourcing API.- Specified by:
doSourcingin interfaceOMSASourcingService- Parameters:
cartModel- The abastractOrderModel objectsourcingFlag- to differentiate between sourcing calls with and without Reservations- Returns:
- SAPOMSASourcingResponse
- Throws:
OMSAException- throws OMSA Exception when some error occurs from OMSA server
-
isEnabled
Description copied from interface:OMSAServiceChecks if OMSA falgs are enabled- Specified by:
isEnabledin interfaceOMSAService<SAPOMSASourcingRequest,SAPOMSASourcingResponse> - Parameters:
store- store- Returns:
- boolean
-
buildSourcingRequestPayload
public SAPOMSASourcingRequest buildSourcingRequestPayload(AbstractOrderModel cartModel, boolean sourcingFlag) Description copied from interface:OMSASourcingServiceBuilds Request payload for OMSA Sourcing API.- Specified by:
buildSourcingRequestPayloadin interfaceOMSASourcingService- Parameters:
cartModel- cartModel objectsourcingFlag- to differentiate between sourcing calls with and without Reservations- Returns:
- SAPOMSASourcingResponse
-
getOmsaConfigurationService
-
setOmsaConfigurationService
-