use of com.axelor.apps.base.service.advanced.imports.ActionService in project axelor-open-suite by axelor.
the class FileTabController method validateActions.
public void validateActions(ActionRequest request, ActionResponse response) {
FileTab fileTab = request.getContext().asType(FileTab.class);
if (StringUtils.isEmpty(fileTab.getActions())) {
return;
}
ActionService actionService = Beans.get(ActionService.class);
if (!actionService.validate(fileTab.getActions())) {
response.setError(String.format(IExceptionMessage.ADVANCED_IMPORT_LOG_10, fileTab.getMetaModel().getName()));
}
}
Aggregations