public class AuthorizationExceptionDto extends ExceptionDto
Dto for AuthorizationException
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<MissingAuthorizationDto> |
missingAuthorizations |
protected String |
permissionName |
protected String |
resourceId |
protected String |
resourceName |
protected String |
userId |
message, type
Constructor and Description |
---|
AuthorizationExceptionDto() |
Modifier and Type | Method and Description |
---|---|
static AuthorizationExceptionDto |
fromException(AuthorizationException e) |
List<MissingAuthorizationDto> |
getMissingAuthorizations() |
String |
getPermissionName()
Deprecated.
Use
getMissingAuthorizations() to get the name of the violated permission
of the MissingAuthorizationDto (s). This method will be removed in future version. |
String |
getResourceId()
Deprecated.
Use
getMissingAuthorizations() to get the id of the resource
of the MissingAuthorizationDto (s). This method will be removed in future version. |
String |
getResourceName()
Deprecated.
Use
getMissingAuthorizations() to get the name of the resource
of the MissingAuthorizationDto (s). This method will be removed in future version. |
String |
getUserId() |
void |
setMissingAuthorizations(List<MissingAuthorizationDto> info) |
void |
setPermissionName(String permissionName)
Deprecated.
Use
setMissingAuthorizations(List) } to set the
the MissingAuthorizationDto (s). This method will be removed in future version. |
void |
setResourceId(String resourceId)
Deprecated.
Use
setMissingAuthorizations(List) } to set the
the MissingAuthorizationDto (s). This method will be removed in future version. |
void |
setResourceName(String resourceName)
Deprecated.
Use
setMissingAuthorizations(List) } to set the
the MissingAuthorizationDto (s). This method will be removed in future version. |
void |
setUserId(String userId) |
fromException, fromException, getMessage, getType, setMessage, setType
protected String userId
protected String resourceName
protected String resourceId
protected String permissionName
protected List<MissingAuthorizationDto> missingAuthorizations
public static AuthorizationExceptionDto fromException(AuthorizationException e)
@Deprecated public String getResourceName()
getMissingAuthorizations()
to get the name of the resource
of the MissingAuthorizationDto
(s). This method will be removed in future version.MissingAuthorizationDto
, null
otherwise@Deprecated public void setResourceName(String resourceName)
setMissingAuthorizations(List)
} to set the
the MissingAuthorizationDto
(s). This method will be removed in future version.@Deprecated public String getResourceId()
getMissingAuthorizations()
to get the id of the resource
of the MissingAuthorizationDto
(s). This method will be removed in future version.MissingAuthorizationDto
, null
otherwise@Deprecated public void setResourceId(String resourceId)
setMissingAuthorizations(List)
} to set the
the MissingAuthorizationDto
(s). This method will be removed in future version.@Deprecated public String getPermissionName()
getMissingAuthorizations()
to get the name of the violated permission
of the MissingAuthorizationDto
(s). This method will be removed in future version.MissingAuthorizationDto
, null
otherwise@Deprecated public void setPermissionName(String permissionName)
setMissingAuthorizations(List)
} to set the
the MissingAuthorizationDto
(s). This method will be removed in future version.public String getUserId()
public void setUserId(String userId)
public List<MissingAuthorizationDto> getMissingAuthorizations()
MissingAuthorizationDto
from
which a user needs to have at least one for the authorization to passpublic void setMissingAuthorizations(List<MissingAuthorizationDto> info)
Copyright © 2019. All rights reserved.