org.xwiki.security.authorization
Class AccessDeniedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.xwiki.security.authorization.AuthorizationException
              extended by org.xwiki.security.authorization.AccessDeniedException
All Implemented Interfaces:
Serializable

public class AccessDeniedException
extends AuthorizationException

Exception raised by the AuthorizationManager when denying access.

Since:
4.0M2
Version:
$Id: e5739761103b38c2ff83f7c769a949b18ed036a2 $
See Also:
Serialized Form

Constructor Summary
AccessDeniedException(DocumentReference userReference, EntityReference entityReference)
           
AccessDeniedException(DocumentReference userReference, EntityReference entityReference, Throwable t)
           
AccessDeniedException(Right right, DocumentReference userReference, EntityReference entityReference)
           
AccessDeniedException(Right right, DocumentReference userReference, EntityReference entityReference, Throwable t)
           
 
Method Summary
 
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

AccessDeniedException

public AccessDeniedException(DocumentReference userReference,
                             EntityReference entityReference)
Parameters:
userReference - The user, for which the query was attempted.
entityReference - The entity, on which the query was attempted.

AccessDeniedException

public AccessDeniedException(Right right,
                             DocumentReference userReference,
                             EntityReference entityReference)
Parameters:
right - The right currently being checked.
userReference - The user, for which the query was attempted.
entityReference - The entity, on which the query was attempted.

AccessDeniedException

public AccessDeniedException(DocumentReference userReference,
                             EntityReference entityReference,
                             Throwable t)
Parameters:
userReference - The user, for which the query was attempted.
entityReference - The entity, on which the query was attempted.
t - a Throwable providing details about the underlying cause.

AccessDeniedException

public AccessDeniedException(Right right,
                             DocumentReference userReference,
                             EntityReference entityReference,
                             Throwable t)
Parameters:
right - The right currently being checked.
userReference - The user, for which the query was attempted.
entityReference - The entity, on which the query was attempted.
t - a Throwable providing details about the underlying cause.


Copyright © 2004–2014 XWiki. All rights reserved.