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());
}
}
Aggregations