Package org.operaton.bpm.engine.rest.dto
Class AuthorizationExceptionDto
java.lang.Object
org.operaton.bpm.engine.rest.dto.ExceptionDto
org.operaton.bpm.engine.rest.dto.AuthorizationExceptionDto
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.
- Author:
- Daniel Meyer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<MissingAuthorizationDto> protected Stringprotected Stringprotected Stringprotected StringFields inherited from class org.operaton.bpm.engine.rest.dto.ExceptionDto
code, message, type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AuthorizationExceptionDtoDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.UsegetMissingAuthorizations()to get the id of the resource of theMissingAuthorizationDto(s) instead.Deprecated, for removal: This API element is subject to removal in a future version.UsegetMissingAuthorizations()to get the name of the resource of theMissingAuthorizationDto(s) instead.voidvoidsetPermissionName(String permissionName) Deprecated, for removal: This API element is subject to removal in a future version.UsesetMissingAuthorizations(List)} to set theMissingAuthorizationDto(s) instead.voidsetResourceId(String resourceId) Deprecated, for removal: This API element is subject to removal in a future version.UsesetMissingAuthorizations(List)} to set theMissingAuthorizationDto(s) instead.voidsetResourceName(String resourceName) Deprecated, for removal: This API element is subject to removal in a future version.UsesetMissingAuthorizations(List)} to set theMissingAuthorizationDto(s) instead.voidMethods inherited from class org.operaton.bpm.engine.rest.dto.ExceptionDto
fromException, fromException, getCode, getMessage, getType, setCode, setMessage, setType
-
Field Details
-
userId
-
resourceName
-
resourceId
-
permissionName
-
missingAuthorizations
-
-
Constructor Details
-
AuthorizationExceptionDto
public AuthorizationExceptionDto()
-
-
Method Details
-
fromException
-
getResourceName
Deprecated, for removal: This API element is subject to removal in a future version.UsegetMissingAuthorizations()to get the name of the resource of theMissingAuthorizationDto(s) instead.- Returns:
- the name of the resource if there
is only one
MissingAuthorizationDto,nullotherwise
-
setResourceName
Deprecated, for removal: This API element is subject to removal in a future version.UsesetMissingAuthorizations(List)} to set theMissingAuthorizationDto(s) instead. -
getResourceId
Deprecated, for removal: This API element is subject to removal in a future version.UsegetMissingAuthorizations()to get the id of the resource of theMissingAuthorizationDto(s) instead.- Returns:
- the id of the resource if there
is only one
MissingAuthorizationDto,nullotherwise
-
setResourceId
Deprecated, for removal: This API element is subject to removal in a future version.UsesetMissingAuthorizations(List)} to set theMissingAuthorizationDto(s) instead. -
getPermissionName
Deprecated, for removal: This API element is subject to removal in a future version.UsegetMissingAuthorizations()to get the name of the violated permission of theMissingAuthorizationDto(s) instead.- Returns:
- the name of the violated permission if there
is only one
MissingAuthorizationDto,nullotherwise
-
setPermissionName
Deprecated, for removal: This API element is subject to removal in a future version.UsesetMissingAuthorizations(List)} to set theMissingAuthorizationDto(s) instead. -
getUserId
-
setUserId
-
getMissingAuthorizations
- Returns:
- Disjunctive list of
MissingAuthorizationDtofrom which a user needs to have at least one for the authorization to pass
-
setMissingAuthorizations
-
getMissingAuthorizations()to get the name of the violated permission of theMissingAuthorizationDto(s) instead.