Class DefaultCPQInteractionStrategy
java.lang.Object
de.hybris.platform.cpq.productconfig.services.strategies.impl.DefaultCPQInteractionStrategy
- All Implemented Interfaces:
CPQInteractionStrategy
Default implementation of the
CPQInteractionStrategy-
Constructor Summary
ConstructorsConstructorDescriptionDefaultCPQInteractionStrategy(de.hybris.platform.apiregistryservices.services.ApiRegistryClientService apiRegistryClientService, AuthorizationService authorizationService) Injection of mandatory beans -
Method Summary
Modifier and TypeMethodDescriptionprotected de.hybris.platform.apiregistryservices.services.ApiRegistryClientServiceprotected AuthorizationServiceDetermines the admin authorization string for interaction with the CPQ clientRetrieves a CPQ client to interact withgetClientAuthorizationString(String ownerId) Determines the client authorization string for a given owenerId for interaction with the CPQ clientbooleanVerifies if the client authorization data already cached for the given owner
-
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
-
getClient
Description copied from interface:CPQInteractionStrategyRetrieves a CPQ client to interact with- Specified by:
getClientin interfaceCPQInteractionStrategy- Returns:
- CPQ client
-
getAuthorizationString
Description copied from interface:CPQInteractionStrategyDetermines the admin authorization string for interaction with the CPQ client- Specified by:
getAuthorizationStringin interfaceCPQInteractionStrategy- Returns:
- authorization string
-
getClientAuthorizationString
Description copied from interface:CPQInteractionStrategyDetermines the client authorization string for a given owenerId for interaction with the CPQ client- Specified by:
getClientAuthorizationStringin interfaceCPQInteractionStrategy- Parameters:
ownerId- ownerId which will be encoded in the token- Returns:
- authorization string
-
isAuthorizationDataForClientInCache
Description copied from interface:CPQInteractionStrategyVerifies if the client authorization data already cached for the given owner- Specified by:
isAuthorizationDataForClientInCachein interfaceCPQInteractionStrategy- Parameters:
ownerId- owner id of the client- Returns:
- true if client authorization data already cached for the given owner
-