CORD GUI - Synchronize rest calls.
Change-Id: I9ad1973d94e27ee38f6551ea6523a5791ee00b3c
Showing
1 changed file
with
5 additions
and
5 deletions
... | @@ -295,7 +295,7 @@ public class CordModelCache extends JsonFactory { | ... | @@ -295,7 +295,7 @@ public class CordModelCache extends JsonFactory { |
295 | * @param email the supplied email | 295 | * @param email the supplied email |
296 | * @return JSON acknowledgement | 296 | * @return JSON acknowledgement |
297 | */ | 297 | */ |
298 | - public String jsonLogin(String email) { | 298 | + public synchronized String jsonLogin(String email) { |
299 | log.info("jsonLogin(\"{}\")", email); | 299 | log.info("jsonLogin(\"{}\")", email); |
300 | init(email); | 300 | init(email); |
301 | ObjectNode root = objectNode(); | 301 | ObjectNode root = objectNode(); |
... | @@ -308,7 +308,7 @@ public class CordModelCache extends JsonFactory { | ... | @@ -308,7 +308,7 @@ public class CordModelCache extends JsonFactory { |
308 | * | 308 | * |
309 | * @return dashboard page JSON data | 309 | * @return dashboard page JSON data |
310 | */ | 310 | */ |
311 | - public String jsonDashboard() { | 311 | + public synchronized String jsonDashboard() { |
312 | log.info("jsonDashboard()"); | 312 | log.info("jsonDashboard()"); |
313 | 313 | ||
314 | if (email == null) { | 314 | if (email == null) { |
... | @@ -327,7 +327,7 @@ public class CordModelCache extends JsonFactory { | ... | @@ -327,7 +327,7 @@ public class CordModelCache extends JsonFactory { |
327 | * | 327 | * |
328 | * @return bundle page JSON data | 328 | * @return bundle page JSON data |
329 | */ | 329 | */ |
330 | - public String jsonBundle() { | 330 | + public synchronized String jsonBundle() { |
331 | log.info("jsonBundle()"); | 331 | log.info("jsonBundle()"); |
332 | 332 | ||
333 | if (email == null) { | 333 | if (email == null) { |
... | @@ -344,7 +344,7 @@ public class CordModelCache extends JsonFactory { | ... | @@ -344,7 +344,7 @@ public class CordModelCache extends JsonFactory { |
344 | * | 344 | * |
345 | * @return users page JSON data | 345 | * @return users page JSON data |
346 | */ | 346 | */ |
347 | - public String jsonUsers() { | 347 | + public synchronized String jsonUsers() { |
348 | log.info("jsonUsers()"); | 348 | log.info("jsonUsers()"); |
349 | 349 | ||
350 | if (email == null) { | 350 | if (email == null) { |
... | @@ -362,7 +362,7 @@ public class CordModelCache extends JsonFactory { | ... | @@ -362,7 +362,7 @@ public class CordModelCache extends JsonFactory { |
362 | * | 362 | * |
363 | * @return logout acknowledgement | 363 | * @return logout acknowledgement |
364 | */ | 364 | */ |
365 | - public String jsonLogout() { | 365 | + public synchronized String jsonLogout() { |
366 | log.info("jsonLogout()"); | 366 | log.info("jsonLogout()"); |
367 | ObjectNode root = objectNode().put(LOGOUT, true); | 367 | ObjectNode root = objectNode().put(LOGOUT, true); |
368 | addSubId(root); | 368 | addSubId(root); | ... | ... |
-
Please register or login to post a comment