Sonic Management API

com.sonicsw.mf.common.security
Class ManagePermissionDeniedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.sonicsw.mf.common.MFRuntimeException
                  extended by com.sonicsw.mf.common.security.ManagementPermissionDeniedException
                      extended by com.sonicsw.mf.common.security.ManagePermissionDeniedException
All Implemented Interfaces:
java.io.Serializable

public class ManagePermissionDeniedException
extends ManagementPermissionDeniedException

Unchecked management exception.

Indicates that a caller attempted to directly or indirectly perform some action on a container or component but did not have permission to perform that action.

See Also:
Serialized Form

Constructor Summary
ManagePermissionDeniedException(java.lang.String message, java.lang.String target, int requiredPermission)
          Constructs a new exception with the specified detail message.
 
Method Summary
 int getRequiredPermission()
          Gets the permission that was denied.
 java.lang.String getTarget()
          Gets the target component to which the permission was denied.
 
Methods inherited from class com.sonicsw.mf.common.MFRuntimeException
getMessage
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ManagePermissionDeniedException

public ManagePermissionDeniedException(java.lang.String message,
                                       java.lang.String target,
                                       int requiredPermission)
Constructs a new exception with the specified detail message. The cause is not initialized, and may subsequently be initialized by a call to MFRuntimeException.setLinkedException(java.lang.Exception).

Parameters:
message - The textural details of why the permission was denied.
target - The target component to which the permission was denied.
requiredPermission - The permission that was denied.
See Also:
IManagePermissionBits
Method Detail

getRequiredPermission

public int getRequiredPermission()
Gets the permission that was denied.

See Also:
IManagePermissionBits

getTarget

public java.lang.String getTarget()
Gets the target component to which the permission was denied.


Sonic Management API

Copyright © 2001-2010 Progress Software Corporation. All Rights Reserved.
HTML formatted on 07-Mar-2010.