Subversion Repositories SmartDukaan

Rev

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

Rev 26002 Rev 26003
Line 95... Line 95...
95
	private in.shop2020.model.v1.user.UserContextService.Client userClient;
95
	private in.shop2020.model.v1.user.UserContextService.Client userClient;
96
	private in.shop2020.payments.PaymentService.Client paymentClient;
96
	private in.shop2020.payments.PaymentService.Client paymentClient;
97
	private in.shop2020.model.v1.catalog.CatalogService.Client catalogClient;
97
	private in.shop2020.model.v1.catalog.CatalogService.Client catalogClient;
98
 
98
 
99
	public String index() {
99
	public String index() {
100
		if(this.secret != null && this.secret.equals("shazam")) {
-
 
101
			return "index";
100
			return "index";
102
		} 
101
		} 
103
		return "index1";
-
 
104
	}
-
 
105
 
102
 
106
	public String editNew() throws Throwable {
103
	public String editNew() throws Throwable {
-
 
104
		if(this.secret != null && this.secret.equals("shazam!")) {
107
		this.userClient = new UserClient().getClient();
105
			this.userClient = new UserClient().getClient();
108
		this.transactionClient = new TransactionClient().getClient();
106
			this.transactionClient = new TransactionClient().getClient();
109
		User user = userClient.getUserByEmail(customerEmailId);
107
			User user = userClient.getUserByEmail(customerEmailId);
110
		List<Address> addresses = this.userClient.getAllAddressesForUser(user.getUserId());
108
			List<Address> addresses = this.userClient.getAllAddressesForUser(user.getUserId());
111
		this.setUserAddresses(addresses);
109
			this.setUserAddresses(addresses);
112
		this.userWalletAmount = this.transactionClient.getUserWallet(user.getUserId()).getAmount();
110
			this.userWalletAmount = this.transactionClient.getUserWallet(user.getUserId()).getAmount();
113
		return "editNew";
111
			return "editNew";
-
 
112
		}
-
 
113
		return "index1";
114
	}
114
	}
115
 
115
 
116
	public String show() throws Throwable {
116
	public String show() throws Throwable {
117
		this.paymentClient = new PaymentClient().getClient();
117
		this.paymentClient = new PaymentClient().getClient();
118
		this.transactionClient = new TransactionClient().getClient();
118
		this.transactionClient = new TransactionClient().getClient();