protected void asLoginRequired ( LoginHandlingResource resource ) throws LoginRequiredException { logger . debug ( "...Checking login status for login required" ) ; if ( tryAlreadyLoginOrRememberMe ( resource ) ) { checkPermission ( resource ) ; // throws if denied return ; // Good } if ( needsSavingRequestedLoginRedirect ( resource ) ) { saveRequestedLoginRedirectInfo ( ) ; } throwLoginRequiredException ( "Cannot access the action: " + resource ) ; }
Check as the login - required action .