Subversion Repositories SmartDukaan

Rev

Rev 627 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 627 Rev 637
Line 1... Line 1...
1
package in.shop2020.serving.controllers;
1
package in.shop2020.serving.controllers;
2
 
2
 
-
 
3
import in.shop2020.serving.services.PageLoaderHandler;
3
import in.shop2020.serving.services.UserSessionInfo;
4
import in.shop2020.serving.services.UserSessionInfo;
4
import in.shop2020.serving.utils.DesEncrypter;
5
import in.shop2020.serving.utils.DesEncrypter;
5
import in.shop2020.serving.utils.Utils;
6
import in.shop2020.serving.utils.Utils;
6
 
7
 
7
import java.util.HashMap;
8
import java.util.HashMap;
Line 41... Line 42...
41
	
42
	
42
    private DesEncrypter desEncrypter = new DesEncrypter("shop2020");
43
    private DesEncrypter desEncrypter = new DesEncrypter("shop2020");
43
    
44
    
44
    protected Cookie userCookie = null;
45
    protected Cookie userCookie = null;
45
	
46
	
-
 
47
    PageLoaderHandler pageLoader = null;
46
	public BaseController() {
48
	public BaseController() {
-
 
49
		pageLoader = new PageLoaderHandler();
47
	}
50
	}
48
	
51
	
49
	public Map getCookiesMap() {
52
	public Map getCookiesMap() {
50
		return cookiesMap;
53
		return cookiesMap;
51
	}
54
	}
Line 203... Line 206...
203
			
206
			
204
			return "Hi, Welcome to Shop2020";
207
			return "Hi, Welcome to Shop2020";
205
		}		
208
		}		
206
	}
209
	}
207
 
210
 
-
 
211
	public String getHeaderSnippet(){
-
 
212
		return pageLoader.getHeaderHtml(userinfo.isLoggedIn(), userinfo.getNameOfUser());
-
 
213
	}
-
 
214
 
-
 
215
	public String getMainMenuSnippet(){
-
 
216
		return pageLoader.getMainMenuHtml();
-
 
217
	}
-
 
218
	
-
 
219
	public String getSearchBarSnippet(){
-
 
220
		return pageLoader.getSearchBarHtml(userinfo.getTotalItems(), 10000);
-
 
221
	}
-
 
222
    
-
 
223
	public String getCustomerServiceSnippet(){
-
 
224
		return pageLoader.getCustomerServiceHtml();
-
 
225
	}
-
 
226
	
-
 
227
	public String getMyResearchSnippet(){
-
 
228
		return pageLoader.getMyResearchHtml(userinfo.getUserId(), userinfo.isLoggedIn());
-
 
229
	}
-
 
230
 
-
 
231
	public String getBrowseHistorySnippet(){
-
 
232
		return pageLoader.getBrowseHistoryHtml(userinfo.getUserId(), userinfo.isLoggedIn());
-
 
233
	}
-
 
234
 
-
 
235
	public String getFooterSnippet(){
-
 
236
		return pageLoader.getFooterHtml();
-
 
237
	}
-
 
238
 
208
}
239
}
209
 
240