Search in sources :

Example 1 with SearchCallService

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()));
    }
}
Also used : SearchCallService(com.axelor.apps.base.service.advanced.imports.SearchCallService) FileTab(com.axelor.apps.base.db.FileTab)

Aggregations

FileTab (com.axelor.apps.base.db.FileTab)1 SearchCallService (com.axelor.apps.base.service.advanced.imports.SearchCallService)1