/ohos5.0/base/customization/enterprise_device_management/test/unittest/services/edm/src/ |
H A D | admin_test.cpp | 41 …std::shared_ptr<Admin> admin = std::make_shared<Admin>(abilityInfo, AdminType::ENT, entInfo, permi… 57 …std::shared_ptr<Admin> admin = std::make_shared<Admin>(abilityInfo, AdminType::ENT, entInfo, permi… 73 …std::shared_ptr<Admin> admin = std::make_shared<Admin>(abilityInfo, AdminType::ENT, entInfo, permi… 88 …std::shared_ptr<Admin> admin = std::make_shared<Admin>(abilityInfo, AdminType::ENT, entInfo, permi… 89 AdminType adminType = admin->GetAdminType(); 90 ASSERT_TRUE(adminType == AdminType::ENT); 104 AdminType adminType = admin->GetAdminType(); 105 ASSERT_TRUE(adminType == AdminType::NORMAL); 119 AdminType adminType = admin->GetAdminType(); 120 ASSERT_TRUE(adminType == AdminType::UNKNOWN); [all …]
|
H A D | admin_manager_test.cpp | 77 Admin admin(abilityInfo, AdminType::NORMAL, entInfo, permissions, false); 83 admin.adminInfo_.adminType_ = AdminType::ENT; 110 Admin edmAdmin(abilityInfo, AdminType::NORMAL, entInfo, permissions, false); 114 edmAdmin.adminInfo_.adminType_ = AdminType::ENT; 153 edmAdmin.adminInfo_.adminType_ = AdminType::ENT; 219 edmAdmin.adminInfo_.adminType_ = AdminType::ENT; 317 Admin edmAdmin(abilityInfo, AdminType::ENT, entInfo, permissions, false); 338 Admin edmAdmin(abilityInfo, AdminType::ENT, entInfo, permissions, false); 340 edmAdmin.adminInfo_.adminType_ = AdminType::NORMAL; 453 Admin edmAdmin(abilityInfo, AdminType::ENT, entInfo, permissions, false); [all …]
|
H A D | enterprise_device_mgr_ability_test.cpp | 2208 data.WriteInt32(static_cast<int>(AdminType::NORMAL)); 2233 data.WriteInt32(static_cast<int>(AdminType::NORMAL)); 2259 data.WriteInt32(static_cast<int>(AdminType::NORMAL)); 2307 data.WriteInt32(static_cast<int>(AdminType::ENT)); 2333 data.WriteInt32(static_cast<int>(AdminType::NORMAL)); 2362 data.WriteInt32(static_cast<int>(AdminType::ENT)); 2392 data.WriteInt32(static_cast<int>(AdminType::ENT)); 2431 data.WriteInt32(static_cast<int>(AdminType::ENT)); 2462 data.WriteInt32(static_cast<int>(AdminType::ENT)); 2485 data.WriteInt32(static_cast<int>(AdminType::NORMAL)); [all …]
|
H A D | permission_manager_test.cpp | 69 …PermissionManager::GetInstance()->GetAdminGrantedPermission(permission, AdminType::NORMAL, reqPerm… 85 …PermissionManager::GetInstance()->GetAdminGrantedPermission(permission, AdminType::NORMAL, reqPerm… 87 …PermissionManager::GetInstance()->GetAdminGrantedPermission(permission, AdminType::ENT, reqPermiss…
|
/ohos5.0/base/customization/enterprise_device_management/services/edm/src/ |
H A D | admin_manager.cpp | 159 …if (getAdmin->GetAdminType() == AdminType::NORMAL && adminItem.GetAdminType() != AdminType::NORMAL… in UpdateAdmin() 160 adminItem.GetAdminType() != AdminType::ENT) { in UpdateAdmin() 195 if (admin->adminInfo_.adminType_ == AdminType::ENT) { in IsSuperAdmin() 214 return superAdmin->adminInfo_.adminType_ == AdminType::ENT || in IsSuperOrSubSuperAdmin() 215 superAdmin->adminInfo_.adminType_ == AdminType::SUB_SUPER_ADMIN; in IsSuperOrSubSuperAdmin() 232 if (static_cast<int32_t>(role) >= static_cast<int32_t>(AdminType::UNKNOWN) || in GetEnabledAdmin() 233 static_cast<int32_t>(role) < static_cast<int32_t>(AdminType::NORMAL)) { in GetEnabledAdmin() 256 …admin->GetAdminType() == AdminType::SUB_SUPER_ADMIN || admin->GetAdminType() == AdminType::VIRTUAL… in GetSubOrSuperAdminByPkgName() 277 if ((admin->GetAdminType() == AdminType::SUB_SUPER_ADMIN || in GetSubSuperAdminsByParentName() 278 admin->GetAdminType() == AdminType::VIRTUAL_ADMIN) && in GetSubSuperAdminsByParentName() [all …]
|
H A D | permission_manager.cpp | 41 permissions_.insert(std::make_pair(permission, static_cast<AdminType>(permissionType))); in AddPermission() 44 } else if (entry->second != static_cast<AdminType>(permissionType)) { in AddPermission() 54 …anager::GetAdminGrantedPermission(const std::vector<std::string> &permissions, AdminType adminType, in GetAdminGrantedPermission() 63 if (adminType == AdminType::NORMAL && entry->second == AdminType::ENT) { in GetAdminGrantedPermission()
|
H A D | enterprise_device_mgr_ability.cpp | 221 …if ((subAdmin->GetAdminType() == AdminType::SUB_SUPER_ADMIN || subAdmin->GetAdminType() == AdminTy… in OnCommonEventUserRemoved() 222 subAdmin->GetAdminType() == AdminType::VIRTUAL_ADMIN) && in OnCommonEventUserRemoved() 254 if (admin->adminInfo_.adminType_ == AdminType::NORMAL) { in OnCommonEventPackageRemoved() 339 GetEnabledAdmin(AdminType::NORMAL, enabledAdminList); in Dump() 706 if (type == AdminType::ENT && userId != DEFAULT_USER_ID) { in VerifyEnableAdminCondition() 723 …if (existAdmin->GetAdminType() == AdminType::ENT && (type != AdminType::ENT || userId != DEFAULT_U… in VerifyEnableAdminCondition() 932 AdminType adminType = isSDA ? AdminType::ENT : AdminType::NORMAL; in DisableAdmin() 1246 case AdminType::NORMAL: in GetEnabledAdmin() 1250 case AdminType::ENT: in GetEnabledAdmin() 1253 case AdminType::UNKNOWN: in GetEnabledAdmin() [all …]
|
H A D | admin.cpp | 24 Admin::Admin(const AppExecFwk::ExtensionAbilityInfo &abilityInfo, AdminType type, const EntInfo &en… in Admin() 35 Admin::Admin(const std::string &bundleName, AdminType type, const std::vector<std::string> &permiss… in Admin() 59 AdminType Admin::GetAdminType() const in GetAdminType()
|
H A D | enterprise_device_mgr_stub.cpp | 170 AdminType adminType = AdminType::UNKNOWN; in EnableAdminInner() 171 …if (type != static_cast<int32_t>(AdminType::NORMAL) && type != static_cast<int32_t>(AdminType::ENT… in EnableAdminInner() 176 adminType = static_cast<AdminType>(type); in EnableAdminInner() 229 int32_t type = static_cast<int32_t>(AdminType::UNKNOWN); in GetEnabledAdminInner() 236 ErrCode res = GetEnabledAdmin((AdminType)type, enabledAdminList); in GetEnabledAdminInner()
|
/ohos5.0/base/customization/enterprise_device_management/services/edm/include/ |
H A D | admin.h | 39 AdminType adminType_ = AdminType::UNKNOWN; 46 … Admin(const AppExecFwk::ExtensionAbilityInfo &abilityInfo, AdminType type, const EntInfo &entInfo, 48 … Admin(const std::string &bundleName, AdminType type, const std::vector<std::string> &permissions); 52 virtual AdminType GetAdminType() const;
|
H A D | permission_manager.h | 34 void GetAdminGrantedPermission(const std::vector<std::string> &permissions, AdminType adminType, 38 std::map<std::string, AdminType> permissions_;
|
H A D | enterprise_device_mgr_ability.h | 46 …ErrCode EnableAdmin(AppExecFwk::ElementName &admin, EntInfo &entInfo, AdminType type, int32_t user… 52 ErrCode GetEnabledAdmin(AdminType type, std::vector<std::string> &enabledAdminList) override; 97 …ErrCode GetAllPermissionsByAdmin(const std::string &bundleInfoName, AdminType adminType, int32_t u… 102 …ErrCode VerifyEnableAdminCondition(AppExecFwk::ElementName &admin, AdminType type, int32_t userId,… 144 ErrCode DoDisableAdmin(const std::string &bundleName, int32_t userId, AdminType adminType);
|
/ohos5.0/base/customization/enterprise_device_management/test/unittest/common/ |
H A D | edm_permission_test.cpp | 45 permission1.setAdminType(AdminType::NORMAL); 47 permission2.setAdminType(AdminType::NORMAL); 61 EdmPermission permission1("ohos.permission.EDM_TEST_PERMISSION", AdminType::NORMAL);
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.2-beta2/ |
H A D | js-apidiff-global.md | 14 …AdminType, callback: AsyncCallback\<boolean>): void;<br>enableAdmin(admin: Want, enterpriseInfo: E… 32 …nfo, type: AdminType, callback: AsyncCallback\<boolean>): void;<br>activateAdmin(admin: Want, ente…
|
/ohos5.0/docs/en/release-notes/api-diff/v3.2-beta2/ |
H A D | js-apidiff-global.md | 14 …AdminType, callback: AsyncCallback\<boolean>): void;<br>enableAdmin(admin: Want, enterpriseInfo: E… 32 …nfo, type: AdminType, callback: AsyncCallback\<boolean>): void;<br>activateAdmin(admin: Want, ente…
|
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_3.2.8.3/ |
H A D | changelogs-enterprise_device_management.md | 101 …nction** enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, callback: Async… 102 …nction** enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, userId: number,… 103 …nction** enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, userId?: number… 123 | @ohos.enterprise.adminManager | adminManager | **enum** AdminType | systemapi | 140 …nction** enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, callback: Async… 141 …nction** enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, userId: number,… 142 …nction** enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, userId?: number…
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.2-beta1/ |
H A D | js-apidiff-global.md | 17 …nfo, type: AdminType, callback: AsyncCallback\<boolean>): void;<br>activateAdmin(admin: Want, ente… 18 | ohos.enterpriseDeviceManager | AdminType | ADMIN_TYPE_SUPER = 0x01 | 新增 | 19 | ohos.enterpriseDeviceManager | AdminType | ADMIN_TYPE_NORMAL = 0x00 | 新增 |
|
/ohos5.0/docs/en/release-notes/api-diff/v3.2-beta1/ |
H A D | js-apidiff-global.md | 17 …nfo, type: AdminType, callback: AsyncCallback\<boolean>): void;<br>activateAdmin(admin: Want, ente… 18 | ohos.enterpriseDeviceManager | AdminType | ADMIN_TYPE_SUPER = 0x01 | Added| 19 | ohos.enterpriseDeviceManager | AdminType | ADMIN_TYPE_NORMAL = 0x00 | Added|
|
/ohos5.0/base/customization/enterprise_device_management/interfaces/inner_api/common/include/ |
H A D | enterprise_device_mgr_proxy.h | 43 …ErrCode EnableAdmin(AppExecFwk::ElementName &admin, EntInfo &entInfo, AdminType type, int32_t user… 46 ErrCode GetEnabledAdmin(AdminType type, std::vector<std::string> &enabledAdminList); 81 void GetEnabledAdmins(AdminType type, std::vector<std::string> &enabledAdminList);
|
H A D | ienterprise_device_mgr.h | 35 …virtual ErrCode EnableAdmin(AppExecFwk::ElementName &admin, EntInfo &entInfo, AdminType type, int3… 41 virtual ErrCode GetEnabledAdmin(AdminType type, std::vector<std::string> &enabledAdminList) = 0;
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.2-Release/ |
H A D | js-apidiff-customization.md | 3 …function enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, callback: Async… 4 …function enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, userId: number,… 5 …function enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, userId?: number… 26 |新增|NA|类名:AdminType;<br>方法or属性:ADMIN_TYPE_NORMAL = 0x00|@ohos.enterprise.adminManager.d.ts| 27 |新增|NA|类名:AdminType;<br>方法or属性:ADMIN_TYPE_SUPER = 0x01|@ohos.enterprise.adminManager.d.ts|
|
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_3.2.8.3/ |
H A D | changelogs-enterprise_device_management.md | 101 …nction** enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, callback: Async… 102 …nction** enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, userId: number,… 103 …nction** enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, userId?: number… 123 | @ohos.enterprise.adminManager | adminManager | **enum** AdminType | Changed to a sy… 140 …nction** enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, callback: Async… 141 …nction** enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, userId: number,… 142 …nction** enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, userId?: number…
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.2-beta4/ |
H A D | js-apidiff-customization.md | 7 |新增|NA|模块名: ohos.enterprise.adminManager<br>类名: AdminType|@ohos.enterprise.adminManager.d.ts| 8 |新增|NA|模块名: ohos.enterprise.adminManager<br>类名: AdminType<br>方法名 or 属性名: ADMIN_TYPE_NORMAL|@ohos.en… 9 |新增|NA|模块名: ohos.enterprise.adminManager<br>类名: AdminType<br>方法名 or 属性名: ADMIN_TYPE_SUPER|@ohos.ent… 49 |删除|模块名: ohos.enterpriseDeviceManager<br>类名: AdminType|NA|@ohos.enterpriseDeviceManager.d.ts| 50 |删除|模块名: ohos.enterpriseDeviceManager<br>类名: AdminType<br>方法名 or 属性名: ADMIN_TYPE_NORMAL|NA|@ohos.en… 51 |删除|模块名: ohos.enterpriseDeviceManager<br>类名: AdminType<br>方法名 or 属性名: ADMIN_TYPE_SUPER|NA|@ohos.ent…
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/monthly-202211/ |
H A D | js-apidiff-customization.md | 7 |新增|NA|模块名: ohos.enterprise.adminManager<br>类名: AdminType|@ohos.enterprise.adminManager.d.ts| 8 |新增|NA|模块名: ohos.enterprise.adminManager<br>类名: AdminType<br>方法名 or 属性名: ADMIN_TYPE_NORMAL|@ohos.en… 9 |新增|NA|模块名: ohos.enterprise.adminManager<br>类名: AdminType<br>方法名 or 属性名: ADMIN_TYPE_SUPER|@ohos.ent… 51 |删除|模块名: ohos.enterpriseDeviceManager<br>类名: AdminType|NA|@ohos.enterpriseDeviceManager.d.ts| 52 |删除|模块名: ohos.enterpriseDeviceManager<br>类名: AdminType<br>方法名 or 属性名: ADMIN_TYPE_NORMAL|NA|@ohos.en… 53 |删除|模块名: ohos.enterpriseDeviceManager<br>类名: AdminType<br>方法名 or 属性名: ADMIN_TYPE_SUPER|NA|@ohos.ent…
|
/ohos5.0/docs/en/release-notes/api-diff/v3.2-Release/ |
H A D | js-apidiff-customization.md | 3 …function enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, callback: Async… 4 …function enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, userId: number,… 5 …function enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, userId?: number… 26 |Added|NA|Class name: AdminType;<br>Method or attribute name: ADMIN_TYPE_NORMAL = 0x00|@ohos.enterp… 27 |Added|NA|Class name: AdminType;<br>Method or attribute name: ADMIN_TYPE_SUPER = 0x01|@ohos.enterpr…
|