public class ModifyRolesAction extends SeteAction
{
public ActionForward init(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) throws Exception
{
UserPrivilegeVo vo = new UserPrivilegeVo();
vo.setPrivilegeType(TypeUtil.forKey(UserPrivilegeType.class,
UserPrivilegeType.Key.MANAGE_ROLES_KEY.getKey()));
vo.setActionType(TypeUtil.forKey(PrivilegeActionType.class,
PrivilegeActionType.Key.READ_WRITE_KEY.getKey()));
checkAuthorization(userHasPrivilege(request.getSession(), vo));
return mapping.findForward("view");