{ super.init(); ... getSecuritySettings().setAuthorizationStrategy( new AllschoolsAuthorizationStrategy()); getSecuritySettings() .setUnauthorizedComponentInstantiationListener( new AllschoolsAuthorizationStrategy()); } Security by hand
... } } public void onUnauthorizedInstantiation(Component component) { if (AllschoolsSession.get().isAuthenticatedAsAuthor()) { throw new RestartResponseAtInterceptPageException (UnauthorizedAccessPage.class); } else { throw new RestartResponseAtInterceptPageException (SignInPage.class); } } Security by hand