|
6 | 6 |
|
7 | 7 | import com.redislabs.demos.redisbank.Config;
|
8 | 8 | import com.redislabs.demos.redisbank.Config.StompConfig;
|
9 |
| -import com.redislabs.demos.redisbank.UserSession; |
10 |
| -import com.redislabs.demos.redisbank.UserSessionRepository; |
11 | 9 | import com.redislabs.demos.redisbank.Utilities;
|
12 | 10 | import com.redislabs.demos.redisbank.timeseries.TimeSeriesCommands;
|
13 | 11 | import com.redislabs.lettusearch.RediSearchCommands;
|
@@ -42,15 +40,13 @@ public class TransactionOverviewController {
|
42 | 40 | private static final String SORTED_SET_KEY = "bigspenders";
|
43 | 41 |
|
44 | 42 | private final Config config;
|
45 |
| - private final UserSessionRepository userSessionRepository; |
46 | 43 | private final StatefulRediSearchConnection<String, String> srsc;
|
47 | 44 | private final StringRedisTemplate redis;
|
48 | 45 | private final TimeSeriesCommands tsc;
|
49 | 46 |
|
50 |
| - public TransactionOverviewController(Config config, UserSessionRepository userSessionRepository, |
51 |
| - StatefulRediSearchConnection<String, String> srsc, RedisCommandFactory rcf, StringRedisTemplate redis) { |
| 47 | + public TransactionOverviewController(Config config, StatefulRediSearchConnection<String, String> srsc, |
| 48 | + RedisCommandFactory rcf, StringRedisTemplate redis) { |
52 | 49 | this.config = config;
|
53 |
| - this.userSessionRepository = userSessionRepository; |
54 | 50 | this.srsc = srsc;
|
55 | 51 | this.tsc = rcf.getCommands(TimeSeriesCommands.class);
|
56 | 52 | this.redis = redis;
|
@@ -120,12 +116,4 @@ public SearchResults<String, String> listTransactions() {
|
120 | 116 | return results;
|
121 | 117 | }
|
122 | 118 |
|
123 |
| - @GetMapping(value = "/login") |
124 |
| - public void login(@RequestParam String userName) { |
125 |
| - String accountNumber = Utilities.generateFakeIbanFrom(userName); |
126 |
| - UserSession userSession = new UserSession(userName, accountNumber); |
127 |
| - userSessionRepository.save(userSession); |
128 |
| - |
129 |
| - } |
130 |
| - |
131 | 119 | }
|
0 commit comments