public class AuthorizationException extends ProcessEngineException
Exception thrown by the process engine in case a user tries to interact with a resource in an unauthorized way.
The exception contains a list of Missing authorizations. The List is a disjunction i.e. a user should have any of the authorization for the engine to continue the execution beyond the point where it failed.
Modifier and Type | Field and Description |
---|---|
protected List<MissingAuthorization> |
missingAuthorizations |
protected String |
permissionName
Deprecated.
|
protected String |
resourceId
Deprecated.
|
protected String |
resourceType
Deprecated.
|
protected String |
userId |
Constructor and Description |
---|
AuthorizationException(String message) |
AuthorizationException(String userId,
List<MissingAuthorization> info) |
AuthorizationException(String userId,
MissingAuthorization exceptionInfo) |
AuthorizationException(String userId,
String permissionName,
String resourceType,
String resourceId) |
Modifier and Type | Method and Description |
---|---|
List<MissingAuthorization> |
getMissingAuthorizations() |
String |
getResourceId()
Deprecated.
Use
getMissingAuthorizations() to get the id of the resource
of the MissingAuthorization (s). This method may be removed in future versions. |
String |
getResourceType()
Deprecated.
Use
getMissingAuthorizations() to get the type of the resource
of the MissingAuthorization (s). This method may be removed in future versions. |
String |
getUserId() |
String |
getViolatedPermissionName()
Deprecated.
Use
getMissingAuthorizations() to get the violated permission name
of the MissingAuthorization (s). This method may be removed in future versions. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
protected final String userId
protected final List<MissingAuthorization> missingAuthorizations
@Deprecated protected String resourceType
@Deprecated protected String permissionName
@Deprecated protected String resourceId
public AuthorizationException(String message)
public AuthorizationException(String userId, String permissionName, String resourceType, String resourceId)
public AuthorizationException(String userId, MissingAuthorization exceptionInfo)
public AuthorizationException(String userId, List<MissingAuthorization> info)
@Deprecated public String getResourceType()
getMissingAuthorizations()
to get the type of the resource
of the MissingAuthorization
(s). This method may be removed in future versions.MissingAuthorization
, null
otherwise@Deprecated public String getViolatedPermissionName()
getMissingAuthorizations()
to get the violated permission name
of the MissingAuthorization
(s). This method may be removed in future versions.MissingAuthorization
, null
otherwisepublic String getUserId()
@Deprecated public String getResourceId()
getMissingAuthorizations()
to get the id of the resource
of the MissingAuthorization
(s). This method may be removed in future versions.MissingAuthorization
, null
otherwisepublic List<MissingAuthorization> getMissingAuthorizations()
MissingAuthorization
from
which a user needs to have at least one for the authorization to passCopyright © 2021. All rights reserved.