[jboss-cvs] jboss-seam/src/main/org/jboss/seam/interceptors ...

Shane Bryzak Shane_Bryzak at symantec.com
Wed Jan 17 18:55:20 EST 2007


  User: sbryzak2
  Date: 07/01/17 18:55:20

  Modified:    src/main/org/jboss/seam/interceptors 
                        SecurityInterceptor.java
  Log:
  support multiple application policies
  
  Revision  Changes    Path
  1.22      +3 -8      jboss-seam/src/main/org/jboss/seam/interceptors/SecurityInterceptor.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: SecurityInterceptor.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/interceptors/SecurityInterceptor.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -b -r1.21 -r1.22
  --- SecurityInterceptor.java	15 Jan 2007 10:06:55 -0000	1.21
  +++ SecurityInterceptor.java	17 Jan 2007 23:55:19 -0000	1.22
  @@ -37,15 +37,10 @@
   
         if (r != null)
         {
  -         if (!Identity.instance().isLoggedIn())
  -            throw new NotLoggedInException();
  -         
            String expr = r.value() != null && !"".equals(r.value()) ? r.value() : 
               createDefaultExpr(method);
                     
  -         if (!SeamSecurityManager.instance().evaluateExpression(expr))
  -            throw new AuthorizationException(String.format(
  -                  "Authorization check failed for expression [%s]", expr));
  +         Identity.instance().checkRestriction(expr);
         }
   
         return invocation.proceed();
  
  
  



More information about the jboss-cvs-commits mailing list