Class DefaultSapEntitlementOutboundService

java.lang.Object
com.sap.hybris.sapentitlementsintegration.service.impl.DefaultSapEntitlementOutboundService
All Implemented Interfaces:
SapEntitlementOutboundService

public class DefaultSapEntitlementOutboundService extends Object implements SapEntitlementOutboundService
Default implementation of SapEntitlementOutboundService
  • Constructor Details

    • DefaultSapEntitlementOutboundService

      public DefaultSapEntitlementOutboundService()
  • Method Details

    • sendRequest

      public <T> T sendRequest(Object request, Class<T> responseClass, String destinationID)
      Sends request to SAP Entitlements.
      Specified by:
      sendRequest in interface SapEntitlementOutboundService
      Type Parameters:
      T - Type of the response object
      Parameters:
      request - Request object
      responseClass - Type to map with API response
      destinationID - 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:
      sendRequest in interface SapEntitlementOutboundService
    • 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