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 List<MissingAuthorizationDto>missingAuthorizationsprotected StringpermissionNameprotected StringresourceIdprotected StringresourceNameprotected StringuserId- 
Fields inherited from class org.camunda.bpm.engine.rest.dto.ExceptionDto
code, message, type 
 - 
 
- 
Constructor Summary
Constructors Constructor Description AuthorizationExceptionDto() 
- 
Method Summary
- 
Methods inherited from class org.camunda.bpm.engine.rest.dto.ExceptionDto
fromException, fromException, getCode, getMessage, getType, setCode, setMessage, setType 
 - 
 
 - 
 
- 
- 
Method Detail
- 
fromException
public static AuthorizationExceptionDto fromException(AuthorizationException e)
 
- 
getResourceName
@Deprecated public 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(String resourceName)
Deprecated.UsesetMissingAuthorizations(List)} to set the theMissingAuthorizationDto(s). This method will be removed in future version. 
- 
getResourceId
@Deprecated public 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(String resourceId)
Deprecated.UsesetMissingAuthorizations(List)} to set the theMissingAuthorizationDto(s). This method will be removed in future version. 
- 
getPermissionName
@Deprecated public 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(String permissionName)
Deprecated.UsesetMissingAuthorizations(List)} to set the theMissingAuthorizationDto(s). This method will be removed in future version. 
- 
getUserId
public String getUserId()
 
- 
setUserId
public void setUserId(String userId)
 
- 
getMissingAuthorizations
public 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(List<MissingAuthorizationDto> info)
 
 - 
 
 -