if (null == user) {
return redirect("admin", "info.save.failure");
} else {
if (authorityService.getUserService().isAdmin(user)) { return redirect("admin",
"info.save.failure"); }
AdminUser adminUser = new AdminUserBean();
adminUser.setUser(user);
adminUser.setCreatedAt(new Date());
adminUser.setUpdatedAt(new Date());
entityDao.saveOrUpdate(adminUser);
return redirect("admin", "info.save.success");
}
}
Long adminId = getLong("removeAdminId");