org.kuali.rice.krad.exception
Class AuthorizationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.kuali.rice.core.api.exception.KualiException
org.kuali.rice.krad.exception.AuthorizationException
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- DocumentAuthorizationException, DocumentTypeAuthorizationException
public class AuthorizationException
- extends KualiException
Represents an exception that is thrown when a given user is not authorized to take the given action on the given
target type
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
- Serialized Form
Constructor Summary |
AuthorizationException(String userId,
String action,
String targetType)
|
AuthorizationException(String userId,
String action,
String targetType,
Map<String,Object> additionalDetails)
Constructs a exception with a message from the passed in information. |
AuthorizationException(String userId,
String action,
String targetType,
String message,
Map<String,Object> additionalDetails)
Allows you to construct the exception message manually |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
userId
protected final String userId
action
protected final String action
targetType
protected final String targetType
additionalDetails
protected final Map<String,Object> additionalDetails
AuthorizationException
public AuthorizationException(String userId,
String action,
String targetType)
AuthorizationException
public AuthorizationException(String userId,
String action,
String targetType,
Map<String,Object> additionalDetails)
- Constructs a exception with a message from the passed in information.
- Parameters:
userId
- the userid of the user who failed authorizationaction
- the action the user was trying to taketargetType
- what the user was trying to take action onadditionalDetails
- additional details about the authorization failure to be passed in and added to the
exception message (ex: permission name, qualifiers, etc.)
AuthorizationException
public AuthorizationException(String userId,
String action,
String targetType,
String message,
Map<String,Object> additionalDetails)
- Allows you to construct the exception message manually
getUserId
public String getUserId()
getAction
public String getAction()
getTargetType
public String getTargetType()
getAdditionalDetails
public Map<String,Object> getAdditionalDetails()
getErrorMessageKey
@Deprecated
public String getErrorMessageKey()
- Deprecated.
- Returns:
- message key used by Struts to select the error message to be displayed
Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.