[jboss-user] [JBoss Seam] - Redirect to original page after AuthorizationException
dilator
do-not-reply at jboss.com
Tue Feb 13 15:13:00 EST 2007
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
More information about the jboss-user
mailing list