Subversion Repositories SmartDukaan

Rev

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

Rev 24419 Rev 26002
Line 79... Line 79...
79
	private List<Address> userAddresses;
79
	private List<Address> userAddresses;
80
	private int addressId;
80
	private int addressId;
81
 
81
 
82
	private Map<Transaction, Double> transactions;
82
	private Map<Transaction, Double> transactions;
83
	private List<LineItem> lineItems;
83
	private List<LineItem> lineItems;
-
 
84
	private String secret; 
-
 
85
 
-
 
86
	public String getSecret() {
-
 
87
		return secret;
-
 
88
	}
-
 
89
 
-
 
90
	public void setSecret(String secret) {
-
 
91
		this.secret = secret;
-
 
92
	}
84
 
93
 
85
	private Client transactionClient;
94
	private Client transactionClient;
86
	private in.shop2020.model.v1.user.UserContextService.Client userClient;
95
	private in.shop2020.model.v1.user.UserContextService.Client userClient;
87
	private in.shop2020.payments.PaymentService.Client paymentClient;
96
	private in.shop2020.payments.PaymentService.Client paymentClient;
88
	private in.shop2020.model.v1.catalog.CatalogService.Client catalogClient;
97
	private in.shop2020.model.v1.catalog.CatalogService.Client catalogClient;
89
 
98
 
90
	public String index() {
99
	public String index() {
-
 
100
		if(this.secret != null && this.secret.equals("shazam")) {
91
		return "index";
101
			return "index";
-
 
102
		} 
-
 
103
		return "index1";
92
	}
104
	}
93
 
105
 
94
	public String editNew() throws Throwable {
106
	public String editNew() throws Throwable {
95
		this.userClient = new UserClient().getClient();
107
		this.userClient = new UserClient().getClient();
96
		this.transactionClient = new TransactionClient().getClient();
108
		this.transactionClient = new TransactionClient().getClient();