private WebErrors validateSave(CmsModelItem bean, Integer modelId, HttpServletRequest request) { WebErrors errors = WebErrors.create(request); if (!StringUtils.isBlank(bean.getOptValue())) { bean.setOptValue(replaceLocaleSplit(bean.getOptValue(), request)); } return errors; }
private WebErrors validateUpdate(Integer id, CmsModelItem bean, HttpServletRequest request) { WebErrors errors = WebErrors.create(request); if (!StringUtils.isBlank(bean.getOptValue())) { bean.setOptValue(replaceLocaleSplit(bean.getOptValue(), request)); } if (vldExist(id, errors)) { return errors; } return errors; }