Oracle® Data Integrator Java API Reference
11g Release 1 (11.1.1.3.0)

E17060-01

oracle.odi.core.security
Class PermissionDeniedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by oracle.odi.core.exception.OdiRuntimeException
                  extended by oracle.odi.core.security.OdiSecurityException
                      extended by oracle.odi.core.security.PermissionDeniedException
All Implemented Interfaces:
java.io.Serializable

public class PermissionDeniedException
extends OdiSecurityException

Exception raised when attempting an operation that is not granted to the authenticated user.

Since:
11.1.1.3.0
See Also:
Serialized Form

Constructor Summary
PermissionDeniedException()
          Construct a PermissionDeniedException object.
PermissionDeniedException(java.lang.Class oclass, PermissionType pt, long id, boolean snp)
          Construct a PermissionDeniedException object.
PermissionDeniedException(Permission per)
          Construct a PermissionDeniedException object.
PermissionDeniedException(java.lang.String msg)
          Construct a PermissionDeniedException object.
PermissionDeniedException(java.lang.String msg, java.lang.Class oclass, PermissionType pt, long id, boolean snp)
          Construct a PermissionDeniedException object.
PermissionDeniedException(java.lang.String msg, Permission per)
          Construct a PermissionDeniedException object.
 
Method Summary
 long getDatabaseId()
          Return the id of the object to check.
 Permission getDeniedPermission()
          Return the Permission object which gets denied.
 java.lang.Class getEntityClass()
          Return the ODI class of the object to check.
 PermissionType getPermissionType()
          Return the permission type to check.
 java.lang.Class getSnpClass()
          Return the SNP class of the object to check.
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PermissionDeniedException

public PermissionDeniedException()
Construct a PermissionDeniedException object.


PermissionDeniedException

public PermissionDeniedException(java.lang.Class oclass,
                                 PermissionType pt,
                                 long id,
                                 boolean snp)
Construct a PermissionDeniedException object.

Parameters:
oclass - the class of the object to check permission.
pt - PermissionType object representing type of priviledge.
id - the id of the object to check permission.
snp - true if the object is SnpXXX object, false if the object is OdiXXXX object.

PermissionDeniedException

public PermissionDeniedException(Permission per)
Construct a PermissionDeniedException object.

Parameters:
per - Permission object.

PermissionDeniedException

public PermissionDeniedException(java.lang.String msg)
Construct a PermissionDeniedException object.

Parameters:
msg - message about the permission denied problem.

PermissionDeniedException

public PermissionDeniedException(java.lang.String msg,
                                 java.lang.Class oclass,
                                 PermissionType pt,
                                 long id,
                                 boolean snp)
Construct a PermissionDeniedException object.

Parameters:
msg - message about the permission denied problem.
oclass - the class of the object to check permission.
pt - PermissionType object representing type of priviledge.
id - the id of the object to check permission.
snp - true if the object is SnpXXX object, false if the object is OdiXXXX object.

PermissionDeniedException

public PermissionDeniedException(java.lang.String msg,
                                 Permission per)
Construct a PermissionDeniedException object.

Parameters:
msg - message about the permission denied problem.
per - Permission object.
Method Detail

getDatabaseId

public long getDatabaseId()
Return the id of the object to check.

Returns:
the id of the object to check.

getDeniedPermission

public Permission getDeniedPermission()
Return the Permission object which gets denied.

Returns:
the Permission object which gets denied.

getEntityClass

public java.lang.Class getEntityClass()
Return the ODI class of the object to check.

Returns:
the ODI class of the object to check.

getPermissionType

public PermissionType getPermissionType()
Return the permission type to check.

Returns:
the permission type to check.

getSnpClass

public java.lang.Class getSnpClass()
Return the SNP class of the object to check.

Returns:
the SNP class of the object to check.

Oracle® Data Integrator Java API Reference
11g Release 1 (11.1.1.3.0)

E17060-01

Copyright © 2010, Oracle and/or its affiliates. All rights reserved.