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 BonitaException

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 id, java.lang.String msg, java.lang.String instanceUUID, java.lang.String userId)
          Constructs an UnAuthorizedUserException for instance.
UnAuthorizedUserException(java.lang.String id, java.lang.String msg, java.lang.String instanceUUID, TaskUUID taskUUID, java.lang.String userId)
          Constructs an UnAuthorizedUserException for task.
UnAuthorizedUserException(java.lang.String id, java.lang.String msg, TaskUUID taskUUID, java.lang.String userId)
           
UnAuthorizedUserException(UnAuthorizedUserException e)
           
 
Method Summary
static UnAuthorizedUserException build(java.lang.String id, java.lang.Throwable e)
           
 java.lang.String getInstanceUUID()
           
 TaskUUID getTaskUUID()
           
 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 id,
                                 java.lang.String msg,
                                 java.lang.String instanceUUID,
                                 java.lang.String userId)
Constructs an UnAuthorizedUserException for instance. TaskUUID is set to null.

Parameters:
msg - the detail message.
instanceUUID - the instance processDefinitionUUID.
userId - the user processDefinitionUUID.

UnAuthorizedUserException

public UnAuthorizedUserException(java.lang.String id,
                                 java.lang.String msg,
                                 java.lang.String instanceUUID,
                                 TaskUUID taskUUID,
                                 java.lang.String userId)
Constructs an UnAuthorizedUserException for task.

Parameters:
msg - the detail message.
instanceUUID - the instance processDefinitionUUID.
taskUUID - the task processDefinitionUUID.
userId - the user processDefinitionUUID.

UnAuthorizedUserException

public UnAuthorizedUserException(UnAuthorizedUserException e)

UnAuthorizedUserException

public UnAuthorizedUserException(java.lang.String id,
                                 java.lang.String msg,
                                 TaskUUID taskUUID,
                                 java.lang.String userId)
Method Detail

build

public static UnAuthorizedUserException build(java.lang.String id,
                                              java.lang.Throwable e)

getTaskUUID

public TaskUUID getTaskUUID()

getInstanceUUID

public java.lang.String getInstanceUUID()

getUserId

public java.lang.String getUserId()


Copyright © 2009 OW2 Consortium. All Rights Reserved.