orderCollection = (OrderCollection)pipelineSession.getAttribute("ORDER_COLLECTION_KEY");
orderCollection = OrderCollectionManager.load(getPipelineSession());
pipelineSession = PipelineSessionManager.load(request, response);
getPipelineSession();
getOrderCollection()
map往list里放
Set ordersMapKeys = ordersMap.keySet();
for (Iterator iterator = ordersMapKeys.iterator(); iterator.hasNext();) {
ordersList.add(ordersMap.get(iterator.next()));
}
ProductVariantManager.getProductVariant(productVariantId)
site = SiteManager.findSite(request);
// get the cookie
Cookie userCookie = RequestUtil.findCookie(request, "PIPELINE_SESSION_ID");
if (userCookie != null) {
int expirationDate = site.getInt("SESSION_RETENTION");
/**
* If expiration date is different than the current
* cookie max age then set it
*/
if(userCookie.getMaxAge() != expirationDate) {
// set the cookie expire date
userCookie.setMaxAge(expirationDate * 24 * 60 * 60);
if (StringUtil.isEmpty(request.getContextPath()))
userCookie.setPath("/");
else
userCookie.setPath(request.getContextPath());
response.addCookie(userCookie);
}
}
orderCollection = OrderCollectionManager.load(getPipelineSession());
pipelineSession = PipelineSessionManager.load(request, response);
getPipelineSession();
getOrderCollection()
map往list里放
Set ordersMapKeys = ordersMap.keySet();
for (Iterator iterator = ordersMapKeys.iterator(); iterator.hasNext();) {
ordersList.add(ordersMap.get(iterator.next()));
}
ProductVariantManager.getProductVariant(productVariantId)
site = SiteManager.findSite(request);
// get the cookie
Cookie userCookie = RequestUtil.findCookie(request, "PIPELINE_SESSION_ID");
if (userCookie != null) {
int expirationDate = site.getInt("SESSION_RETENTION");
/**
* If expiration date is different than the current
* cookie max age then set it
*/
if(userCookie.getMaxAge() != expirationDate) {
// set the cookie expire date
userCookie.setMaxAge(expirationDate * 24 * 60 * 60);
if (StringUtil.isEmpty(request.getContextPath()))
userCookie.setPath("/");
else
userCookie.setPath(request.getContextPath());
response.addCookie(userCookie);
}
}