deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gpetra...@apache.org
Subject [1/3] git commit: DELTASPIKE-636 revert first approach
Date Thu, 12 Jun 2014 09:02:06 GMT
Repository: deltaspike
Updated Branches:
  refs/heads/master 241484f54 -> 2af2ccf25


DELTASPIKE-636 revert first approach

This reverts commit 241484f54ced11b26f269bfb5f3bc1eca6cf3d93.


Project: http://git-wip-us.apache.org/repos/asf/deltaspike/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltaspike/commit/7d8ce23f
Tree: http://git-wip-us.apache.org/repos/asf/deltaspike/tree/7d8ce23f
Diff: http://git-wip-us.apache.org/repos/asf/deltaspike/diff/7d8ce23f

Branch: refs/heads/master
Commit: 7d8ce23fb0921a4fa4ac54d4674f2207595edd39
Parents: 241484f
Author: gpetracek <gpetracek@apache.org>
Authored: Thu Jun 12 10:41:03 2014 +0200
Committer: gpetracek <gpetracek@apache.org>
Committed: Thu Jun 12 10:41:03 2014 +0200

----------------------------------------------------------------------
 .../deltaspike/security/impl/extension/Authorizer.java   | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltaspike/blob/7d8ce23f/deltaspike/modules/security/impl/src/main/java/org/apache/deltaspike/security/impl/extension/Authorizer.java
----------------------------------------------------------------------
diff --git a/deltaspike/modules/security/impl/src/main/java/org/apache/deltaspike/security/impl/extension/Authorizer.java
b/deltaspike/modules/security/impl/src/main/java/org/apache/deltaspike/security/impl/extension/Authorizer.java
index b60e88d..bf90867 100644
--- a/deltaspike/modules/security/impl/src/main/java/org/apache/deltaspike/security/impl/extension/Authorizer.java
+++ b/deltaspike/modules/security/impl/src/main/java/org/apache/deltaspike/security/impl/extension/Authorizer.java
@@ -36,7 +36,6 @@ import javax.enterprise.inject.spi.BeanManager;
 import javax.enterprise.util.Nonbinding;
 import javax.interceptor.InvocationContext;
 
-import org.apache.deltaspike.core.api.exception.control.event.ExceptionToCatchEvent;
 import org.apache.deltaspike.core.util.metadata.builder.InjectableMethod;
 import org.apache.deltaspike.security.api.authorization.AccessDeniedException;
 import org.apache.deltaspike.security.api.authorization.SecurityBindingType;
@@ -197,15 +196,7 @@ class Authorizer
                 }
             });
 
-            AccessDeniedException accessDeniedException = new AccessDeniedException(violations);
-            ExceptionToCatchEvent exceptionToCatchEvent = new ExceptionToCatchEvent(accessDeniedException);
-            exceptionToCatchEvent.setOptional(true);
-            beanManager.fireEvent(exceptionToCatchEvent);
-
-            if (!exceptionToCatchEvent.isHandled())
-            {
-                throw accessDeniedException;
-            }
+            throw new AccessDeniedException(violations);
         }
     }
 


Mime
View raw message