Another event so we can redirect after a user has logged in as a user with 
sufficient privileges.

   public void checkRestriction(String expr)
  |    {      
  |       if ( !evaluateExpression(expr) )
  |       {
  |          if ( !isLoggedIn() )
  |          {
  |             Events.instance().raiseEvent("org.jboss.seam.notLoggedIn");
  |             log.debug(String.format(
  |                "Error evaluating expression [%s] - User not logged in", 
expr));
  |             throw new NotLoggedInException();
  |          }
  |          else
  |          {
  |             Events.instance().raiseEvent("org.jboss.seam.notAuthorized");
  |             throw new AuthorizationException(String.format(
  |                "Authorization check failed for expression [%s]", expr));
  |          }
  |       }
  |    }
  | 

Would do the job

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4016017#4016017

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4016017
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to