protected Resolution interceptEventHandling ( ExecutionContext executionContext ) throws Exception { // Before handling the event, check if access is allowed. // If not explicitly allowed, access is denied. Resolution resolution ; if ( Boolean . TRUE . equals ( getAccessAllowed ( executionContext ) ) ) { resolution = executionContext . proceed ( ) ; } else { LOG . debug ( "The security manager has denied access." ) ; resolution = handleAccessDenied ( executionContext . getActionBean ( ) , executionContext . getHandler ( ) ) ; } return resolution ; }
Intercept execution for event handling . Checks if the security manager allows access before allowing the event .