Class DefaultTmaEligibilityContextUpdateService
java.lang.Object
de.hybris.platform.b2ctelcoservices.compatibility.eligibility.impl.DefaultTmaEligibilityContextUpdateService
- All Implemented Interfaces:
TmaEligibilityContextService
public class DefaultTmaEligibilityContextUpdateService
extends Object
implements TmaEligibilityContextService
Default implementation of
TmaEligibilityContextService- Since:
- 1907
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves current's customer eligibility contextsextractEligibilityContextByCustomer(String customerUid) Retrieves current's customer eligibility contextsde.hybris.platform.servicelayer.model.ModelServicede.hybris.platform.servicelayer.session.SessionServicede.hybris.platform.servicelayer.user.UserServicevoidsetModelService(de.hybris.platform.servicelayer.model.ModelService modelService) voidsetSessionService(de.hybris.platform.servicelayer.session.SessionService sessionService) voidsetTmaEligibilityContextDao(TmaEligibilityContextDao tmaEligibilityContextDao) voidsetTmaEligibilityPolicyEngine(TmaEligibilityPolicyEngine tmaEligibilityPolicyEngine) voidsetUserService(de.hybris.platform.servicelayer.user.UserService userService) booleanVerifies if the eligibility context and eligibility rules should be applied.voidupdateApplyEligibilityFlag(boolean applyEligibilityFlag) Updates the flag used to decide if the eligibility should be applied or not.voidupdateEligibilityContexts(boolean forceRefresh) Updates theTmaEligibilityContexts for the current customer.voidupdateEligibilityContextsByCustomer(boolean forceRefresh, CustomerModel customer) Updates theTmaEligibilityContexts for the current customer.
-
Constructor Details
-
DefaultTmaEligibilityContextUpdateService
public DefaultTmaEligibilityContextUpdateService()
-
-
Method Details
-
updateEligibilityContexts
public void updateEligibilityContexts(boolean forceRefresh) Description copied from interface:TmaEligibilityContextServiceUpdates theTmaEligibilityContexts for the current customer.- Specified by:
updateEligibilityContextsin interfaceTmaEligibilityContextService- Parameters:
forceRefresh- flag which indicates whether the eligibility contexts should be recreated before updating.
-
updateEligibilityContextsByCustomer
Description copied from interface:TmaEligibilityContextServiceUpdates theTmaEligibilityContexts for the current customer.- Specified by:
updateEligibilityContextsByCustomerin interfaceTmaEligibilityContextService- Parameters:
forceRefresh- indicates whether to delete the old eligibility context or notcustomer- Indicating the customer for whom eligibility context needs refresh
-
shouldApplyEligibility
public boolean shouldApplyEligibility()Description copied from interface:TmaEligibilityContextServiceVerifies if the eligibility context and eligibility rules should be applied.- Specified by:
shouldApplyEligibilityin interfaceTmaEligibilityContextService- Returns:
- true if eligibility should be applied, false otherwise
-
updateApplyEligibilityFlag
public void updateApplyEligibilityFlag(boolean applyEligibilityFlag) Description copied from interface:TmaEligibilityContextServiceUpdates the flag used to decide if the eligibility should be applied or not.- Specified by:
updateApplyEligibilityFlagin interfaceTmaEligibilityContextService- Parameters:
applyEligibilityFlag- the new value to be used for update
-
extractEligibilityContext
Description copied from interface:TmaEligibilityContextServiceRetrieves current's customer eligibility contexts- Specified by:
extractEligibilityContextin interfaceTmaEligibilityContextService- Returns:
- applicable eligibility contexts for the customer
-
extractEligibilityContextByCustomer
Description copied from interface:TmaEligibilityContextServiceRetrieves current's customer eligibility contexts- Specified by:
extractEligibilityContextByCustomerin interfaceTmaEligibilityContextService- Parameters:
customerUid- identifies the customer- Returns:
- applicable eligibility contexts for the customer
-
getUserService
public de.hybris.platform.servicelayer.user.UserService getUserService() -
setUserService
public void setUserService(de.hybris.platform.servicelayer.user.UserService userService) -
getTmaEligibilityContextDao
-
setTmaEligibilityContextDao
-
getTmaEligibilityPolicyEngine
-
setTmaEligibilityPolicyEngine
-
getModelService
public de.hybris.platform.servicelayer.model.ModelService getModelService() -
setModelService
public void setModelService(de.hybris.platform.servicelayer.model.ModelService modelService) -
getSessionService
public de.hybris.platform.servicelayer.session.SessionService getSessionService() -
setSessionService
public void setSessionService(de.hybris.platform.servicelayer.session.SessionService sessionService)
-