| Line 3... |
Line 3... |
| 3 |
*/
|
3 |
*/
|
| 4 |
package in.shop2020.serving.controllers;
|
4 |
package in.shop2020.serving.controllers;
|
| 5 |
|
5 |
|
| 6 |
import in.shop2020.model.v1.user.Address;
|
6 |
import in.shop2020.model.v1.user.Address;
|
| 7 |
import in.shop2020.model.v1.user.AddressType;
|
7 |
import in.shop2020.model.v1.user.AddressType;
|
| 8 |
import in.shop2020.model.v1.user.UserContext;
|
8 |
import in.shop2020.model.v1.user.User;
|
| 9 |
import in.shop2020.model.v1.user.UserPrimaryInfo;
|
- |
|
| 10 |
import in.shop2020.model.v1.user.UserState;
|
9 |
import in.shop2020.model.v1.user.UserState;
|
| 11 |
import in.shop2020.serving.pages.PageContentKeys;
|
10 |
import in.shop2020.serving.pages.PageContentKeys;
|
| 12 |
import in.shop2020.serving.pages.PageEnum;
|
11 |
import in.shop2020.serving.pages.PageEnum;
|
| 13 |
import in.shop2020.serving.pages.PageManager;
|
12 |
import in.shop2020.serving.pages.PageManager;
|
| 14 |
import in.shop2020.serving.utils.Utils;
|
13 |
import in.shop2020.serving.utils.Utils;
|
| Line 82... |
Line 81... |
| 82 |
log.info("this.request=" + this.request);
|
81 |
log.info("this.request=" + this.request);
|
| 83 |
|
82 |
|
| 84 |
String userId = "";
|
83 |
String userId = "";
|
| 85 |
|
84 |
|
| 86 |
if(this.userinfo.isLoggedIn()){
|
85 |
if(this.userinfo.isLoggedIn()){
|
| 87 |
userId = (new Long(this.userinfo.getUserId())).toString();
|
- |
|
| 88 |
Map<PageContentKeys, String> params = new HashMap<PageContentKeys, String>();
|
86 |
Map<PageContentKeys, String> params = new HashMap<PageContentKeys, String>();
|
| 89 |
params.put(PageContentKeys.CUSTOMER_ID, userId);
|
87 |
params.put(PageContentKeys.CUSTOMER_ID, userinfo.getUserId() + "");
|
| 90 |
params.put(PageContentKeys.ITEM_COUNT, userinfo.getTotalItems()+"");
|
88 |
params.put(PageContentKeys.ITEM_COUNT, userinfo.getTotalItems()+"");
|
| - |
|
89 |
params.put(PageContentKeys.USER_NAME, userinfo.getNameOfUser());
|
| - |
|
90 |
params.put(PageContentKeys.IS_LOGGED_IN, userinfo.isLoggedIn()+"");
|
| 91 |
|
91 |
|
| 92 |
htmlSnippets = PageManager.getPageManager().getPageContents(PageEnum.LOGIN_DETAILS_PAGE, params);
|
92 |
htmlSnippets = PageManager.getPageManager().getPageContents(PageEnum.LOGIN_DETAILS_PAGE, params);
|
| 93 |
return new DefaultHttpHeaders("index").disableCaching();
|
93 |
return new DefaultHttpHeaders("index").disableCaching();
|
| 94 |
|
94 |
|
| 95 |
}else{
|
95 |
}else{
|