private WebErrors validateDelete(Integer[] ids, HttpServletRequest request) { WebErrors errors = WebErrors.create(request); errors.ifEmpty(ids, "ids"); for (Integer id : ids) { vldExist(id, errors); } return errors; }
private WebErrors validateDelete(String[] names, HttpServletRequest request) { WebErrors errors = WebErrors.create(request); errors.ifEmpty(names, "names"); for (String id : names) { vldExist(id, errors); } return errors; }
private WebErrors validateDelete(Integer[] ids, HttpServletRequest request) { WebErrors errors = WebErrors.create(request); CmsSite site = CmsUtils.getSite(request); if (errors.ifEmpty(ids, "ids")) { return errors; } for (Integer id : ids) { vldExist(id, site.getId(), errors); } return errors; }