public class AuthorizationException extends KualiException
| Modifier and Type | Field and Description | 
|---|---|
| protected String | action | 
| protected Map<String,Object> | additionalDetails | 
| protected String | targetType | 
| protected String | userId | 
| Constructor and Description | 
|---|
| 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 | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getAction() | 
| Map<String,Object> | getAdditionalDetails() | 
| String | getErrorMessageKey()Deprecated.   | 
| String | getTargetType() | 
| String | getUserId() | 
isHideIncidentReport, setHideIncidentReportaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringprotected final String targetType
protected final Map<String,Object> additionalDetails
public AuthorizationException(String userId, String action, String targetType)
public AuthorizationException(String userId, String action, String targetType, Map<String,Object> additionalDetails)
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.)public String getTargetType()
public Map<String,Object> getAdditionalDetails()
@Deprecated public String getErrorMessageKey()
Copyright © 2005–2015 The Kuali Foundation. All rights reserved.