return "user.group.administrate";
}
User userLogged = (User)request.getSession().getAttribute(Params.LOGIN.SESSION.USER);
Group grp;
if (grpId != null) {
try {
grp = (Group) DaoFactory.getGroupDao().find(grpId);
} catch (DaoException e) {
LOGGER.debug("Cannot find group for id:" + grpId);
throw new ServiceException("Cannot find group for id:" + grpId, e);
}
} else {
grp = (Group) DaoFactory.getGroupDao().newHandledObject();
}
grp.setName(name);
grp.setDescription(desc);
if (grpId == null) {
grp.addAdministrator(userLogged);
ServiceFactory.getGroupService().insert(grp);
} else {
ServiceFactory.getGroupService().update(grp);
}