public Collection<QualityGateDto> list() {
return dao.selectAll();
}
public void delete(long idToDelete) {
checkPermission(UserSession.get());
<BUG>QualityGateDto qGate = getNonNull(idToDelete);
</BUG>
if (isDefault(qGate)) {
throw new BadRequestException("Impossible to delete default quality gate.");
}

public Collection<QualityGateDto> list() {
return dao.selectAll();
}
public void delete(long idToDelete) {
checkPermission(UserSession.get());
QualityGateDto qGate = getNonNullQgate(idToDelete);
if (isDefault(qGate)) {
throw new BadRequestException("Impossible to delete default quality gate.");
}
