Lines Matching full:transaction
97 const std::shared_ptr<bmcweb::AsyncResp>& transaction) in introspectObjects() argument
99 if (transaction->res.jsonValue.is_null()) in introspectObjects()
101 transaction->res.jsonValue["status"] = "ok"; in introspectObjects()
102 transaction->res.jsonValue["bus_name"] = processName; in introspectObjects()
103 transaction->res.jsonValue["objects"] = nlohmann::json::array(); in introspectObjects()
107 [transaction, processName{std::string(processName)}, in introspectObjects()
121 transaction->res.jsonValue["objects"].emplace_back( in introspectObjects()
148 introspectObjects(processName, newpath, transaction); in introspectObjects()
263 const std::shared_ptr<InProgressEnumerateData>& transaction) in getManagedObjectsForEnumerate() argument
271 [transaction, objectName, in getManagedObjectsForEnumerate()
283 transaction->asyncResp->res.jsonValue["data"]; in getManagedObjectsForEnumerate()
325 connectionName, transaction); in getManagedObjectsForEnumerate()
334 const std::shared_ptr<InProgressEnumerateData>& transaction) in findObjectManagerPathForEnumerate() argument
339 [transaction, objectName, connectionName]( in findObjectManagerPathForEnumerate()
358 transaction); in findObjectManagerPathForEnumerate()
374 const std::shared_ptr<InProgressEnumerateData>& transaction) in getObjectAndEnumerate() argument
377 transaction->objectPath, {}, in getObjectAndEnumerate()
378 [transaction](const boost::system::error_code& ec, in getObjectAndEnumerate()
383 transaction->objectPath, ec); in getObjectAndEnumerate()
388 transaction->objectPath, objects.size()); in getObjectAndEnumerate()
391 transaction->subtree->emplace_back(transaction->objectPath, in getObjectAndEnumerate()
402 for (const auto& object : *(transaction->subtree)) in getObjectAndEnumerate()
429 transaction->objectPath, connection.second, in getObjectAndEnumerate()
430 connection.first, transaction); in getObjectAndEnumerate()
437 transaction->objectPath, connection.first, transaction); in getObjectAndEnumerate()
1295 const std::shared_ptr<InProgressActionData>& transaction, in handleMethodResponse() argument
1303 transaction->outputFailed = true; in handleMethodResponse()
1312 if (transaction->methodResponse.is_null()) in handleMethodResponse()
1314 transaction->methodResponse = std::move(data); in handleMethodResponse()
1326 transaction->methodResponse.get_ptr<nlohmann::json::object_t*>(); in handleMethodResponse()
1339 transaction->methodResponse.get_ptr<nlohmann::json::array_t*>(); in handleMethodResponse()
1349 if (!transaction->convertedToArray) in handleMethodResponse()
1352 nlohmann::json j = std::move(transaction->methodResponse); in handleMethodResponse()
1353 transaction->methodResponse = nlohmann::json::array(); in handleMethodResponse()
1354 transaction->methodResponse.emplace_back(std::move(j)); in handleMethodResponse()
1355 transaction->methodResponse.emplace_back(std::move(data)); in handleMethodResponse()
1356 transaction->convertedToArray = true; in handleMethodResponse()
1360 transaction->methodResponse.emplace_back(std::move(data)); in handleMethodResponse()
1365 const std::shared_ptr<InProgressActionData>& transaction, in findActionOnInterface() argument
1370 [transaction, connectionName{std::string(connectionName)}]( in findActionOnInterface()
1399 if (!transaction->interfaceName.empty() && in findActionOnInterface()
1400 (transaction->interfaceName != thisInterfaceName)) in findActionOnInterface()
1415 thisMethodName == transaction->methodName) in findActionOnInterface()
1423 transaction->path.c_str(), in findActionOnInterface()
1425 transaction->methodName.c_str()); in findActionOnInterface()
1450 auto argIt = transaction->arguments.begin(); in findActionOnInterface()
1464 if (argIt == transaction->arguments.end()) in findActionOnInterface()
1466 transaction->setErrorStatus( in findActionOnInterface()
1474 transaction->setErrorStatus( in findActionOnInterface()
1486 m, [transaction, returnType]( in findActionOnInterface()
1491 transaction->methodFailed = true; in findActionOnInterface()
1497 transaction->asyncResp->res, in findActionOnInterface()
1505 transaction->asyncResp->res, in findActionOnInterface()
1513 transaction->methodPassed = true; in findActionOnInterface()
1515 handleMethodResponse(transaction, m2, in findActionOnInterface()
1526 connectionName, transaction->path, in findActionOnInterface()
1570 auto transaction = std::make_shared<InProgressActionData>(asyncResp); in handleAction() local
1572 transaction->path = objectPath; in handleAction()
1573 transaction->methodName = methodName; in handleAction()
1574 transaction->arguments = std::move(*data); in handleAction()
1577 [transaction]( in handleAction()
1584 setErrorResponse(transaction->asyncResp->res, in handleAction()
1596 findActionOnInterface(transaction, object.first); in handleAction()
1621 auto transaction = in handleDelete() local
1623 transaction->path = objectPath; in handleDelete()
1624 transaction->methodName = "Delete"; in handleDelete()
1625 transaction->interfaceName = "xyz.openbmc_project.Object.Delete"; in handleDelete()
1630 findActionOnInterface(transaction, object.first); in handleDelete()
1672 auto transaction = std::make_shared<InProgressEnumerateData>( in handleEnumerate() local
1675 transaction->subtree = in handleEnumerate()
1682 transaction->objectPath); in handleEnumerate()
1683 setErrorResponse(transaction->asyncResp->res, in handleEnumerate()
1691 getObjectAndEnumerate(transaction); in handleEnumerate()
1881 auto transaction = std::make_shared<AsyncPutRequest>(asyncResp); in handlePut() local
1882 transaction->objectPath = objectPath; in handlePut()
1883 transaction->propertyName = destProperty; in handlePut()
1884 transaction->propertyValue = propertySetValue; in handlePut()
1887 transaction->objectPath, {}, in handlePut()
1888 [transaction](const boost::system::error_code& ec2, in handlePut()
1892 setErrorResponse(transaction->asyncResp->res, in handlePut()
1905 transaction](const boost::system::error_code& ec3, in handlePut()
1912 transaction->setErrorStatus("Unexpected Error"); in handlePut()
1924 transaction->setErrorStatus("Unexpected Error"); in handlePut()
1949 if (propertyName == transaction->propertyName) in handlePut()
1959 transaction->objectPath in handlePut()
1965 transaction->propertyName); in handlePut()
1971 transaction->setErrorStatus( in handlePut()
1977 transaction->propertyValue); in handlePut()
1982 transaction->setErrorStatus( in handlePut()
1989 transaction->setErrorStatus( in handlePut()
1998 transaction->setErrorStatus( in handlePut()
2005 [transaction]( in handlePut()
2015 transaction in handlePut()
2031 transaction->asyncResp in handlePut()
2035 transaction->asyncResp in handlePut()
2039 transaction->asyncResp in handlePut()
2054 connectionName, transaction->objectPath, in handlePut()
2460 auto transaction = std::make_shared<InProgressActionData>(asyncResp); in handleBusSystemPost() local
2462 transaction->path = objectPath; in handleBusSystemPost()
2463 transaction->methodName = methodName; in handleBusSystemPost()
2464 transaction->arguments = std::move(requestDbusData); in handleBusSystemPost()
2466 findActionOnInterface(transaction, processName); in handleBusSystemPost()