Class DefaultSapEntitlementOutboundService
- java.lang.Object
-
- com.sap.hybris.sapentitlementsintegration.service.impl.DefaultSapEntitlementOutboundService
-
- All Implemented Interfaces:
SapEntitlementOutboundService
public class DefaultSapEntitlementOutboundService extends java.lang.Object implements SapEntitlementOutboundService
Default implementation of SapEntitlementOutboundService
-
-
Constructor Summary
Constructors Constructor Description DefaultSapEntitlementOutboundService()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description de.hybris.platform.apiregistryservices.services.DestinationService<ConsumedDestinationModel>getDestinationService()EntitlementssendRequest(GetEntitlementRequest request)Deprecated, for removal: This API element is subject to removal in a future version.not used anymore.<T> TsendRequest(java.lang.Object request, java.lang.Class<T> responseClass, java.lang.String destinationID)Sends request to SAP Entitlements.voidsetDestinationService(de.hybris.platform.apiregistryservices.services.DestinationService<ConsumedDestinationModel> destinationService)voidsetSapEntitlementRestTemplateFactory(SapEntitlementRestTemplateFactory sapEntitlementRestTemplateFactory)
-
-
-
Method Detail
-
sendRequest
public <T> T sendRequest(java.lang.Object request, java.lang.Class<T> responseClass, java.lang.String destinationID)Sends request to SAP Entitlements.- Specified by:
sendRequestin interfaceSapEntitlementOutboundService- Type Parameters:
T- Type of the response object- Parameters:
request- Request objectresponseClass- Type to map with API responsedestinationID- Destination ID for target destination- Returns:
- The response of the request
-
sendRequest
@Deprecated(since="1905.2003-CEP", forRemoval=true) public Entitlements sendRequest(GetEntitlementRequest request)Deprecated, for removal: This API element is subject to removal in a future version.not used anymore.- Specified by:
sendRequestin interfaceSapEntitlementOutboundService
-
getDestinationService
public de.hybris.platform.apiregistryservices.services.DestinationService<ConsumedDestinationModel> getDestinationService()
- Returns:
- the destinationService
-
setDestinationService
public void setDestinationService(de.hybris.platform.apiregistryservices.services.DestinationService<ConsumedDestinationModel> destinationService)
- Parameters:
destinationService- the destinationService to set
-
setSapEntitlementRestTemplateFactory
public void setSapEntitlementRestTemplateFactory(SapEntitlementRestTemplateFactory sapEntitlementRestTemplateFactory)
- Parameters:
sapEntitlementRestTemplateFactory- the sapEntitlementRestTemplateFactory to set
-
-