wt.access
Class NotAuthorizedException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bywt.util.WTException
              extended bywt.access.AccessControlException
                  extended bywt.access.NotAuthorizedException
All Implemented Interfaces:
LocalizableMessage, Message, Serializable

public class NotAuthorizedException
extends AccessControlException
implements Serializable

The NotAuthorizedException exception is to be thrown in situations in which the user lacks sufficient privileges to carry out an action on a specific object.

Supported API: true

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
private  WTArrayList objectIdentifiers
           
private static String RESOURCE
           
 
Fields inherited from class wt.util.WTException
GETMESSAGE_LINE_SEPARATOR, LINE_SEPARATOR, SPACE_SEPARATOR, TOSTRING_LINE_SEPARATOR
 
Fields inherited from class java.lang.Exception
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
NotAuthorizedException()
          No argument constructor.
NotAuthorizedException(Exception e)
          Constructor that takes an execption as argument.
NotAuthorizedException(Exception e, String msg)
          Constructor that takes a non-localized message and an exeption as argument.
NotAuthorizedException(Exception e, String rb, String key, Object[] params)
          Constructor that takes and exception, a resource bundle, a key and additional parameters to use in the localized message.
NotAuthorizedException(String msg)
          Constructor that takes a non-localized message as argument.
 
Method Summary
 WTArrayList getObjectIdentifiers()
          Gets the value of the attribute: objectIdentifiers; ObjectIdentifier of inaccessible objects, for which read access is authorized

Supported API: false
protected  void setObjectIdentifiers(WTArrayList a_ObjectIdentifiers)
          Sets the value of the attribute: objectIdentifiers; ObjectIdentifier of inaccessible objects, for which read access is authorized

Supported API: false
 
Methods inherited from class wt.util.WTException
getAdditionalMessageArray, getAdditionalMessages, getAdditionalMessages, getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getNestedExceptionString, getNestedExceptionString, getNestedThrowable, getStandardMessage, getStandardMessage, printStackTrace, printStackTrace, printStackTrace, setLocalizedMessage, toString, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getMessage, getStackTrace, initCause, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

objectIdentifiers

private WTArrayList objectIdentifiers
Constructor Detail

NotAuthorizedException

public NotAuthorizedException()
No argument constructor.

Supported API: true


NotAuthorizedException

public NotAuthorizedException(String msg)
Constructor that takes a non-localized message as argument.

Supported API: true

Parameters:
msg -

NotAuthorizedException

public NotAuthorizedException(Exception e)
Constructor that takes an execption as argument. Exception can be retrieved using getNestedException method.

Supported API: true

Parameters:
e -

NotAuthorizedException

public NotAuthorizedException(Exception e,
                              String msg)
Constructor that takes a non-localized message and an exeption as argument.

Supported API: true

Parameters:
e -
msg -

NotAuthorizedException

public NotAuthorizedException(Exception e,
                              String rb,
                              String key,
                              Object[] params)
Constructor that takes and exception, a resource bundle, a key and additional parameters to use in the localized message.

Supported API: true

Parameters:
e -
rb -
key -
params -
Method Detail

getObjectIdentifiers

public WTArrayList getObjectIdentifiers()
Gets the value of the attribute: objectIdentifiers; ObjectIdentifier of inaccessible objects, for which read access is authorized

Supported API: false

Returns:
WTArrayList

setObjectIdentifiers

protected void setObjectIdentifiers(WTArrayList a_ObjectIdentifiers)
Sets the value of the attribute: objectIdentifiers; ObjectIdentifier of inaccessible objects, for which read access is authorized

Supported API: false

Parameters:
a_ObjectIdentifiers -