Package org.apache.ofbiz.ecommerce.misc
Class ThirdPartyEvents
- java.lang.Object
-
- org.apache.ofbiz.ecommerce.misc.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
-
Constructor Summary
Constructors Constructor Description ThirdPartyEvents()
-
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.
-
-
-
Field Detail
-
module
public static final java.lang.String module
-
DISTRIBUTOR_ID
public static final java.lang.String DISTRIBUTOR_ID
- See Also:
- Constant Field Values
-
AFFILIATE_ID
public static final java.lang.String AFFILIATE_ID
- See Also:
- Constant Field Values
-
-
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 requestresponse
- 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 requestresponse
- 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 requestresponse
- The HTTPResponse object for the current request- Returns:
- String specifying the exit status of this event
-
-