use of com.axelor.apps.base.service.advanced.imports.SearchCallService in project axelor-open-suite by axelor.
the class FileTabController method validateSearchCall.
public void validateSearchCall(ActionRequest request, ActionResponse response) {
FileTab fileTab = request.getContext().asType(FileTab.class);
SearchCallService searchCallService = Beans.get(SearchCallService.class);
if (!searchCallService.validate(fileTab.getSearchCall())) {
response.setError(String.format(IExceptionMessage.ADVANCED_IMPORT_LOG_11, fileTab.getMetaModel().getName()));
}
}
Aggregations