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
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
Modifier and TypeFieldDescriptionprotected List<MissingAuthorizationDto>
protected String
protected String
protected String
protected String
Fields inherited from class org.camunda.bpm.engine.rest.dto.ExceptionDto
code, message, type
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic AuthorizationExceptionDto
Deprecated.Deprecated.UsegetMissingAuthorizations()
to get the id of the resource of theMissingAuthorizationDto
(s).Deprecated.UsegetMissingAuthorizations()
to get the name of the resource of theMissingAuthorizationDto
(s).void
void
setPermissionName
(String permissionName) Deprecated.UsesetMissingAuthorizations(List)
} to set the theMissingAuthorizationDto
(s).void
setResourceId
(String resourceId) Deprecated.UsesetMissingAuthorizations(List)
} to set the theMissingAuthorizationDto
(s).void
setResourceName
(String resourceName) Deprecated.UsesetMissingAuthorizations(List)
} to set the theMissingAuthorizationDto
(s).void
Methods inherited from class org.camunda.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.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
,null
otherwise
-
setResourceName
Deprecated.UsesetMissingAuthorizations(List)
} to set the theMissingAuthorizationDto
(s). This method will be removed in future version. -
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
,null
otherwise
-
setResourceId
Deprecated.UsesetMissingAuthorizations(List)
} to set the theMissingAuthorizationDto
(s). This method will be removed in future version. -
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
,null
otherwise
-
setPermissionName
Deprecated.UsesetMissingAuthorizations(List)
} to set the theMissingAuthorizationDto
(s). This method will be removed in future version. -
getUserId
-
setUserId
-
getMissingAuthorizations
- Returns:
- Disjunctive list of
MissingAuthorizationDto
from 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).