// Specified by UsersDAO
public void updateUser(User user) {
synchronized (users) {
User update = findUser(user.getId());
if (update == null) {
throw new IllegalArgumentException("" + user.getId());
}
user.setUpdated(new Date());
update.setCategories(user.getCategories());
update.setEmailAddress(user.getEmailAddress());
update.setFullName(user.getFullName());
update.setPassword(user.getPassword());
update.setUpdated(user.getUpdated());
update.setUsername(user.getUsername());
}
}