namespace SecurityManager {
-typedef std::vector<std::string> TPrivilegesList;
-
enum class QueryType {
EGetPkgPrivileges,
EAddApplication,
* @exception DB::SqlConnection::Exception::InternalError on internal error
*/
void GetPkgPrivileges(const std::string &pkgId,
- TPrivilegesList ¤tPrivilege);
+ std::vector<std::string> ¤tPrivilege);
/**
* Add an application into the database
* @exception DB::SqlConnection::Exception::InternalError on internal error
*/
void UpdateAppPrivileges(const std::string &appId,
- const TPrivilegesList &privileges);
+ const std::vector<std::string> &privileges);
};
}
void PrivilegeDb::GetPkgPrivileges(const std::string &pkgId,
- TPrivilegesList ¤tPrivileges)
+ std::vector<std::string> ¤tPrivileges)
{
try_catch<void>([&] {
DB::SqlConnection::DataCommandAutoPtr command =
}
void PrivilegeDb::UpdateAppPrivileges(const std::string &appId,
- const TPrivilegesList &privileges)
+ const std::vector<std::string> &privileges)
{
try_catch<void>([&] {
DB::SqlConnection::DataCommandAutoPtr command =