Package org.camunda.bpm.engine.rest.dto
Class AuthorizationExceptionDto
- java.lang.Object
-
- org.camunda.bpm.engine.rest.dto.ExceptionDto
-
- org.camunda.bpm.engine.rest.dto.AuthorizationExceptionDto
-
public class AuthorizationExceptionDto extends ExceptionDto
Dto for
AuthorizationExceptionThe 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
Fields Modifier and Type Field Description protected java.util.List<MissingAuthorizationDto>missingAuthorizationsprotected java.lang.StringpermissionNameprotected java.lang.StringresourceIdprotected java.lang.StringresourceNameprotected java.lang.StringuserId-
Fields inherited from class org.camunda.bpm.engine.rest.dto.ExceptionDto
code, message, type
-
-
Constructor Summary
Constructors Constructor Description AuthorizationExceptionDto()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static AuthorizationExceptionDtofromException(AuthorizationException e)java.util.List<MissingAuthorizationDto>getMissingAuthorizations()java.lang.StringgetPermissionName()Deprecated.UsegetMissingAuthorizations()to get the name of the violated permission of theMissingAuthorizationDto(s).java.lang.StringgetResourceId()Deprecated.UsegetMissingAuthorizations()to get the id of the resource of theMissingAuthorizationDto(s).java.lang.StringgetResourceName()Deprecated.UsegetMissingAuthorizations()to get the name of the resource of theMissingAuthorizationDto(s).java.lang.StringgetUserId()voidsetMissingAuthorizations(java.util.List<MissingAuthorizationDto> info)voidsetPermissionName(java.lang.String permissionName)Deprecated.UsesetMissingAuthorizations(List)} to set the theMissingAuthorizationDto(s).voidsetResourceId(java.lang.String resourceId)Deprecated.UsesetMissingAuthorizations(List)} to set the theMissingAuthorizationDto(s).voidsetResourceName(java.lang.String resourceName)Deprecated.UsesetMissingAuthorizations(List)} to set the theMissingAuthorizationDto(s).voidsetUserId(java.lang.String userId)-
Methods inherited from class org.camunda.bpm.engine.rest.dto.ExceptionDto
fromException, fromException, getCode, getMessage, getType, setCode, setMessage, setType
-
-
-
-
Field Detail
-
userId
protected java.lang.String userId
-
resourceName
protected java.lang.String resourceName
-
resourceId
protected java.lang.String resourceId
-
permissionName
protected java.lang.String permissionName
-
missingAuthorizations
protected java.util.List<MissingAuthorizationDto> missingAuthorizations
-
-
Method Detail
-
fromException
public static AuthorizationExceptionDto fromException(AuthorizationException e)
-
getResourceName
@Deprecated public java.lang.String getResourceName()
Deprecated.UsegetMissingAuthorizations()to get the name of the resource of theMissingAuthorizationDto(s). This method will be removed in future version.- Returns:
- the name of the resource if there
is only one
MissingAuthorizationDto,nullotherwise
-
setResourceName
@Deprecated public void setResourceName(java.lang.String resourceName)
Deprecated.UsesetMissingAuthorizations(List)} to set the theMissingAuthorizationDto(s). This method will be removed in future version.
-
getResourceId
@Deprecated public java.lang.String getResourceId()
Deprecated.UsegetMissingAuthorizations()to get the id of the resource of theMissingAuthorizationDto(s). This method will be removed in future version.- Returns:
- the id of the resource if there
is only one
MissingAuthorizationDto,nullotherwise
-
setResourceId
@Deprecated public void setResourceId(java.lang.String resourceId)
Deprecated.UsesetMissingAuthorizations(List)} to set the theMissingAuthorizationDto(s). This method will be removed in future version.
-
getPermissionName
@Deprecated public java.lang.String getPermissionName()
Deprecated.UsegetMissingAuthorizations()to get the name of the violated permission of theMissingAuthorizationDto(s). This method will be removed in future version.- Returns:
- the name of the violated permission if there
is only one
MissingAuthorizationDto,nullotherwise
-
setPermissionName
@Deprecated public void setPermissionName(java.lang.String permissionName)
Deprecated.UsesetMissingAuthorizations(List)} to set the theMissingAuthorizationDto(s). This method will be removed in future version.
-
getUserId
public java.lang.String getUserId()
-
setUserId
public void setUserId(java.lang.String userId)
-
getMissingAuthorizations
public java.util.List<MissingAuthorizationDto> getMissingAuthorizations()
- Returns:
- Disjunctive list of
MissingAuthorizationDtofrom which a user needs to have at least one for the authorization to pass
-
setMissingAuthorizations
public void setMissingAuthorizations(java.util.List<MissingAuthorizationDto> info)
-
-