Subversion Repositories SmartDukaan

Rev

Rev 4453 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4453 Rev 11808
Line 37... Line 37...
37
	private String email;
37
	private String email;
38
	private int totalItems;
38
	private int totalItems;
39
	private long cartId;
39
	private long cartId;
40
	private String pincode;
40
	private String pincode;
41
	private double totalAmount;
41
	private double totalAmount;
-
 
42
	private boolean isPrivateDealUser;
42
	
43
	
43
	public UserSessionInfo(){
44
	public UserSessionInfo(){
44
		this.isLoggedIn = false;
45
		this.isLoggedIn = false;
45
		this.userId = -1;
46
		this.userId = -1;
46
		this.email = "";
47
		this.email = "";
47
		this.totalItems = 0;
48
		this.totalItems = 0;
48
		this.cartId = -1;
49
		this.cartId = -1;
49
		this.pincode = "110001";
50
		this.pincode = "110001";
50
		this.totalAmount = 0;
51
		this.totalAmount = 0;
-
 
52
		this.isPrivateDealUser = false;
51
	}
53
	}
52
 
54
 
53
	public UserSessionInfo(long userId, String jsessionId){
55
	public UserSessionInfo(long userId, String jsessionId){
54
		this();
56
		this();
55
		try {
57
		try {
Line 216... Line 218...
216
		System.out.println();
218
		System.out.println();
217
		String cookieValue = "fG0CKt4DUD_D9iP1Ero0v2Io1AgVLoGqXDp0NWAPkzZuw3zHKot5owJK6IodZQfE2aS-obOK3BwXUNRirVHDyd-ycsyG4GfBPd0Ypl1MkxuVBmY4csB0FEg_IgWUm9GaGEzvtmmiZ5bE24XlpUPqR4AoTUAp8d92DDTG61FOFktDIGg3L0Tyk4qpVlAU3xQ3";
219
		String cookieValue = "fG0CKt4DUD_D9iP1Ero0v2Io1AgVLoGqXDp0NWAPkzZuw3zHKot5owJK6IodZQfE2aS-obOK3BwXUNRirVHDyd-ycsyG4GfBPd0Ypl1MkxuVBmY4csB0FEg_IgWUm9GaGEzvtmmiZ5bE24XlpUPqR4AoTUAp8d92DDTG61FOFktDIGg3L0Tyk4qpVlAU3xQ3";
218
		UserSessionInfo uinfo = UserSessionInfo.getUserSessionInfoFromCookieValue(cookieValue);
220
		UserSessionInfo uinfo = UserSessionInfo.getUserSessionInfoFromCookieValue(cookieValue);
219
		System.out.println(uinfo);
221
		System.out.println(uinfo);
220
	}
222
	}
-
 
223
 
-
 
224
	public void setPrivateDealUser(boolean isPrivateDealUser) {
-
 
225
		this.isPrivateDealUser = isPrivateDealUser;
-
 
226
	}
-
 
227
 
-
 
228
	public boolean isPrivateDealUser() {
-
 
229
		return isPrivateDealUser;
-
 
230
	}
221
}
231
}
222
232