com.pega.pegarules.pub.database
Class AuthorizationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.pega.pegarules.pub.PRException
              extended by com.pega.pegarules.pub.database.DatabaseException
                  extended by com.pega.pegarules.pub.database.BadInputException
                      extended by com.pega.pegarules.pub.database.AuthorizationException
All Implemented Interfaces:
java.io.Serializable

public final class AuthorizationException
extends BadInputException

Indicates that a database operation could not be performed due to insufficient authorization.

Version:
$Revision: 2 $ $Date: 2009-06-15 17:25:41 -0400 (Mon, 15 Jun 2009) $
Author:
Jamie Gentry
See Also:
Serialized Form

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

COPYRIGHT

public static final java.lang.String COPYRIGHT
See Also:
Constant Field Values

VERSION

public static final java.lang.String VERSION

sCannotDeleteFromLockedRuleSet

public static final java.lang.String sCannotDeleteFromLockedRuleSet
Name of the message indicating that the caller tried to delete a Rule from a locked RuleSet.

See Also:
Constant Field Values

sCannotSaveToLockedRuleSet

public static final java.lang.String sCannotSaveToLockedRuleSet
Name of the message indicating that the caller tried to save a Rule to a locked RuleSet.

See Also:
Constant Field Values

sCannotOpen

public static final java.lang.String sCannotOpen
Name of the message indicating that the caller is not authorized to open an instance.

See Also:
Constant Field Values

sCannotModify

public static final java.lang.String sCannotModify
Name of the message indicating that the caller is not authorized to modify an instance.

See Also:
Constant Field Values

sCannotDelete

public static final java.lang.String sCannotDelete
Name of the message indicating that the caller is not authorized to delete an instance.

See Also:
Constant Field Values

sCannotSearch

public static final java.lang.String sCannotSearch
Name of the message indicating that the caller is not authorized to search for an instance.

See Also:
Constant Field Values
Method Detail

createCannotDeleteFromLockedRuleSetException

public 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.

Parameters:
aRuleHandle - the handle of the Rule that the caller tried to delete
aRuleSetName - the name of the locked RuleSet
aRuleSetVersion - the version of the locked RuleSet
Returns:
the exception

createCannotSaveToLockedRuleSetException

public 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.

Parameters:
aRuleHandle - the handle of the Rule that the caller tried to delete
aRuleSetName - the name of the locked RuleSet
aRuleSetVersion - the version of the locked RuleSet
Returns:
the exception

createCannotOpenException

public static AuthorizationException createCannotOpenException(java.lang.String aInstanceName)
Create an exception indicating that you are not authorized to open a particular instance.

Parameters:
aInstanceName - the handle (or name) of the instance
Returns:
the exception

createCannotModifyException

public static AuthorizationException createCannotModifyException(java.lang.String aInstanceName)
Create an exception indicating that you are not authorized to modify a particular instance.

Parameters:
aInstanceName - the handle (or name) of the instance
Returns:
the exception

createCannotDeleteException

public static AuthorizationException createCannotDeleteException(java.lang.String aInstanceName)
Create an exception indicating that you are not authorized to delete a particular instance.

Parameters:
aInstanceName - the handle (or name) of the instance
Returns:
the exception

createCannotSearchException

public static AuthorizationException createCannotSearchException(java.lang.String aClass)
Create an exception indicating that you are not authorized to do a particular search.

Parameters:
aClass - the class you are trying to search
Returns:
the exception

getRuleSetName

public java.lang.String getRuleSetName()
If this exception involves a particular RuleSet, returns the name of the RuleSet.

Returns:
the name of the RuleSet

getRuleSetVersion

public java.lang.String getRuleSetVersion()
If this exception involves a particular RuleSet, returns the version of the RuleSet.

Returns:
the RuleSet version

getRuleHandle

public java.lang.String getRuleHandle()
If this exception is associated with a particular Rule, returns the handle of the Rule

Returns:
the handle of the Rule


Copyright © 2012 Pegasystems Inc. All Rights Reserved.