| 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 90... |
Line 89... |
| 90 |
if(this.userinfo.isLoggedIn()){
|
89 |
if(this.userinfo.isLoggedIn()){
|
| 91 |
userId = (new Long(this.userinfo.getUserId())).toString();
|
90 |
userId = (new Long(this.userinfo.getUserId())).toString();
|
| 92 |
Map<PageContentKeys, String> params = new HashMap<PageContentKeys, String>();
|
91 |
Map<PageContentKeys, String> params = new HashMap<PageContentKeys, String>();
|
| 93 |
params.put(PageContentKeys.CUSTOMER_ID, userId);
|
92 |
params.put(PageContentKeys.CUSTOMER_ID, userId);
|
| 94 |
params.put(PageContentKeys.ITEM_COUNT, userinfo.getTotalItems()+"");
|
93 |
params.put(PageContentKeys.ITEM_COUNT, userinfo.getTotalItems()+"");
|
| - |
|
94 |
params.put(PageContentKeys.USER_NAME, userinfo.getNameOfUser());
|
| - |
|
95 |
params.put(PageContentKeys.IS_LOGGED_IN, userinfo.isLoggedIn()+"");
|
| 95 |
|
96 |
|
| 96 |
htmlSnippets = PageManager.getPageManager().getPageContents(PageEnum.PERSONAL_DETAILS_PAGE, params);
|
97 |
htmlSnippets = PageManager.getPageManager().getPageContents(PageEnum.PERSONAL_DETAILS_PAGE, params);
|
| 97 |
return new DefaultHttpHeaders("index").disableCaching();
|
98 |
return new DefaultHttpHeaders("index").disableCaching();
|
| 98 |
|
99 |
|
| 99 |
}else{
|
100 |
}else{
|