wicket.authorization
Class UnauthorizedActionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by wicket.WicketRuntimeException
                  extended by wicket.authorization.AuthorizationException
                      extended by wicket.authorization.UnauthorizedActionException
All Implemented Interfaces:
java.io.Serializable

public class UnauthorizedActionException
extends AuthorizationException

Exception that is thrown when an action is not authorized.

Author:
Jonathan Locke, Eelco Hillenius
See Also:
Serialized Form

Constructor Summary
UnauthorizedActionException(Component component, Action action)
          Construct.
 
Method Summary
 Action getAction()
           
 Component getComponent()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnauthorizedActionException

public UnauthorizedActionException(Component component,
                                   Action action)
Construct.

Parameters:
component - The component that caused the unauthorized exception
action - The action
Method Detail

getAction

public Action getAction()
Returns:
The action that was forbidden

getComponent

public Component getComponent()
Returns:
The component that caused the unauthorized exception


Copyright © 2004-2007 Wicket developers. All Rights Reserved.