Class PreviewVoter

  • All Implemented Interfaces:
    CxOccVoter, Voter, org.springframework.core.Ordered, org.springframework.integration.context.Orderable

    public class PreviewVoter
    extends AbstractVoter
    implements CxOccVoter
    Extension of AbstractVoter that votes with conclusive vote if preview ticket is in the request also adding an action to RECALCULATE
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int PREVIEW_PRECEDENCE  
      • Fields inherited from interface org.springframework.core.Ordered

        HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
    • Constructor Summary

      Constructors 
      Constructor Description
      PreviewVoter()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected SessionService getSessionService()  
      Vote getVote​(javax.servlet.http.HttpServletRequest request)
      Return vote for action which should be executed for Commerce Web Services request
      Vote getVote​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)  
      protected boolean isEnabled()  
      void setSessionService​(SessionService sessionService)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.springframework.integration.context.Orderable

        setOrder
      • Methods inherited from interface org.springframework.core.Ordered

        getOrder
    • Constructor Detail

      • PreviewVoter

        public PreviewVoter()
    • Method Detail

      • getVote

        public Vote getVote​(javax.servlet.http.HttpServletRequest request,
                            javax.servlet.http.HttpServletResponse response)
        Specified by:
        getVote in interface Voter
      • isEnabled

        protected boolean isEnabled()
      • setSessionService

        public void setSessionService​(SessionService sessionService)
      • getVote

        public Vote getVote​(javax.servlet.http.HttpServletRequest request)
        Description copied from interface: CxOccVoter
        Return vote for action which should be executed for Commerce Web Services request
        Specified by:
        getVote in interface CxOccVoter
        Parameters:
        request - Http request
        Returns:
        vote for recalculation action