|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.pega.pegarules.pub.PRException
com.pega.pegarules.pub.database.DatabaseException
com.pega.pegarules.pub.database.BadInputException
com.pega.pegarules.pub.database.AuthorizationException
public final class AuthorizationException
Indicates that a database operation could not be performed due to insufficient authorization.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT
|
static java.lang.String |
sCannotDelete
Name of the message indicating that the caller is not authorized to delete an instance. |
static java.lang.String |
sCannotDeleteFromLockedRuleSet
Name of the message indicating that the caller tried to delete a Rule from a locked RuleSet. |
static java.lang.String |
sCannotModify
Name of the message indicating that the caller is not authorized to modify an instance. |
static java.lang.String |
sCannotOpen
Name of the message indicating that the caller is not authorized to open an instance. |
static java.lang.String |
sCannotSaveToLockedRuleSet
Name of the message indicating that the caller tried to save a Rule to a locked RuleSet. |
static java.lang.String |
sCannotSearch
Name of the message indicating that the caller is not authorized to search for an instance. |
static java.lang.String |
VERSION
|
Fields inherited from class com.pega.pegarules.pub.database.BadInputException |
---|
sMsgClassCannotHaveInstances |
Method Summary | |
---|---|
static AuthorizationException |
createCannotDeleteException(java.lang.String aInstanceName)
Create an exception indicating that you are not authorized to delete a particular instance. |
static AuthorizationException |
createCannotDeleteFromLockedRuleSetException(java.lang.String aRuleHandle,
java.lang.String aRuleSetName,
java.lang.String aRuleSetVersion)
Creates an exception due to the caller trying to delete a Rule from a locked RuleSet. |
static AuthorizationException |
createCannotModifyException(java.lang.String aInstanceName)
Create an exception indicating that you are not authorized to modify a particular instance. |
static AuthorizationException |
createCannotOpenException(java.lang.String aInstanceName)
Create an exception indicating that you are not authorized to open a particular instance. |
static AuthorizationException |
createCannotSaveToLockedRuleSetException(java.lang.String aRuleHandle,
java.lang.String aRuleSetName,
java.lang.String aRuleSetVersion)
Creates an exception due to the caller trying to save a Rule to a locked RuleSet. |
static AuthorizationException |
createCannotSearchException(java.lang.String aClass)
Create an exception indicating that you are not authorized to do a particular search. |
java.lang.String |
getRuleHandle()
If this exception is associated with a particular Rule, returns the handle of the Rule |
java.lang.String |
getRuleSetName()
If this exception involves a particular RuleSet, returns the name of the RuleSet. |
java.lang.String |
getRuleSetVersion()
If this exception involves a particular RuleSet, returns the version of the RuleSet. |
Methods inherited from class com.pega.pegarules.pub.database.BadInputException |
---|
createBadSQLException, createClassCannotHaveInstancesException, createGenericBadInputException, createShortcutException |
Methods inherited from class com.pega.pegarules.pub.database.DatabaseException |
---|
getSQL, setSQL, setSQLInserts |
Methods inherited from class com.pega.pegarules.pub.PRException |
---|
toString |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
public static final java.lang.String VERSION
public static final java.lang.String sCannotDeleteFromLockedRuleSet
public static final java.lang.String sCannotSaveToLockedRuleSet
public static final java.lang.String sCannotOpen
public static final java.lang.String sCannotModify
public static final java.lang.String sCannotDelete
public static final java.lang.String sCannotSearch
Method Detail |
---|
public static AuthorizationException createCannotDeleteFromLockedRuleSetException(java.lang.String aRuleHandle, java.lang.String aRuleSetName, java.lang.String aRuleSetVersion)
aRuleHandle
- the handle of the Rule that the caller tried to deleteaRuleSetName
- the name of the locked RuleSetaRuleSetVersion
- the version of the locked RuleSet
public static AuthorizationException createCannotSaveToLockedRuleSetException(java.lang.String aRuleHandle, java.lang.String aRuleSetName, java.lang.String aRuleSetVersion)
aRuleHandle
- the handle of the Rule that the caller tried to deleteaRuleSetName
- the name of the locked RuleSetaRuleSetVersion
- the version of the locked RuleSet
public static AuthorizationException createCannotOpenException(java.lang.String aInstanceName)
aInstanceName
- the handle (or name) of the instance
public static AuthorizationException createCannotModifyException(java.lang.String aInstanceName)
aInstanceName
- the handle (or name) of the instance
public static AuthorizationException createCannotDeleteException(java.lang.String aInstanceName)
aInstanceName
- the handle (or name) of the instance
public static AuthorizationException createCannotSearchException(java.lang.String aClass)
aClass
- the class you are trying to search
public java.lang.String getRuleSetName()
public java.lang.String getRuleSetVersion()
public java.lang.String getRuleHandle()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |