Class DefaultCxOccInterceptor
- java.lang.Object
-
- de.hybris.platform.personalizationservices.occ.impl.AbstractCxOccInterceptor
-
- de.hybris.platform.personalizationservices.occ.impl.DefaultCxOccInterceptor
-
- All Implemented Interfaces:
CxOccInterceptor,org.springframework.core.Ordered,org.springframework.integration.context.Orderable
public class DefaultCxOccInterceptor extends AbstractCxOccInterceptor
-
-
Field Summary
Fields Modifier and Type Field Description static intPRECEDENCE
-
Constructor Summary
Constructors Constructor Description DefaultCxOccInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidafterVoteExecution(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Vote vote)Method called after final vote executionprotected CxConsentServicegetCxConsentService()protected CxOccAttributesStrategygetCxOccAttributesStrategy()protected UserServicegetUserService()protected booleanisRecalculationAction(RecalculateAction a)voidsetCxConsentService(CxConsentService cxConsentService)voidsetCxOccAttributesStrategy(CxOccAttributesStrategy cxOccAttributesStrategy)voidsetUserService(UserService userService)booleanshouldPersonalizeRequest(javax.servlet.http.HttpServletRequest request)Deprecated, for removal: This API element is subject to removal in a future version.since 1905.CxOccInterceptorVoteshouldPersonalizeRequestVote(javax.servlet.http.HttpServletRequest request)Method to determine if personalization process should be executed for this request-
Methods inherited from class de.hybris.platform.personalizationservices.occ.impl.AbstractCxOccInterceptor
getDefaultVote, getOrder, setOrder
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.personalizationservices.occ.CxOccInterceptor
beforeGetVote, beforeVoteExecution
-
-
-
-
Field Detail
-
PRECEDENCE
public static final int PRECEDENCE
- See Also:
- Constant Field Values
-
-
Method Detail
-
shouldPersonalizeRequest
@Deprecated(since="1905", forRemoval=true) public boolean shouldPersonalizeRequest(javax.servlet.http.HttpServletRequest request)Deprecated, for removal: This API element is subject to removal in a future version.since 1905. Please useCxOccInterceptor#shouldPersonalizeRequestVote(HttpServletRequest)instead.Description copied from interface:CxOccInterceptorMethod to determine if personalization process should be executed for this request- Parameters:
request- Http request- Returns:
- true - when personalization process should be continued
false - when personalization process should be omitted
-
shouldPersonalizeRequestVote
public CxOccInterceptorVote shouldPersonalizeRequestVote(javax.servlet.http.HttpServletRequest request)
Description copied from interface:CxOccInterceptorMethod to determine if personalization process should be executed for this request- Parameters:
request- Http request- Returns:
- CxOccInterceptorVote - vote with information if personalization process should be continued
-
afterVoteExecution
public void afterVoteExecution(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Vote vote)Description copied from interface:CxOccInterceptorMethod called after final vote execution- Parameters:
request- Http requestresponse- Http responsevote- final vote which was executed
-
isRecalculationAction
protected boolean isRecalculationAction(RecalculateAction a)
-
getCxConsentService
protected CxConsentService getCxConsentService()
-
setCxConsentService
public void setCxConsentService(CxConsentService cxConsentService)
-
getUserService
protected UserService getUserService()
-
setUserService
public void setUserService(UserService userService)
-
getCxOccAttributesStrategy
protected CxOccAttributesStrategy getCxOccAttributesStrategy()
-
setCxOccAttributesStrategy
public void setCxOccAttributesStrategy(CxOccAttributesStrategy cxOccAttributesStrategy)
-
-