SAP NetWeaver '04

com.sap.netweaver.bc.rf.common.security
Class AccessDeniedException

[contained in: com.sap.netweaver.bc.rf.par - bc.rf.common_api.jar]
com.sap.netweaver.bc.rf.util.exception.BaseException
  |
  +--com.sap.netweaver.bc.rf.common.exception.RepositoryException
        |
        +--com.sap.netweaver.bc.rf.common.exception.ResourceException
              |
              +--com.sap.netweaver.bc.rf.common.security.AccessDeniedException

public class AccessDeniedException
extends ResourceException

Raised if the authorization failed that means the user in the context does not have the required permissions. In addition this excpetion can be raised if an attempt is made to modify a locked or read-only resource.


Constructor Summary
  AccessDeniedException(IRid rid, java.lang.String permissionName, java.lang.String userId)
          Construct object of class AccessDeniedException.
  AccessDeniedException(IRid rid, java.lang.String permissionName, java.lang.String userId, boolean logExceptionOnCreation)
          Construct object of class AccessDeniedException.
protected AccessDeniedException(IRid rid, java.lang.String permissionName, java.lang.String userId, ResourceAccessor resourceAccessor, java.lang.String key)
          Construct object of class AccessDeniedException.
protected AccessDeniedException(IRid rid, java.lang.String permissionName, java.lang.String userId, ResourceAccessor resourceAccessor, java.lang.String key, boolean logExceptionOnCreation)
          Construct object of class AccessDeniedException.
protected AccessDeniedException(IRid rid, java.lang.String permissionName, java.lang.String userId, ResourceAccessor resourceAccessor, java.lang.String key, java.lang.Object[] args)
          Construct object of class AccessDeniedException.
protected AccessDeniedException(IRid rid, java.lang.String permissionName, java.lang.String userId, ResourceAccessor resourceAccessor, java.lang.String key, java.lang.Object[] args, boolean logExceptionOnCreation)
          Construct object of class AccessDeniedException.
protected AccessDeniedException(IRid rid, java.lang.String permissionName, java.lang.String userId, ResourceAccessor resourceAccessor, java.lang.String key, java.lang.Object[] args, java.lang.Throwable rootCause)
          Construct object of class AccessDeniedException.
protected AccessDeniedException(IRid rid, java.lang.String permissionName, java.lang.String userId, ResourceAccessor resourceAccessor, java.lang.String key, java.lang.Object[] args, java.lang.Throwable rootCause, boolean logExceptionOnCreation)
          Construct object of class AccessDeniedException.
protected AccessDeniedException(IRid rid, java.lang.String permissionName, java.lang.String userId, ResourceAccessor resourceAccessor, java.lang.String key, java.lang.Throwable rootCause)
          Construct object of class AccessDeniedException.
protected AccessDeniedException(IRid rid, java.lang.String permissionName, java.lang.String userId, ResourceAccessor resourceAccessor, java.lang.String key, java.lang.Throwable rootCause, boolean logExceptionOnCreation)
          Construct object of class AccessDeniedException.
protected AccessDeniedException(IRid rid, java.lang.String permissionName, java.lang.String userId, ResourceMessage message)
          Construct object of class AccessDeniedException.
protected AccessDeniedException(IRid rid, java.lang.String permissionName, java.lang.String userId, ResourceMessage message, boolean logExceptionOnCreation)
          Construct object of class AccessDeniedException.
protected AccessDeniedException(IRid rid, java.lang.String permissionName, java.lang.String userId, ResourceMessage message, java.lang.Throwable rootCause)
          Construct object of class AccessDeniedException.
