this.userService = userService;
}
@Override
public FeatureUser getCurrentUser() {
SimpleFeatureUser featureUser = null;
User user = userService.getCurrentUser();
if (user != null) {
featureUser = new SimpleFeatureUser(user.getUserId(), userService.isUserAdmin());
featureUser.setAttribute("email", user.getEmail());
featureUser.setAttribute("nickname", user.getNickname());
}
return featureUser;
}