org.ow2.bonita.facade.exception
Class UnAuthorizedUserException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.ow2.bonita.util.BonitaException
              extended by org.ow2.bonita.facade.exception.UnAuthorizedUserException
All Implemented Interfaces:
java.io.Serializable

public class UnAuthorizedUserException
extends org.ow2.bonita.util.BonitaException

This exception is thrown when a user attemps to execute an unauthorized action.

Author:
Marc Blachon, Guillaume Porcher, Charles Souillard, Miguel Valdes, Pierre Vigneras.
See Also:
Serialized Form

Constructor Summary
UnAuthorizedUserException(java.lang.String msg, java.lang.String instanceId, java.lang.String userId)
          Constructs an UnAuthorizedUserException for instance.
UnAuthorizedUserException(java.lang.String msg, java.lang.String instanceId, java.lang.String taskId, java.lang.String userId)
          Constructs an UnAuthorizedUserException for task.
 
Method Summary
 java.lang.String getInstanceId()
           
 java.lang.String getTaskId()
           
 java.lang.String getuserId()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnAuthorizedUserException

public UnAuthorizedUserException(java.lang.String msg,
                                 java.lang.String instanceId,
                                 java.lang.String userId)
Constructs an UnAuthorizedUserException for instance. TaskId is set to null.

Parameters:
msg - the detail message.
instanceId - the instance id.
userId - the user id.

UnAuthorizedUserException

public UnAuthorizedUserException(java.lang.String msg,
                                 java.lang.String instanceId,
                                 java.lang.String taskId,
                                 java.lang.String userId)
Constructs an UnAuthorizedUserException for task.

Parameters:
msg - the detail message.
instanceId - the instance id.
taskId - the task id.
userId - the user id.
Method Detail

getTaskId

public java.lang.String getTaskId()

getInstanceId

public java.lang.String getInstanceId()

getuserId

public java.lang.String getuserId()