protected AccessDeniedException(IRid rid, java.lang.String permissionName, java.lang.String userId, ResourceMessage message, java.lang.Throwable rootCause, boolean logExceptionOnCreation)
          Construct object of class AccessDeniedException.
  AccessDeniedException(IRid rid, java.lang.String permissionName, java.lang.String userId, java.lang.String message)
          Construct object of class AccessDeniedException.
  AccessDeniedException(IRid rid, java.lang.String permissionName, java.lang.String userId, java.lang.String message, boolean logExceptionOnCreation)
          Construct object of class AccessDeniedException.
  AccessDeniedException(IRid rid, java.lang.String permissionName, java.lang.String userId, java.lang.String message, java.lang.Object[] args)
          Construct object of class AccessDeniedException.
  AccessDeniedException(IRid rid, java.lang.String permissionName, java.lang.String userId, java.lang.String message, java.lang.Object[] args, boolean logExceptionOnCreation)
          Construct object of class AccessDeniedException.
  AccessDeniedException(IRid rid, java.lang.String permissionName, java.lang.String userId, java.lang.String message, java.lang.Object[] args, java.lang.Throwable rootCause)
          Construct object of class AccessDeniedException.
  AccessDeniedException(IRid rid, java.lang.String permissionName, java.lang.String userId, java.lang.String message, java.lang.Object[] args, java.lang.Throwable rootCause, boolean logExceptionOnCreation)
          Construct object of class AccessDeniedException.
  AccessDeniedException(IRid rid, java.lang.String permissionName, java.lang.String userId, java.lang.String message, java.lang.Throwable rootCause)
          Construct object of class AccessDeniedException.
  AccessDeniedException(IRid rid, java.lang.String permissionName, java.lang.String userId, java.lang.String message, java.lang.Throwable rootCause, boolean logExceptionOnCreation)
          Construct object of class AccessDeniedException.
  AccessDeniedException(IRid rid, java.lang.String permissionName, java.lang.String userId, java.lang.Throwable rootCause)
          Construct object of class AccessDeniedException.
  AccessDeniedException(IRid rid, java.lang.String permissionName, java.lang.String userId, java.lang.Throwable rootCause, boolean logExceptionOnCreation)
          Construct object of class AccessDeniedException.
 
Method Summary
 java.lang.String getPermissionName()
          Get name of the permission that was not granted.
 java.lang.String getUserId()
          Get id of the user which had not the permission.
 
Methods inherited from class com.sap.netweaver.bc.rf.common.exception.ResourceException
getRID
 

Constructor Detail

AccessDeniedException

public AccessDeniedException(IRid rid,
                             java.lang.String permissionName,
                             java.lang.String userId)
Construct object of class AccessDeniedException.
Parameters:
rid - resource id of the resource this exception is associated with (if any)
permissionName - name of the permission that was not granted
userId - id of the user which had not the permission

AccessDeniedException

public AccessDeniedException(IRid rid,
                             java.lang.String permissionName,
                             java.lang.String userId,
                             boolean logExceptionOnCreation)
Construct object of class AccessDeniedException.
Parameters:
rid - resource id of the resource this exception is associated with (if any)
permissionName - name of the permission that was not granted
userId - id of the user which had not the permission
logExceptionOnCreation - when true log the exception now during its construction

AccessDeniedException

public AccessDeniedException(IRid rid,
                             java.lang.String permissionName,
                             java.lang.String userId,
                             java.lang.Throwable rootCause)
Construct object of class AccessDeniedException.
Parameters:
rid - resource id of the resource this exception is associated with (if any)
permissionName - name of the permission that was not granted
userId - id of the user which had not the permission
rootCause - throwable object which caused this exception

AccessDeniedException

public AccessDeniedException(IRid rid,
                             java.lang.String permissionName,
                             java.lang.String userId,
                             java.lang.Throwable rootCause,
                             boolean logExceptionOnCreation)
Construct object of class AccessDeniedException.
Parameters:
rid - resource id of the resource this exception is associated with (if any)
permissionName - name of the permission that was not granted
userId - id of the user which had not the permission
rootCause - throwable object which caused this exception
logExceptionOnCreation - when true log the exception now during its construction

AccessDeniedException

public AccessDeniedException(IRid rid,
                             java.lang.String permissionName,
                             java.lang.String userId,
                             java.lang.String message)
Construct object of class AccessDeniedException.
Parameters:
rid - resource id of the resource this exception is associated with (if any)
permissionName - name of the permission that was not granted
userId - id of the user which had not the permission
message - not localized message

AccessDeniedException

public AccessDeniedException(IRid rid,
                             java.lang.String permissionName,
                             java.lang.String userId,
                             java.lang.String message,
                             java.lang.Object[] args)
Construct object of class AccessDeniedException.
Parameters:
rid - resource id of the resource this exception is associated with (if any)
permissionName - name of the permission that was not granted
userId - id of the user which had not the permission
message - not localized message
args - message arguments inserted by MessageFormat means

AccessDeniedException

public AccessDeniedException(IRid rid,
                             java.lang.String permissionName,
                             java.lang.String userId,
                             java.lang.String message,
                             java.lang.Throwable rootCause)
Construct object of class AccessDeniedException.
Parameters:
rid - resource id of the resource this exception is associated with (if any)
permissionName - name of the permission that was not granted
userId - id of the user which had not the permission
message - not localized message
rootCause - throwable object which caused this exception

AccessDeniedException

public AccessDeniedException(IRid rid,
                             java.lang.String permissionName,
                             java.lang.String userId,
                             java.lang.String message,
                             java.lang.Object[] args,
                             java.lang.Throwable rootCause)
