/** * transaction sync is not affected by the current invocation, as multiple ejb methods may be invoked from afterCompletion */ private void checkTransactionSync(MethodType methodType) { //first we have to check the synchronization status //as the sync is not affected by the current invocation final CurrentSynchronizationCallback.CallbackType currentSync = CurrentSynchronizationCallback.get(); if (currentSync != null) { if (deniedSyncMethods.contains(new DeniedSyncMethodKey(currentSync, methodType))) { throwException(methodType, currentSync); } } }
protected void realCheckPermission(MethodType methodType, InvocationType invocationType) { checkTransactionSync(methodType); if (invocationType != null) { if (denied.contains(new DeniedMethodKey(invocationType, methodType))) { throwException(methodType, invocationType); } } if (invocationType != InvocationType.CONCURRENT_CONTEXT && !beanManagedTransaction && methodType == MethodType.GET_USER_TRANSACTION) { throw EjbLogger.ROOT_LOGGER.unauthorizedAccessToUserTransaction(); } }
protected void realCheckPermission(MethodType methodType, InvocationType invocationType) { checkTransactionSync(methodType); if (invocationType != null) { if (denied.contains(new DeniedMethodKey(invocationType, methodType))) { throwException(methodType, invocationType); } } }
/** * transaction sync is not affected by the current invocation, as multiple ejb methods may be invoked from afterCompletion */ private void checkTransactionSync(MethodType methodType) { //first we have to check the synchronization status //as the sync is not affected by the current invocation final CurrentSynchronizationCallback.CallbackType currentSync = CurrentSynchronizationCallback.get(); if (currentSync != null) { if (deniedSyncMethods.contains(new DeniedSyncMethodKey(currentSync, methodType))) { throwException(methodType, currentSync); } } }