org.kuali.rice.krad.exception
Class DocumentAuthorizationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.kuali.rice.core.api.exception.KualiException
                  extended by org.kuali.rice.krad.exception.AuthorizationException
                      extended by org.kuali.rice.krad.exception.DocumentAuthorizationException
All Implemented Interfaces:
Serializable

public class DocumentAuthorizationException
extends AuthorizationException

This class represents an exception that is thrown when a given user is not authorized to take a given action on the given document type.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.kuali.rice.krad.exception.AuthorizationException
action, additionalDetails, targetType, userId
 
Constructor Summary
DocumentAuthorizationException(String userId, String action, String documentId)
          Constructs a DocumentAuthorizationException for a specific document rather than a documentType.
DocumentAuthorizationException(String userId, String action, String documentId, Map<String,Object> requestAuthDetails)
           
 
Method Summary
 String getErrorMessageKey()
           
 
Methods inherited from class org.kuali.rice.krad.exception.AuthorizationException
getAction, getAdditionalDetails, getTargetType, getUserId
 
Methods inherited from class org.kuali.rice.core.api.exception.KualiException
isHideIncidentReport, setHideIncidentReport
 
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

DocumentAuthorizationException

public DocumentAuthorizationException(String userId,
                                      String action,
                                      String documentId)
Constructs a DocumentAuthorizationException for a specific document rather than a documentType.

Parameters:
userId -
action -
documentId -

DocumentAuthorizationException

public DocumentAuthorizationException(String userId,
                                      String action,
                                      String documentId,
                                      Map<String,Object> requestAuthDetails)
Method Detail

getErrorMessageKey

public String getErrorMessageKey()
Overrides:
getErrorMessageKey in class AuthorizationException
Returns:
message key used by Struts to select the error message to be displayed
See Also:
AuthorizationException.getErrorMessageKey()


Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.