Construct object of class AccessDeniedException.
Parameters:
rid - resource id of the resource this exception is associated with (if any)
permissionName - name of the permission that was not granted
userId - id of the user which had not the permission
message - not localized message
args - message arguments inserted by MessageFormat means
rootCause - throwable object which caused this exception

AccessDeniedException

public AccessDeniedException(IRid rid,
                             java.lang.String permissionName,
                             java.lang.String userId,
                             java.lang.String message,
                             boolean logExceptionOnCreation)
Construct object of class AccessDeniedException.
Parameters:
rid - resource id of the resource this exception is associated with (if any)
permissionName - name of the permission that was not granted
userId - id of the user which had not the permission
message - not localized message
logExceptionOnCreation - when true log the exception now during its construction

AccessDeniedException

public AccessDeniedException(IRid rid,
                             java.lang.String permissionName,
                             java.lang.String userId,
                             java.lang.String message,
                             java.lang.Object[] args,
                             boolean logExceptionOnCreation)
Construct object of class AccessDeniedException.
Parameters:
rid - resource id of the resource this exception is associated with (if any)
permissionName - name of the permission that was not granted
userId - id of the user which had not the permission
message - not localized message
args - message arguments inserted by MessageFormat means
logExceptionOnCreation - when true log the exception now during its construction

AccessDeniedException

public AccessDeniedException(IRid rid,
                             java.lang.String permissionName,
                             java.lang.String userId,
                             java.lang.String message,
                             java.lang.Throwable rootCause,
                             boolean logExceptionOnCreation)
Construct object of class AccessDeniedException.
Parameters:
rid - resource id of the resource this exception is associated with (if any)
permissionName - name of the permission that was not granted
userId - id of the user which had not the permission
message - not localized message
rootCause - throwable object which caused this exception
logExceptionOnCreation - when true log the exception now during its construction

AccessDeniedException

public AccessDeniedException(IRid rid,
                             java.lang.String permissionName,
                             java.lang.String userId,
                             java.lang.String message,
                             java.lang.Object[] args,
                             java.lang.Throwable rootCause,
                             boolean logExceptionOnCreation)
Construct object of class AccessDeniedException.
Parameters:
rid - resource id of the resource this exception is associated with (if any)
permissionName - name of the permission that was not granted
userId - id of the user which had not the permission
message - not localized message
args - message arguments inserted by MessageFormat means
rootCause - throwable object which caused this exception
logExceptionOnCreation - when true log the exception now during its construction

AccessDeniedException

protected AccessDeniedException(IRid rid,
                                java.lang.String permissionName,
                                java.lang.String userId,
                                ResourceAccessor resourceAccessor,
                                java.lang.String key)
Construct object of class AccessDeniedException.
Parameters:
rid - resource id of the resource this exception is associated with (if any)
permissionName - name of the permission that was not granted
userId - id of the user which had not the permission
resourceAccessor - resource accessor
key - resource identifier for localized message

AccessDeniedException

protected AccessDeniedException(IRid rid,
                                java.lang.String permissionName,
                                java.lang.String userId,
                                ResourceAccessor resourceAccessor,
                                java.lang.String key,
                                java.lang.Object[] args)
Construct object of class AccessDeniedException.
Parameters:
rid - resource id of the resource this exception is associated with (if any)
permissionName - name of the permission that was not granted
userId - id of the user which had not the permission
resourceAccessor - resource accessor
key - resource identifier for localized message
args - message arguments inserted by MessageFormat means

AccessDeniedException

protected AccessDeniedException(IRid rid,
                                java.lang.String permissionName,
                                java.lang.String userId,
                                ResourceAccessor resourceAccessor,
                                java.lang.String key,
                                java.lang.Throwable rootCause)
Construct object of class AccessDeniedException.
Parameters:
rid - resource id of the resource this exception is associated with (if any)
permissionName - name of the permission that was not granted
userId - id of the user which had not the permission
resourceAccessor - resource accessor
key - resource identifier for localized message
rootCause - throwable object which caused this exception

AccessDeniedException

protected AccessDeniedException(IRid rid,
                                java.lang.String permissionName,
                                java.lang.String userId,
                                ResourceAccessor resourceAccessor,
                                java.lang.String key,
                                java.lang.Object[] args,
                                java.lang.Throwable rootCause)
Construct object of class AccessDeniedException.
Parameters:
rid - resource id of the resource this exception is associated with (if any)
permissionName - name of the permission that was not granted
userId - id of the user which had not the permission
resourceAccessor - resource accessor
key - resource identifier for localized message
args - message arguments inserted by MessageFormat means
rootCause - throwable object which caused this exception

AccessDeniedException

