Search in sources :

Example 1 with ActionService

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

Aggregations

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