public class PermissionDeniedException extends OdiSecurityException
| Constructor and Description |
|---|
PermissionDeniedException(java.lang.Class oclass,
PermissionType pt,
long id,
boolean snp)
Deprecated.
since 11.1.1.6.0. Instead of using constructor directly, appropriate method
(
#getExceptionForSnpClass() or #getExceptionForEntityClass()) should be called. |
PermissionDeniedException(java.lang.Class oclass,
PermissionType pt,
long id,
boolean snp,
oracle.odi.internal.util.MessageHandle msg,
java.lang.Object[] pMsgArgs)
Deprecated.
since 11.1.1.6.0. Instead of using constructor directly, appropriate method
(
#getExceptionForSnpClass() or #getExceptionForEntityClass()) should be called. |
PermissionDeniedException(oracle.odi.internal.util.MessageHandle msg,
java.lang.Object[] pMsgArgs)
Construct a PermissionDeniedException object.
|
PermissionDeniedException(Permission per)
Construct a PermissionDeniedException object.
|
PermissionDeniedException(Permission per,
oracle.odi.internal.util.MessageHandle msg,
java.lang.Object[] pMsgArgs)
Construct a PermissionDeniedException object.
|
PermissionDeniedException(java.lang.Throwable pCause,
oracle.odi.internal.util.MessageHandle pErrorMsg,
java.lang.Object[] pMsgArgs)
Base constructor with custom error message.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
static PermissionDeniedException |
permissionDeniedForEntityClass(java.lang.Class entityClass,
PermissionType pt,
long id)
Create PermissionDetailedException for Entity Class with default error message
Messages.ERR_SECURITY_OPERATION_IS_NOT_GRANTED. |
static PermissionDeniedException |
permissionDeniedForEntityClass(java.lang.Class entityClass,
PermissionType pt,
long id,
oracle.odi.internal.util.MessageHandle msg,
java.lang.Object[] pMsgArgs)
Create PermissionDetailedException for Entity Class.
|
static PermissionDeniedException |
permissionDeniedForSnpClass(java.lang.Class snpClass,
PermissionType pt,
long id)
Create PermissionDetailedException for Snp Class with default error message
Messages.ERR_SECURITY_OPERATION_IS_NOT_GRANTED. |
static PermissionDeniedException |
permissionDeniedForSnpClass(java.lang.Class snpClass,
PermissionType pt,
long id,
java.lang.Throwable cause)
Create PermissionDetailedException for Snp Class with default error message
Messages.ERR_SECURITY_OPERATION_IS_NOT_GRANTED. |
static PermissionDeniedException |
permissionDeniedForSnpClass(java.lang.Class snpClass,
PermissionType pt,
long id,
java.lang.Throwable cause,
oracle.odi.internal.util.MessageHandle msg,
java.lang.Object[] pMsgArgs)
Create PermissionDetailedException for Snp Class.
|
getErrorID, getErrorMsgHandle, getLocalizedMessage, getLocalizedMessage, getMessagepublic PermissionDeniedException(java.lang.Throwable pCause,
oracle.odi.internal.util.MessageHandle pErrorMsg,
java.lang.Object[] pMsgArgs)
pCause - exception root cause.pErrorMsg - custom error message.pMsgArgs - error message arguments.public PermissionDeniedException(oracle.odi.internal.util.MessageHandle msg,
java.lang.Object[] pMsgArgs)
msg - message about the permission denied problem.pMsgArgs - error message arguments.public PermissionDeniedException(Permission per)
per - Permission object.public PermissionDeniedException(Permission per, oracle.odi.internal.util.MessageHandle msg, java.lang.Object[] pMsgArgs)
msg - message about the permission denied problem.per - Permission object.pMsgArgs - error message arguments.@Deprecated
public PermissionDeniedException(java.lang.Class oclass,
PermissionType pt,
long id,
boolean snp)
#getExceptionForSnpClass() or #getExceptionForEntityClass()) should be called.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.@Deprecated
public PermissionDeniedException(java.lang.Class oclass,
PermissionType pt,
long id,
boolean snp,
oracle.odi.internal.util.MessageHandle msg,
java.lang.Object[] pMsgArgs)
#getExceptionForSnpClass() or #getExceptionForEntityClass()) should be called.msg - message about the permission denied problem.oclass - the class of the object to check permission. Should be child of IRepositoryEntity or DwgObjectpt - PermissionType object representing type of privilege.id - the id of the object to check permission.snp - true if the object is SnpXXX object, false if the object is OdiXXXX object.pMsgArgs - error message arguments.public static PermissionDeniedException permissionDeniedForSnpClass(java.lang.Class snpClass, PermissionType pt, long id, java.lang.Throwable cause, oracle.odi.internal.util.MessageHandle msg, java.lang.Object[] pMsgArgs)
snpClass - snp class of the object to check permission.pt - permission type, which was violated.id - database id.cause - exception root cause, can be null.msg - Custom messages.pMsgArgs - error message arguments.public static PermissionDeniedException permissionDeniedForSnpClass(java.lang.Class snpClass, PermissionType pt, long id)
Messages.ERR_SECURITY_OPERATION_IS_NOT_GRANTED.snpClass - snp class of the object to check permission.pt - permission type, which was violated.id - database id.public static PermissionDeniedException permissionDeniedForSnpClass(java.lang.Class snpClass, PermissionType pt, long id, java.lang.Throwable cause)
Messages.ERR_SECURITY_OPERATION_IS_NOT_GRANTED.snpClass - snp class of the object to check permission.pt - permission type, which was violated.id - database id.cause - exception root cause, can be null.public static PermissionDeniedException permissionDeniedForEntityClass(java.lang.Class entityClass, PermissionType pt, long id, oracle.odi.internal.util.MessageHandle msg, java.lang.Object[] pMsgArgs)
entityClass - entity class of the object to check permission.pt - permission type, which was violated.id - database id.msg - Custom messages.pMsgArgs - error message arguments.public static PermissionDeniedException permissionDeniedForEntityClass(java.lang.Class entityClass, PermissionType pt, long id)
Messages.ERR_SECURITY_OPERATION_IS_NOT_GRANTED.entityClass - entity class of the object to check permission.pt - permission type, which was violated.id - database id.public Permission getDeniedPermission()
public PermissionType getPermissionType()
public long getDatabaseId()
public java.lang.Class getSnpClass()
public java.lang.Class getEntityClass()