Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
actionparams.push_back(param);
}
action.Setparameters(actionparams);
-
- // action.Seturi();
- // action.Setmime();
- // action.Setoperation();
- // action.Setparameters();
- // action.Setresults();
- // action.Setprivileges();
+ action.Setprivileges(model.GetPrivileges());
return action;
}
// ActionParameterType -> another class???
returns_.emplace_back(name, type, "", description, false);
}
+
+ for (auto const& it : root["required-privileges"])
+ privileges_.push_back(it.asString());
} catch (const Json::Exception& e) {
// TODO: how to handle invalid json case?
LOG(ERROR) << "Failed to parse json string: " << e.what();