|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.camunda.bpm.engine.rest.dto.ExceptionDto
org.camunda.bpm.engine.rest.dto.AuthorizationExceptionDto
public class 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.
| Field Summary | |
|---|---|
protected List<MissingAuthorizationDto> |
missingAuthorizations
|
protected String |
permissionName
|
protected String |
resourceId
|
protected String |
resourceName
|
protected String |
userId
|
| Fields inherited from class org.camunda.bpm.engine.rest.dto.ExceptionDto |
|---|
message, type |
| Constructor Summary | |
|---|---|
AuthorizationExceptionDto()
|
|
| Method Summary | |
|---|---|
static AuthorizationExceptionDto |
fromException(AuthorizationException e)
|
List<MissingAuthorizationDto> |
getMissingAuthorizations()
|
String |
getPermissionName()
Deprecated. Use getMissingAuthorizations() to get the name of the violated permission
of the MissingAuthorizationDto(s). This method will be removed in future version. |
String |
getResourceId()
Deprecated. Use getMissingAuthorizations() to get the id of the resource
of the MissingAuthorizationDto(s). This method will be removed in future version. |
String |
getResourceName()
Deprecated. Use getMissingAuthorizations() to get the name of the resource
of the MissingAuthorizationDto(s). This method will be removed in future version. |
String |
getUserId()
|
void |
setMissingAuthorizations(List<MissingAuthorizationDto> info)
|
void |
setPermissionName(String permissionName)
Deprecated. Use setMissingAuthorizations(List)} to set the
the MissingAuthorizationDto(s). This method will be removed in future version. |
void |
setResourceId(String resourceId)
Deprecated. Use setMissingAuthorizations(List)} to set the
the MissingAuthorizationDto(s). This method will be removed in future version. |
void |
setResourceName(String resourceName)
Deprecated. Use setMissingAuthorizations(List)} to set the
the MissingAuthorizationDto(s). This method will be removed in future version. |
void |
setUserId(String userId)
|
| Methods inherited from class org.camunda.bpm.engine.rest.dto.ExceptionDto |
|---|
fromException, getMessage, getType, setMessage, setType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String userId
protected String resourceName
protected String resourceId
protected String permissionName
protected List<MissingAuthorizationDto> missingAuthorizations
| Constructor Detail |
|---|
public AuthorizationExceptionDto()
| Method Detail |
|---|
public static AuthorizationExceptionDto fromException(AuthorizationException e)
@Deprecated public String getResourceName()
getMissingAuthorizations() to get the name of the resource
of the MissingAuthorizationDto(s). This method will be removed in future version.
MissingAuthorizationDto, null otherwise@Deprecated public void setResourceName(String resourceName)
setMissingAuthorizations(List)} to set the
the MissingAuthorizationDto(s). This method will be removed in future version.
@Deprecated public String getResourceId()
getMissingAuthorizations() to get the id of the resource
of the MissingAuthorizationDto(s). This method will be removed in future version.
MissingAuthorizationDto, null otherwise@Deprecated public void setResourceId(String resourceId)
setMissingAuthorizations(List)} to set the
the MissingAuthorizationDto(s). This method will be removed in future version.
@Deprecated public String getPermissionName()
getMissingAuthorizations() to get the name of the violated permission
of the MissingAuthorizationDto(s). This method will be removed in future version.
MissingAuthorizationDto, null otherwise@Deprecated public void setPermissionName(String permissionName)
setMissingAuthorizations(List)} to set the
the MissingAuthorizationDto(s). This method will be removed in future version.
public String getUserId()
public void setUserId(String userId)
public List<MissingAuthorizationDto> getMissingAuthorizations()
MissingAuthorizationDto from
which a user needs to have at least one for the authorization to passpublic void setMissingAuthorizations(List<MissingAuthorizationDto> info)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||