Home
last modified time | relevance | path

Searched refs:policyName (Results 1 – 11 of 11) sorted by relevance

/base/customization/enterprise_device_management/services/edm/src/
Dpolicy_manager.cpp38 ErrCode PolicyManager::GetAdminByPolicyName(const std::string &policyName, AdminValueItemsMap &admi… in GetAdminByPolicyName() argument
40 auto iter = policyAdmins_.find(policyName); in GetAdminByPolicyName()
58 ErrCode PolicyManager::GetAdminPolicy(const std::string &adminName, const std::string &policyName, in GetAdminPolicy() argument
64 auto it = policyItem.find(policyName); in GetAdminPolicy()
73 ErrCode PolicyManager::GetCombinedPolicy(const std::string &policyName, std::string &policyValue) in GetCombinedPolicy() argument
75 auto it = combinedPolicies_.find(policyName); in GetCombinedPolicy()
83 ErrCode PolicyManager::GetPolicy(const std::string &adminName, const std::string &policyName, in GetPolicy() argument
87 return GetCombinedPolicy(policyName, policyValue); in GetPolicy()
89 return GetAdminPolicy(adminName, policyName, policyValue); in GetPolicy()
93 void PolicyManager::SetAdminList(const std::string &adminName, const std::string &policyName, in SetAdminList() argument
[all …]
Ddevice_policies_storage_rdb.cpp78 const std::string &policyName, const std::string &policyValue) in InsertAdminPolicy() argument
90 valuesBucket.PutString(EdmRdbFiledConst::FILED_POLICY_NAME, policyName); in InsertAdminPolicy()
96 const std::string &policyName, const std::string &policyValue) in UpdateAdminPolicy() argument
110 predicates.EqualTo(EdmRdbFiledConst::FILED_POLICY_NAME, policyName); in UpdateAdminPolicy()
115 const std::string &policyName) in DeleteAdminPolicy() argument
127 predicates.EqualTo(EdmRdbFiledConst::FILED_POLICY_NAME, policyName); in DeleteAdminPolicy()
151 std::string policyName; in QueryAdminPolicy() local
154 resultSet->GetString(EdmRdbFiledConst::FILED_COLUMN_INDEX_THREE, policyName); in QueryAdminPolicy()
156 PraseAdminPolicies(adminName, policyName, policyValue, adminPolicies); in QueryAdminPolicy()
157 PrasePolicyAdmins(adminName, policyName, policyValue, policyAdmins); in QueryAdminPolicy()
[all …]
Denterprise_device_mgr_ability.cpp539 …priseDeviceMgrAbility::RemoveAdminItem(const std::string &adminName, const std::string &policyName, in RemoveAdminItem() argument
543 std::shared_ptr<IPlugin> plugin = pluginMgr_->GetPluginByPolicyName(policyName); in RemoveAdminItem()
545 EDMLOGW("RemoveAdminItem: Get plugin by policy failed: %{public}s\n", policyName.c_str()); in RemoveAdminItem()
556 policyName.c_str(), ret); in RemoveAdminItem()
561 ret = policyMgr_->GetAdminByPolicyName(policyName, adminListMap); in RemoveAdminItem()
563 setRet = policyMgr_->SetPolicy("", policyName, "", ""); in RemoveAdminItem()
565 setRet = policyMgr_->SetPolicy(adminName, policyName, "", mergedPolicyData); in RemoveAdminItem()
570 adminName.c_str(), policyName.c_str(), ret); in RemoveAdminItem()
786 std::string policyName = plugin->GetPolicyName(); in UpdateDevicePolicy() local
788 policyMgr_->GetPolicy(admin.GetBundleName(), policyName, policyValue); in UpdateDevicePolicy()
[all …]
Dplugin_manager.cpp82 std::shared_ptr<IPlugin> PluginManager::GetPluginByPolicyName(const std::string &policyName) in GetPluginByPolicyName() argument
84 auto it = pluginsName_.find(policyName); in GetPluginByPolicyName()
/base/customization/enterprise_device_management/services/edm/include/
Dpolicy_manager.h63 …ErrCode GetPolicy(const std::string &adminName, const std::string &policyName, std::string &policy…
78 …ErrCode SetPolicy(const std::string &adminName, const std::string &policyName, const std::string &…
89 … ErrCode GetAdminByPolicyName(const std::string &policyName, AdminValueItemsMap &adminValueItems);
117 ErrCode DeleteAdminPolicy(const std::string &adminName, const std::string &policyName);
118 ErrCode DeleteCombinedPolicy(const std::string &policyName);
119 …ErrCode GetAdminPolicy(const std::string &adminName, const std::string &policyName, std::string &p…
120 ErrCode GetCombinedPolicy(const std::string &policyName, std::string &policyValue);
121 …ErrCode SetAdminPolicy(const std::string &adminName, const std::string &policyName, const std::str…
122 ErrCode SetCombinedPolicy(const std::string &policyName, const std::string &policyValue);
123 void DeleteAdminList(const std::string &adminName, const std::string &policyName);
[all …]
Ddevice_policies_storage_rdb.h32 …bool InsertAdminPolicy(int32_t userId, const std::string &adminName, const std::string &policyName,
34 …bool UpdateAdminPolicy(int32_t userId, const std::string &adminName, const std::string &policyName,
36 …ool DeleteAdminPolicy(int32_t userId, const std::string &adminName, const std::string &policyName);
39 …bool InsertCombinedPolicy(int32_t userId, const std::string &policyName, const std::string &policy…
40 …bool UpdateCombinedPolicy(int32_t userId, const std::string &policyName, const std::string &policy…
41 bool DeleteCombinedPolicy(int32_t userId, const std::string &policyName);
47 …void PraseAdminPolicies(const std::string &adminName, const std::string &policyName, const std::st…
49 …void PrasePolicyAdmins(const std::string &adminName, const std::string &policyName, const std::str…
Dplugin_manager.h30 std::shared_ptr<IPlugin> GetPluginByPolicyName(const std::string &policyName);
Denterprise_device_mgr_ability.h78 …ErrCode RemoveAdminItem(const std::string &adminName, const std::string &policyName, const std::st…
/base/customization/enterprise_device_management/test/unittest/include/
Diplugin_mock.h49 void MockSetPolicyName(std::string policyName) in MockSetPolicyName() argument
51 policyName_ = policyName; in MockSetPolicyName()
/base/customization/enterprise_device_management/interfaces/inner_api/plugin_kits/include/
Dipolicy_manager.h30 …virtual ErrCode GetAdminByPolicyName(const std::string &policyName, AdminValueItemsMap &adminValue… in GetAdminByPolicyName() argument
Diplugin_template.h213 …void InitAttribute(uint32_t policyCode, const std::string &policyName, const std::string &permissi…
216 …void InitAttribute(uint32_t policyCode, const std::string &policyName, bool needSave = true, bool …
802 uint32_t policyCode, const std::string &policyName, const std::string &permission, in InitAttribute() argument
806 policyName_ = policyName; in InitAttribute()
815 uint32_t policyCode, const std::string &policyName, bool needSave, bool global) in InitAttribute() argument
818 policyName_ = policyName; in InitAttribute()