|
Oracle® Data Integrator Java API Reference 11g Release 1 (11.1.1.7.0) E17060-04 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
oracle.odi.core.exception.OdiRuntimeException
oracle.odi.exception.OdiUncheckedException
oracle.odi.core.security.OdiSecurityException
oracle.odi.core.security.PermissionDeniedException
public class PermissionDeniedException
Exception raised when attempting an operation that is not granted to the authenticated user.
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
long |
getDatabaseId() Return the id of the object to check. |
Permission |
getDeniedPermission() Return the Permission object which gets denied. |
java.lang.Class<? extends IRepositoryEntity> |
getEntityClass() Return the ODI class of the object to check. |
PermissionType |
getPermissionType() Return the permission type to check. |
java.lang.Class<? extends com.sunopsis.dwg.DwgObject> |
getSnpClass() Return the SNP class of the object to check. |
static PermissionDeniedException |
permissionDeniedForEntityClass(java.lang.Class<? extends IRepositoryEntity> 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<? extends IRepositoryEntity> 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<? extends com.sunopsis.dwg.DwgObject> 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<? extends com.sunopsis.dwg.DwgObject> 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<? extends com.sunopsis.dwg.DwgObject> snpClass, PermissionType pt, long id, java.lang.Throwable cause, oracle.odi.internal.util.MessageHandle msg, java.lang.Object... pMsgArgs) Create PermissionDetailedException for Snp Class. |
Methods inherited from class oracle.odi.exception.OdiUncheckedException |
---|
getErrorID, getErrorMsgHandle, getLocalizedMessage, getLocalizedMessage, getMessage |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public 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 DwgObject
pt
- 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.Method Detail |
---|
public static PermissionDeniedException permissionDeniedForSnpClass(java.lang.Class<? extends com.sunopsis.dwg.DwgObject> 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<? extends com.sunopsis.dwg.DwgObject> 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<? extends com.sunopsis.dwg.DwgObject> 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<? extends IRepositoryEntity> 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<? extends IRepositoryEntity> 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<? extends com.sunopsis.dwg.DwgObject> getSnpClass()
public java.lang.Class<? extends IRepositoryEntity> getEntityClass()
|
Oracle® Data Integrator Java API Reference 11g Release 1 (11.1.1.7.0) E17060-04 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |