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
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
Fields Modifier and Type Field Description protected java.util.List<MissingAuthorizationDto>
missingAuthorizations
protected java.lang.String
permissionName
protected java.lang.String
resourceId
protected java.lang.String
resourceName
protected java.lang.String
userId
-
Fields inherited from class org.camunda.bpm.engine.rest.dto.ExceptionDto
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 AuthorizationExceptionDto
fromException(AuthorizationException e)
java.util.List<MissingAuthorizationDto>
getMissingAuthorizations()
java.lang.String
getPermissionName()
Deprecated.UsegetMissingAuthorizations()
to get the name of the violated permission of theMissingAuthorizationDto
(s).java.lang.String
getResourceId()
Deprecated.UsegetMissingAuthorizations()
to get the id of the resource of theMissingAuthorizationDto
(s).java.lang.String
getResourceName()
Deprecated.UsegetMissingAuthorizations()
to get the name of the resource of theMissingAuthorizationDto
(s).java.lang.String
getUserId()
void
setMissingAuthorizations(java.util.List<MissingAuthorizationDto> info)
void
setPermissionName(java.lang.String permissionName)
Deprecated.UsesetMissingAuthorizations(List)
} to set the theMissingAuthorizationDto
(s).void
setResourceId(java.lang.String resourceId)
Deprecated.UsesetMissingAuthorizations(List)
} to set the theMissingAuthorizationDto
(s).void
setResourceName(java.lang.String resourceName)
Deprecated.UsesetMissingAuthorizations(List)
} to set the theMissingAuthorizationDto
(s).void
setUserId(java.lang.String userId)
-
Methods inherited from class org.camunda.bpm.engine.rest.dto.ExceptionDto
fromException, fromException, getMessage, getType, 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
,null
otherwise
-
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
,null
otherwise
-
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
,null
otherwise
-
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
MissingAuthorizationDto
from which a user needs to have at least one for the authorization to pass
-
setMissingAuthorizations
public void setMissingAuthorizations(java.util.List<MissingAuthorizationDto> info)
-
-