Class DefaultEngineDeterminationService
java.lang.Object
de.hybris.platform.cpq.productconfig.services.impl.DefaultEngineDeterminationService
- All Implemented Interfaces:
EngineDeterminationService
Default implementation of
EngineDeterminationService-
Constructor Summary
ConstructorsConstructorDescriptionDefaultEngineDeterminationService(CacheAccessService<DefaultCacheKey, AuthorizationData> cacheAccessService, boolean defaultMockEngineActive) Inject mandatory beansDefaultEngineDeterminationService(CacheAccessService<DefaultCacheKey, AuthorizationData> cacheAccessService, boolean defaultMockEngineActive, CacheAccessService<DefaultCacheKey, AuthorizationData> clientAuthorizationCacheAccessService) Inject mandatory beans -
Method Summary
Modifier and TypeMethodDescriptionprotected CacheAccessService<DefaultCacheKey,AuthorizationData> protected CacheAccessService<DefaultCacheKey,AuthorizationData> protected booleanbooleanvoidreset()reset the engine state to the configured default value of the systemvoidsetMockEngineActive(boolean mockEngineActive)
-
Constructor Details
-
DefaultEngineDeterminationService
public DefaultEngineDeterminationService(CacheAccessService<DefaultCacheKey, AuthorizationData> cacheAccessService, boolean defaultMockEngineActive) Inject mandatory beans- Parameters:
cacheAccessService- Used to invalidate admin authorization caches on change of the enginedefaultMockEngineActive- default behaviour - can be configured via local.propertiescpqproductconfigservices.mockEngineActive=false
will restore this value onreset()
-
DefaultEngineDeterminationService
public DefaultEngineDeterminationService(CacheAccessService<DefaultCacheKey, AuthorizationData> cacheAccessService, boolean defaultMockEngineActive, CacheAccessService<DefaultCacheKey, AuthorizationData> clientAuthorizationCacheAccessService) Inject mandatory beans- Parameters:
cacheAccessService- Used to invalidate admin authorization caches on change of the enginedefaultMockEngineActive- default behaviour - can be configured via local.propertiescpqproductconfigservices.mockEngineActive=false
will restore this value onreset()clientAuthorizationCacheAccessService- Used to invalidate client authorization caches on change of the engine
-
-
Method Details
-
getCacheAccessService
-
setMockEngineActive
public void setMockEngineActive(boolean mockEngineActive) - Parameters:
mockEngineActive- Is mock engine active?
-
isMockEngineActive
public boolean isMockEngineActive()- Specified by:
isMockEngineActivein interfaceEngineDeterminationService- Returns:
- Are we using the mock configuration engine?
-
reset
public void reset()reset the engine state to the configured default value of the system -
isEngineSwitchAllowed
protected boolean isEngineSwitchAllowed() -
getClientAuthorizationCacheAccessService
protected CacheAccessService<DefaultCacheKey,AuthorizationData> getClientAuthorizationCacheAccessService()
-