Class ThirdPartyEvents


  • public class ThirdPartyEvents
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String AFFILIATE_ID  
      static java.lang.String DISTRIBUTOR_ID  
      static java.lang.String module  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String setAssociationId​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Save the association id(s) specified in the request object into the session.
      static java.lang.String updateAssociatedAffiliate​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Update the affiliate association for the logged in user, if possible.
      static java.lang.String updateAssociatedDistributor​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Update the distributor association for the logged in user, if possible.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • module

        public static final java.lang.String module
    • Constructor Detail

      • ThirdPartyEvents

        public ThirdPartyEvents()
    • Method Detail

      • setAssociationId

        public static java.lang.String setAssociationId​(javax.servlet.http.HttpServletRequest request,
                                                        javax.servlet.http.HttpServletResponse response)
        Save the association id(s) specified in the request object into the session.
        Parameters:
        request - The HTTPRequest object for the current request
        response - The HTTPResponse object for the current request
        Returns:
        String specifying the exit status of this event
      • updateAssociatedDistributor

        public static java.lang.String updateAssociatedDistributor​(javax.servlet.http.HttpServletRequest request,
                                                                   javax.servlet.http.HttpServletResponse response)
        Update the distributor association for the logged in user, if possible.
        Parameters:
        request - The HTTPRequest object for the current request
        response - The HTTPResponse object for the current request
        Returns:
        String specifying the exit status of this event
      • updateAssociatedAffiliate

        public static java.lang.String updateAssociatedAffiliate​(javax.servlet.http.HttpServletRequest request,
                                                                 javax.servlet.http.HttpServletResponse response)
        Update the affiliate association for the logged in user, if possible.
        Parameters:
        request - The HTTPRequest object for the current request
        response - The HTTPResponse object for the current request
        Returns:
        String specifying the exit status of this event