com.plumtree.uiinfrastructure.interpreter
Class UnauthorizedAccessException

java.lang.Object
  extended by XPException
      extended by com.plumtree.uiinfrastructure.interpreter.InterpreterException
          extended by com.plumtree.uiinfrastructure.interpreter.UnauthorizedAccessException

public class UnauthorizedAccessException
extends InterpreterException

This exception is typically thrown by the MVCController class. There are 3 kinds of security-related checks inside the MVCController:
1. Secure activity space check in relation to security mode 1
2. User’s basic access right check whether he/she has the privilege to access the AS
3. Individual control’s action security check
Hence, an UnauthorizedAccessException can be thrown due to either of the above.

Author:
William Adjie-Winoto

Field Summary
 
Fields inherited from class com.plumtree.uiinfrastructure.interpreter.InterpreterException
INVALID_HTTP_STATUS_CODE, INVALID_ID
 
Constructor Summary
UnauthorizedAccessException()
           
UnauthorizedAccessException(Redirect r)
           
 
Method Summary
 Redirect GetRedirect()
          This method returns the Redirect object, if any, where the Interpreter should redirect the user to (due to the exception occuring).
 
Methods inherited from class com.plumtree.uiinfrastructure.interpreter.InterpreterException
GetHTTPStatusCode, GetMessageStringID, GetNonLocalizedMessage, GetResourceFileName, GetResourceFileName, SetHTTPStatusCode, SetMessageStringID, SetNonLocalizedMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnauthorizedAccessException

public UnauthorizedAccessException()

UnauthorizedAccessException

public UnauthorizedAccessException(Redirect r)
Method Detail

GetRedirect

public Redirect GetRedirect()
This method returns the Redirect object, if any, where the Interpreter should redirect the user to (due to the exception occuring). For example, in the case of a Secure Activity Space violation and the security mode is 1, the Redirect object returned here will be an HTTP redirect to the corresponding https URL. If the method returns null, the Interpreter will redirect the user (by default) either to an error page, or to a login page if the user is guest (by calling the Authenticator.GetOrSendLoginChallenge()).

Returns:
a Redirect object, if any.



Copyright © 2002,2003,2004,2005 Plumtree Software, Inc., All Rights Reserved.