* javax.servlet.http.HttpServletRequest,
* javax.servlet.http.HttpServletResponse)
*/
public ActionForward modify(ActionMapping mapping, ActionForm form, HttpServletRequest req, HttpServletResponse resp) {
UserSetEnterOrEditForm userSetEnterOrEditForm = (UserSetEnterOrEditForm) form;
UserSetManager userSetManager = new UserSetManager(locale,session);
Long id = userSetEnterOrEditForm.getId();
UserSet userSet = userSetManager.getUserSet(id);
if (userSet == null){
throw new InputException(getResources(req).getMessage(locale, "um.userSetNotFound", id));
}
checkAccessRights(req, userSet.getGroup());
userSet.setName(userSetEnterOrEditForm.getUserSetName());
userSet.setDescription(userSetEnterOrEditForm.getDescription());
userSet.setHidden(userSetEnterOrEditForm.getHidden()==true?1:0);
userSetManager.modifyUserSet(userSet);
return mapping.findForward("modified");
}