Class PreviewVoter
java.lang.Object
de.hybris.platform.personalizationservices.voters.impl.AbstractVoter
de.hybris.platform.personalizationcms.voters.impl.PreviewVoter
- All Implemented Interfaces:
CxOccVoter,Voter,org.springframework.core.Ordered,org.springframework.integration.context.Orderable
Extension of
AbstractVoter that votes with conclusive vote if preview ticket is in the request also adding an
action to RECALCULATE-
Field Summary
FieldsFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected SessionServicegetVote(javax.servlet.http.HttpServletRequest request) Return vote for action which should be executed for Commerce Web Services requestgetVote(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) protected booleanvoidsetSessionService(SessionService sessionService) Methods inherited from class de.hybris.platform.personalizationservices.voters.impl.AbstractVoter
getDefaultVote, getOrder, setOrderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.integration.context.Orderable
setOrderMethods inherited from interface org.springframework.core.Ordered
getOrder
-
Field Details
-
PREVIEW_PRECEDENCE
public static final int PREVIEW_PRECEDENCE- See Also:
-
-
Constructor Details
-
PreviewVoter
public PreviewVoter()
-
-
Method Details
-
getVote
public Vote getVote(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) -
isEnabled
protected boolean isEnabled() -
setSessionService
-
getSessionService
-
getVote
Description copied from interface:CxOccVoterReturn vote for action which should be executed for Commerce Web Services request- Specified by:
getVotein interfaceCxOccVoter- Parameters:
request- Http request- Returns:
- vote for recalculation action
-