Lines Matching full:transaction
102 const std::shared_ptr<bmcweb::AsyncResp>& transaction) in introspectObjects() argument
104 if (transaction->res.jsonValue.is_null()) in introspectObjects()
106 transaction->res.jsonValue["status"] = "ok"; in introspectObjects()
107 transaction->res.jsonValue["bus_name"] = processName; in introspectObjects()
108 transaction->res.jsonValue["objects"] = nlohmann::json::array(); in introspectObjects()
112 [transaction, processName{std::string(processName)}, in introspectObjects()
126 transaction->res.jsonValue["objects"].emplace_back( in introspectObjects()
153 introspectObjects(processName, newpath, transaction); in introspectObjects()
268 const std::shared_ptr<InProgressEnumerateData>& transaction) in getManagedObjectsForEnumerate() argument
276 [transaction, objectName, in getManagedObjectsForEnumerate()
288 transaction->asyncResp->res.jsonValue["data"]; in getManagedObjectsForEnumerate()
330 connectionName, transaction); in getManagedObjectsForEnumerate()
339 const std::shared_ptr<InProgressEnumerateData>& transaction) in findObjectManagerPathForEnumerate() argument
344 [transaction, objectName, connectionName]( in findObjectManagerPathForEnumerate()
363 transaction); in findObjectManagerPathForEnumerate()
379 const std::shared_ptr<InProgressEnumerateData>& transaction) in getObjectAndEnumerate() argument
382 transaction->objectPath, {}, in getObjectAndEnumerate()
383 [transaction](const boost::system::error_code& ec, in getObjectAndEnumerate()
388 transaction->objectPath, ec); in getObjectAndEnumerate()
393 transaction->objectPath, objects.size()); in getObjectAndEnumerate()
396 transaction->subtree->emplace_back(transaction->objectPath, in getObjectAndEnumerate()
407 for (const auto& object : *(transaction->subtree)) in getObjectAndEnumerate()
434 transaction->objectPath, connection.second, in getObjectAndEnumerate()
435 connection.first, transaction); in getObjectAndEnumerate()
442 transaction->objectPath, connection.first, transaction); in getObjectAndEnumerate()
1300 const std::shared_ptr<InProgressActionData>& transaction, in handleMethodResponse() argument
1308 transaction->outputFailed = true; in handleMethodResponse()
1317 if (transaction->methodResponse.is_null()) in handleMethodResponse()
1319 transaction->methodResponse = std::move(data); in handleMethodResponse()
1329 if (transaction->methodResponse.is_object() && dataobj != nullptr) in handleMethodResponse()
1334 transaction->methodResponse.emplace(obj.first, in handleMethodResponse()
1341 if (transaction->methodResponse.is_array() && dataarr != nullptr) in handleMethodResponse()
1345 transaction->methodResponse.emplace_back(std::move(obj)); in handleMethodResponse()
1350 if (!transaction->convertedToArray) in handleMethodResponse()
1353 nlohmann::json j = std::move(transaction->methodResponse); in handleMethodResponse()
1354 transaction->methodResponse = nlohmann::json::array(); in handleMethodResponse()
1355 transaction->methodResponse.emplace_back(std::move(j)); in handleMethodResponse()
1356 transaction->methodResponse.emplace_back(std::move(data)); in handleMethodResponse()
1357 transaction->convertedToArray = true; in handleMethodResponse()
1361 transaction->methodResponse.emplace_back(std::move(data)); in handleMethodResponse()
1366 const std::shared_ptr<InProgressActionData>& transaction, in findActionOnInterface() argument
1371 [transaction, connectionName{std::string(connectionName)}]( in findActionOnInterface()
1400 if (!transaction->interfaceName.empty() && in findActionOnInterface()
1401 (transaction->interfaceName != thisInterfaceName)) in findActionOnInterface()
1416 thisMethodName == transaction->methodName) in findActionOnInterface()
1424 transaction->path.c_str(), in findActionOnInterface()
1426 transaction->methodName.c_str()); in findActionOnInterface()
1451 auto argIt = transaction->arguments.begin(); in findActionOnInterface()
1465 if (argIt == transaction->arguments.end()) in findActionOnInterface()
1467 transaction->setErrorStatus( in findActionOnInterface()
1475 transaction->setErrorStatus( in findActionOnInterface()
1487 m, [transaction, returnType]( in findActionOnInterface()
1492 transaction->methodFailed = true; in findActionOnInterface()
1498 transaction->asyncResp->res, in findActionOnInterface()
1506 transaction->asyncResp->res, in findActionOnInterface()
1514 transaction->methodPassed = true; in findActionOnInterface()
1516 handleMethodResponse(transaction, m2, in findActionOnInterface()
1527 connectionName, transaction->path, in findActionOnInterface()
1571 auto transaction = std::make_shared<InProgressActionData>(asyncResp); in handleAction() local
1573 transaction->path = objectPath; in handleAction()
1574 transaction->methodName = methodName; in handleAction()
1575 transaction->arguments = std::move(*data); in handleAction()
1578 [transaction]( in handleAction()
1585 setErrorResponse(transaction->asyncResp->res, in handleAction()
1597 findActionOnInterface(transaction, object.first); in handleAction()
1622 auto transaction = in handleDelete() local
1624 transaction->path = objectPath; in handleDelete()
1625 transaction->methodName = "Delete"; in handleDelete()
1626 transaction->interfaceName = "xyz.openbmc_project.Object.Delete"; in handleDelete()
1631 findActionOnInterface(transaction, object.first); in handleDelete()
1673 auto transaction = std::make_shared<InProgressEnumerateData>( in handleEnumerate() local
1676 transaction->subtree = in handleEnumerate()
1683 transaction->objectPath); in handleEnumerate()
1684 setErrorResponse(transaction->asyncResp->res, in handleEnumerate()
1692 getObjectAndEnumerate(transaction); in handleEnumerate()
1882 auto transaction = std::make_shared<AsyncPutRequest>(asyncResp); in handlePut() local
1883 transaction->objectPath = objectPath; in handlePut()
1884 transaction->propertyName = destProperty; in handlePut()
1885 transaction->propertyValue = propertySetValue; in handlePut()
1888 transaction->objectPath, {}, in handlePut()
1889 [transaction](const boost::system::error_code& ec2, in handlePut()
1893 setErrorResponse(transaction->asyncResp->res, in handlePut()
1906 transaction](const boost::system::error_code& ec3, in handlePut()
1913 transaction->setErrorStatus("Unexpected Error"); in handlePut()
1925 transaction->setErrorStatus("Unexpected Error"); in handlePut()
1950 if (propertyName == transaction->propertyName) in handlePut()
1960 transaction->objectPath in handlePut()
1966 transaction->propertyName); in handlePut()
1972 transaction->setErrorStatus( in handlePut()
1978 transaction->propertyValue); in handlePut()
1983 transaction->setErrorStatus( in handlePut()
1990 transaction->setErrorStatus( in handlePut()
1999 transaction->setErrorStatus( in handlePut()
2006 [transaction]( in handlePut()
2016 transaction in handlePut()
2032 transaction->asyncResp in handlePut()
2036 transaction->asyncResp in handlePut()
2040 transaction->asyncResp in handlePut()
2055 connectionName, transaction->objectPath, in handlePut()
2461 auto transaction = std::make_shared<InProgressActionData>(asyncResp); in handleBusSystemPost() local
2463 transaction->path = objectPath; in handleBusSystemPost()
2464 transaction->methodName = methodName; in handleBusSystemPost()
2465 transaction->arguments = std::move(requestDbusData); in handleBusSystemPost()
2467 findActionOnInterface(transaction, processName); in handleBusSystemPost()