public final class AuthorizationException extends BadInputException
Modifier and Type | Field and Description |
---|---|
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 |
sCannotExecute
Name of the message indicating that the caller is not authorized to execute an
API.
|
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 |
sCannotSaveToSharedRuleSet
Name of the message indicating that the tenant user tried to save a Rule
to a shared 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 |
sMsgClassCannotHaveInstances
mLookUpRuleMessages
Modifier and Type | Method and Description |
---|---|
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 |
createCannotExecuteException(java.lang.String aExecutionMethod)
Create an exception indicating that you are not authorized to execute
a particular API.
|
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 |
createCannotSaveToSharedRuleSetException(java.lang.String aRuleHandle,
java.lang.String aRuleSetName)
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.
|
createBadSQLException, createClassCannotHaveInstancesException, createGenericBadInputException, createShortcutException
getDBName, getIndexesOfFailedBatchOperation, getMessage, getOperation, getSQL, setDBName, setOperation, setSQL, setSQLInserts
isLookUpRuleMessages, setLookUpRuleMessages, toString
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 sCannotSaveToSharedRuleSet
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
public static final java.lang.String sCannotExecute
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 RuleSetpublic 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 RuleSetpublic static AuthorizationException createCannotSaveToSharedRuleSetException(java.lang.String aRuleHandle, java.lang.String aRuleSetName)
aRuleHandle
- the handle of the Rule that the caller tried to deleteaRuleSetName
- the name of the locked RuleSetpublic static AuthorizationException createCannotOpenException(java.lang.String aInstanceName)
aInstanceName
- the handle (or name) of the instancepublic static AuthorizationException createCannotModifyException(java.lang.String aInstanceName)
aInstanceName
- the handle (or name) of the instancepublic static AuthorizationException createCannotDeleteException(java.lang.String aInstanceName)
aInstanceName
- the handle (or name) of the instancepublic static AuthorizationException createCannotSearchException(java.lang.String aClass)
aClass
- the class you are trying to searchpublic static AuthorizationException createCannotExecuteException(java.lang.String aExecutionMethod)
aExecutionMethod
- the API you are trying to executepublic java.lang.String getRuleSetName()
public java.lang.String getRuleSetVersion()
public java.lang.String getRuleHandle()
Copyright © 2018 Pegasystems Inc. All Rights Reserved.