Beispiel #1
0
 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;
 }
Beispiel #2
0
 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;
 }