protected AccessDeniedException(IRid rid,
                                java.lang.String permissionName,
                                java.lang.String userId,
                                ResourceAccessor resourceAccessor,
                                java.lang.String key,
                                boolean logExceptionOnCreation)
Construct object of class AccessDeniedException.
Parameters:
rid - resource id of the resource this exception is associated with (if any)
permissionName - name of the permission that was not granted
userId - id of the user which had not the permission
resourceAccessor - resource accessor
key - resource identifier for localized message
logExceptionOnCreation - when true log the exception now during its construction

AccessDeniedException

protected AccessDeniedException(IRid rid,
                                java.lang.String permissionName,
                                java.lang.String userId,
                                ResourceAccessor resourceAccessor,
                                java.lang.String key,
                                java.lang.Object[] args,
                                boolean logExceptionOnCreation)
Construct object of class AccessDeniedException.
Parameters:
rid - resource id of the resource this exception is associated with (if any)
permissionName - name of the permission that was not granted
userId - id of the user which had not the permission
resourceAccessor - resource accessor
key - resource identifier for localized message
args - message arguments inserted by MessageFormat means
logExceptionOnCreation - when true log the exception now during its construction

AccessDeniedException

protected AccessDeniedException(IRid rid,
                                java.lang.String permissionName,
                                java.lang.String userId,
                                ResourceAccessor resourceAccessor,
                                java.lang.String key,
                                java.lang.Throwable rootCause,
                                boolean logExceptionOnCreation)
Construct object of class AccessDeniedException.
Parameters:
rid - resource id of the resource this exception is associated with (if any)
permissionName - name of the permission that was not granted
userId - id of the user which had not the permission
resourceAccessor - resource accessor
key - resource identifier for localized message
rootCause - throwable object which caused this exception
logExceptionOnCreation - when true log the exception now during its construction

AccessDeniedException

protected AccessDeniedException(IRid rid,
                                java.lang.String permissionName,
                                java.lang.String userId,
                                ResourceAccessor resourceAccessor,
                                java.lang.String key,
                                java.lang.Object[] args,
                                java.lang.Throwable rootCause,
                                boolean logExceptionOnCreation)
Construct object of class AccessDeniedException.
Parameters:
rid - resource id of the resource this exception is associated with (if any)
permissionName - name of the permission that was not granted
userId - id of the user which had not the permission
resourceAccessor - resource accessor
key - resource identifier for localized message
args - message arguments inserted by MessageFormat means
rootCause - throwable object which caused this exception
logExceptionOnCreation - when true log the exception now during its construction

AccessDeniedException

protected AccessDeniedException(IRid rid,
                                java.lang.String permissionName,
                                java.lang.String userId,
                                ResourceMessage message)
Construct object of class AccessDeniedException.
Parameters:
rid - resource id of the resource this exception is associated with (if any)
permissionName - name of the permission that was not granted
userId - id of the user which had not the permission
message - not localized message

AccessDeniedException

protected AccessDeniedException(IRid rid,
                                java.lang.String permissionName,
                                java.lang.String userId,
                                ResourceMessage message,
                                java.lang.Throwable rootCause)
Construct object of class AccessDeniedException.
Parameters:
rid - resource id of the resource this exception is associated with (if any)
permissionName - name of the permission that was not granted
userId - id of the user which had not the permission
message - not localized message
rootCause - throwable object which caused this exception

AccessDeniedException

protected AccessDeniedException(IRid rid,
                                java.lang.String permissionName,
                                java.lang.String userId,
                                ResourceMessage message,
                                boolean logExceptionOnCreation)
Construct object of class AccessDeniedException.
Parameters:
rid - resource id of the resource this exception is associated with (if any)
permissionName - name of the permission that was not granted
userId - id of the user which had not the permission
message - not localized message
logExceptionOnCreation - when true log the exception now during its construction

AccessDeniedException

protected AccessDeniedException(IRid rid,
                                java.lang.String permissionName,
                                java.lang.String userId,
                                ResourceMessage message,
                                java.lang.Throwable rootCause,
                                boolean logExceptionOnCreation)
Construct object of class AccessDeniedException.
Parameters:
rid - resource id of the resource this exception is associated with (if any)
permissionName - name of the permission that was not granted
userId - id of the user which had not the permission
message - not localized message
rootCause - throwable object which caused this exception
logExceptionOnCreation - when true log the exception now during its construction
Method Detail

getPermissionName

public java.lang.String getPermissionName()
Get name of the permission that was not granted.
Returns:
name of the permission that was not granted

getUserId

public java.lang.String getUserId()
Get id of the user which had not the permission.
Returns:
id of the user which had not the permission

SAP NetWeaver '04

Copyright © 2004 by SAP AG. All Rights Reserved.
SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.

These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.