CORD GUI - Synchronize rest calls.
Change-Id: I9ad1973d94e27ee38f6551ea6523a5791ee00b3c
diff --git a/apps/demo/cord-gui/src/main/java/org/onosproject/cord/gui/CordModelCache.java b/apps/demo/cord-gui/src/main/java/org/onosproject/cord/gui/CordModelCache.java
index 1f24663..b68928b 100644
--- a/apps/demo/cord-gui/src/main/java/org/onosproject/cord/gui/CordModelCache.java
+++ b/apps/demo/cord-gui/src/main/java/org/onosproject/cord/gui/CordModelCache.java
@@ -295,7 +295,7 @@
* @param email the supplied email
* @return JSON acknowledgement
*/
- public String jsonLogin(String email) {
+ public synchronized String jsonLogin(String email) {
log.info("jsonLogin(\"{}\")", email);
init(email);
ObjectNode root = objectNode();
@@ -308,7 +308,7 @@
*
* @return dashboard page JSON data
*/
- public String jsonDashboard() {
+ public synchronized String jsonDashboard() {
log.info("jsonDashboard()");
if (email == null) {
@@ -327,7 +327,7 @@
*
* @return bundle page JSON data
*/
- public String jsonBundle() {
+ public synchronized String jsonBundle() {
log.info("jsonBundle()");
if (email == null) {
@@ -344,7 +344,7 @@
*
* @return users page JSON data
*/
- public String jsonUsers() {
+ public synchronized String jsonUsers() {
log.info("jsonUsers()");
if (email == null) {
@@ -362,7 +362,7 @@
*
* @return logout acknowledgement
*/
- public String jsonLogout() {
+ public synchronized String jsonLogout() {
log.info("jsonLogout()");
ObjectNode root = objectNode().put(LOGOUT, true);
addSubId(root);