return errors;
}
@Override
public ServiceResponse save(Map<String, String> vo) {
SeoUrlEntity seoUrl = null;
if (!StringUtils.isEmpty(vo.get("id"))) {
seoUrl = getDao().getSeoUrlDao().getById(Long.valueOf(vo.get("id")));
}
if (seoUrl == null) {
seoUrl = new SeoUrlEntity();
}
seoUrl.setFromLink(vo.get("fromLink"));
seoUrl.setToLink(vo.get("toLink"));
List<String> errors = validate(seoUrl);
if (errors.isEmpty()) {
getDao().getSeoUrlDao().save(seoUrl);
return ServiceResponse.createSuccessResponse(
Messages.get("seo_urls.success_save"));