Class DefaultCPQInteractionStrategy

java.lang.Object
de.hybris.platform.cpq.productconfig.services.strategies.impl.DefaultCPQInteractionStrategy
All Implemented Interfaces:
CPQInteractionStrategy

public class DefaultCPQInteractionStrategy extends Object implements CPQInteractionStrategy
Default implementation of the CPQInteractionStrategy
  • Constructor Details

    • DefaultCPQInteractionStrategy

      public DefaultCPQInteractionStrategy(de.hybris.platform.apiregistryservices.services.ApiRegistryClientService apiRegistryClientService, AuthorizationService authorizationService)
      Injection of mandatory beans
      Parameters:
      apiRegistryClientService -
      authorizationService -
  • Method Details

    • getApiRegistryClientService

      protected de.hybris.platform.apiregistryservices.services.ApiRegistryClientService getApiRegistryClientService()
    • getAuthorizationService

      protected AuthorizationService getAuthorizationService()
    • getClient

      public CpqClient getClient()
      Description copied from interface: CPQInteractionStrategy
      Retrieves a CPQ client to interact with
      Specified by:
      getClient in interface CPQInteractionStrategy
      Returns:
      CPQ client
    • getAuthorizationString

      public String getAuthorizationString()
      Description copied from interface: CPQInteractionStrategy
      Determines the admin authorization string for interaction with the CPQ client
      Specified by:
      getAuthorizationString in interface CPQInteractionStrategy
      Returns:
      authorization string
    • getClientAuthorizationString

      public String getClientAuthorizationString(String ownerId)
      Description copied from interface: CPQInteractionStrategy
      Determines the client authorization string for a given owenerId for interaction with the CPQ client
      Specified by:
      getClientAuthorizationString in interface CPQInteractionStrategy
      Parameters:
      ownerId - ownerId which will be encoded in the token
      Returns:
      authorization string
    • isAuthorizationDataForClientInCache

      public boolean isAuthorizationDataForClientInCache(String ownerId)
      Description copied from interface: CPQInteractionStrategy
      Verifies if the client authorization data already cached for the given owner
      Specified by:
      isAuthorizationDataForClientInCache in interface CPQInteractionStrategy
      Parameters:
      ownerId - owner id of the client
      Returns:
      true if client authorization data already cached for the given owner