Class CxOccTimeVoter
- java.lang.Object
-
- de.hybris.platform.personalizationservices.occ.voters.impl.AbstractCxOccVoter
-
- de.hybris.platform.personalizationservices.occ.voters.impl.CxOccTimeVoter
-
- All Implemented Interfaces:
CxOccVoter,org.springframework.core.Ordered,org.springframework.integration.context.Orderable
public class CxOccTimeVoter extends AbstractCxOccVoter
-
-
Field Summary
Fields Modifier and Type Field Description static intPRECEDENCE
-
Constructor Summary
Constructors Constructor Description CxOccTimeVoter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CxActionResultServicegetCxActionResultService()protected CxCatalogServicegetCxCatalogService()protected CxConfigurationServicegetCxConfigurationService()protected CxOccAttributesStrategygetCxOccAttributesStrategy()protected java.util.Optional<java.lang.Long>getLastCalculationTime(javax.servlet.http.HttpServletRequest request)protected TimeServicegetTimeService()protected UserServicegetUserService()VotegetVote(javax.servlet.http.HttpServletRequest request)Return vote for action which should be executed for Commerce Web Services requestvoidsetCxActionResultService(CxActionResultService cxActionResultService)voidsetCxCatalogService(CxCatalogService cxCatalogService)voidsetCxConfigurationService(CxConfigurationService cxConfigurationService)voidsetCxOccAttributesStrategy(CxOccAttributesStrategy cxOccAttributesStrategy)voidsetTimeService(TimeService timeService)voidsetUserService(UserService userService)-
Methods inherited from class de.hybris.platform.personalizationservices.occ.voters.impl.AbstractCxOccVoter
getDefaultVote, getOrder, setOrder
-
-
-
-
Field Detail
-
PRECEDENCE
public static final int PRECEDENCE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getVote
public Vote getVote(javax.servlet.http.HttpServletRequest request)
Description copied from interface:CxOccVoterReturn vote for action which should be executed for Commerce Web Services request- Parameters:
request- Http request- Returns:
- vote for recalculation action
-
getLastCalculationTime
protected java.util.Optional<java.lang.Long> getLastCalculationTime(javax.servlet.http.HttpServletRequest request)
-
getTimeService
protected TimeService getTimeService()
-
setTimeService
public void setTimeService(TimeService timeService)
-
getCxConfigurationService
protected CxConfigurationService getCxConfigurationService()
-
setCxConfigurationService
public void setCxConfigurationService(CxConfigurationService cxConfigurationService)
-
getCxOccAttributesStrategy
protected CxOccAttributesStrategy getCxOccAttributesStrategy()
-
setCxOccAttributesStrategy
public void setCxOccAttributesStrategy(CxOccAttributesStrategy cxOccAttributesStrategy)
-
getCxActionResultService
protected CxActionResultService getCxActionResultService()
-
setCxActionResultService
public void setCxActionResultService(CxActionResultService cxActionResultService)
-
getUserService
protected UserService getUserService()
-
setUserService
public void setUserService(UserService userService)
-
getCxCatalogService
protected CxCatalogService getCxCatalogService()
-
setCxCatalogService
public void setCxCatalogService(CxCatalogService cxCatalogService)
-
-