Interface CPQInteractionStrategy

All Known Implementing Classes:
DefaultCPQInteractionStrategy

public interface CPQInteractionStrategy
Facilitats interaction with CPQ
  • Method Details

    • getClient

      CpqClient getClient()
      Retrieves a CPQ client to interact with
      Returns:
      CPQ client
    • getAuthorizationString

      String getAuthorizationString()
      Determines the admin authorization string for interaction with the CPQ client
      Returns:
      authorization string
    • getClientAuthorizationString

      String getClientAuthorizationString(String ownerId)
      Determines the client authorization string for a given owenerId for interaction with the CPQ client
      Parameters:
      ownerId - ownerId which will be encoded in the token
      Returns:
      authorization string
    • isAuthorizationDataForClientInCache

      default boolean isAuthorizationDataForClientInCache(String ownerId)
      Verifies if the client authorization data already cached for the given owner
      Parameters:
      ownerId - owner id of the client
      Returns:
      true if client authorization data already cached for the given owner