response.setEntityData(JsonDoc.listToDoc(resultList, factory.getNodeFactory())); } else { ctx.setStatus(OperationStatus.ERROR);
response.setEntityData(JsonDoc.listToDoc(resultList, factory.getNodeFactory())); } else { ctx.setStatus(OperationStatus.ERROR);
List<JsonDoc> insertedDocuments = ctx.getOutputDocumentsWithoutErrors(); if (insertedDocuments != null && !insertedDocuments.isEmpty()) { response.setEntityData(JsonDoc.listToDoc(insertedDocuments, factory.getNodeFactory())); response.setModifiedCount(insertedDocuments.size());
resultList.add(doc.getOutputDocument()); response.setEntityData(JsonDoc.listToDoc(resultList, factory.getNodeFactory()));
List<JsonDoc> updatedDocuments = ctx.getOutputDocumentsWithoutErrors(); if (updatedDocuments != null && !updatedDocuments.isEmpty()) { response.setEntityData(JsonDoc.listToDoc(updatedDocuments, factory.getNodeFactory())); response.setModifiedCount(updatedDocuments.size());
List<JsonDoc> updatedDocuments = ctx.getOutputDocumentsWithoutErrors(); if (updatedDocuments != null && !updatedDocuments.isEmpty()) { response.setEntityData(JsonDoc.listToDoc(updatedDocuments, factory.getNodeFactory()));