import java.util.Collections;
import java.util.GregorianCalendar;
import java.util.List;
+import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import javax.annotation.PostConstruct;
import javax.enterprise.context.SessionScoped;
}
// Init list
- // TODO: AddressbookWebBean.countSharesList = new ConcurrentHashMap<>(this.addressbookBean.getUserCountMap());
+ AddressbookWebBean.countSharesList = new ConcurrentHashMap<>(0);
}
@Override
// Fill list with entries
this.usersAddressbooks = this.addressbookBean.getUsersList(this.loginController.getLoggedInUser());
}
+
+ // TODO Initialize list from bean with just one call
+ //this.addressbookBean.getUserCountMap()
}
@Override
// Set user id again
this.setUserId(registeredUser.getUserId());
+ // Is the account public?
+ if (registeredUser.getUserPublicProfile()) {
+ // Also add it to this list
+ this.publicUserList.add(registeredUser);
+ }
+
// Trace message
System.out.println("UserWebBean:afterRegistration: EXIT!"); //NOI18N
}