com.xebialabs.deployit.security
Class PermissionDeniedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.xebialabs.deployit.exception.DeployitException
                  extended by com.xebialabs.deployit.security.PermissionDeniedException
All Implemented Interfaces:
java.io.Serializable

@HttpResponseCodeResult(statusCode=403)
public class PermissionDeniedException
extends DeployitException

See Also:
Serialized Form

Constructor Summary
PermissionDeniedException()
           
PermissionDeniedException(java.lang.String message)
           
PermissionDeniedException(java.lang.String message, java.lang.Exception cause)
           
 
Method Summary
static PermissionDeniedException forNodeAndPrivilege(java.lang.String id, java.lang.String privilege)
           
static PermissionDeniedException forPermission(Permission permission, java.util.List<java.lang.String> onConfigurationItems)
           
static PermissionDeniedException forPermission(Permission permission, java.lang.String onConfigurationItem)
           
static PermissionDeniedException withMessage(java.lang.String message)
           
static PermissionDeniedException withMessage(java.lang.String message, java.lang.Exception cause)
           
 
Methods inherited from class com.xebialabs.deployit.exception.DeployitException
add, addAll, getErrors, getMessage, hasErrors
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, 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

PermissionDeniedException

public PermissionDeniedException(java.lang.String message,
                                 java.lang.Exception cause)

PermissionDeniedException

public PermissionDeniedException()

PermissionDeniedException

public PermissionDeniedException(java.lang.String message)
Method Detail

withMessage

public static PermissionDeniedException withMessage(java.lang.String message,
                                                    java.lang.Exception cause)

withMessage

public static PermissionDeniedException withMessage(java.lang.String message)

forNodeAndPrivilege

public static PermissionDeniedException forNodeAndPrivilege(java.lang.String id,
                                                            java.lang.String privilege)

forPermission

public static PermissionDeniedException forPermission(Permission permission,
                                                      java.util.List<java.lang.String> onConfigurationItems)

forPermission

public static PermissionDeniedException forPermission(Permission permission,
                                                      java.lang.String onConfigurationItem)