use of org.camunda.bpm.engine.impl.AuthorizationQueryImpl in project camunda-bpm-platform by camunda.
the class DeleteAuthorizationCmd method execute.
public Void execute(CommandContext commandContext) {
final AuthorizationManager authorizationManager = commandContext.getAuthorizationManager();
AuthorizationEntity authorization = (AuthorizationEntity) new AuthorizationQueryImpl().authorizationId(authorizationId).singleResult();
ensureNotNull("Authorization for Id '" + authorizationId + "' does not exist", "authorization", authorization);
authorizationManager.delete(authorization);
return null;
}
Aggregations