Search in sources :

Example 1 with NoSuchScreenException

use of com.haulmont.cuba.gui.NoSuchScreenException in project cuba by cuba-platform.

the class ScreensLinkHandlerProcessor method handle.

@Override
public void handle(ExternalLinkContext linkContext) {
    String screenName = linkContext.getRequestParams().get("screen");
    App app = linkContext.getApp();
    final WindowInfo windowInfo = windowConfig.getWindowInfo(screenName);
    if (windowInfo == null) {
        log.warn("WindowInfo not found for screen: {}", screenName);
        return;
    }
    try {
        openWindow(windowInfo, linkContext);
    } catch (EntityAccessException e) {
        entityAccessExceptionHandler.handle(e, app.getWindowManager());
    } catch (AccessDeniedException e) {
        accessDeniedHandler.handle(e, app.getWindowManager());
    } catch (NoSuchScreenException e) {
        noSuchScreenHandler.handle(e, app.getWindowManager());
    }
}
Also used : App(com.haulmont.cuba.web.App) NoSuchScreenException(com.haulmont.cuba.gui.NoSuchScreenException) WindowInfo(com.haulmont.cuba.gui.config.WindowInfo)

Aggregations

NoSuchScreenException (com.haulmont.cuba.gui.NoSuchScreenException)1 WindowInfo (com.haulmont.cuba.gui.config.WindowInfo)1 App (com.haulmont.cuba.web.App)1