Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
cb8acbf4
D
Docs
项目概览
OpenHarmony
/
Docs
1 年多 前同步成功
通知
159
Star
292
Fork
28
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
Docs
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
cb8acbf4
编写于
12月 06, 2022
作者:
O
openharmony_ci
提交者:
Gitee
12月 06, 2022
浏览文件
操作
浏览文件
下载
差异文件
!12139 【EDM】接口一致性问题整改
Merge pull request !12139 from 李兀立/master
上级
909b5202
b62f39c6
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
35 addition
and
35 deletion
+35
-35
zh-cn/application-dev/reference/apis/js-apis-EnterpriseAdminExtensionAbility.md
...reference/apis/js-apis-EnterpriseAdminExtensionAbility.md
+4
-0
zh-cn/application-dev/reference/apis/js-apis-enterprise-adminManager.md
...ion-dev/reference/apis/js-apis-enterprise-adminManager.md
+27
-31
zh-cn/application-dev/reference/apis/js-apis-enterprise-dateTimeManager.md
...-dev/reference/apis/js-apis-enterprise-dateTimeManager.md
+4
-4
未找到文件。
zh-cn/application-dev/reference/apis/js-apis-EnterpriseAdminExtensionAbility.md
浏览文件 @
cb8acbf4
...
...
@@ -24,6 +24,8 @@ onAdminEnabled(): void
**系统能力**
:SystemCapability.Customization.EnterpriseDeviceManager
**系统API**
: 此接口为系统接口。
**示例:**
```
ts
...
...
@@ -41,6 +43,8 @@ onAdminDisabled(): void
**系统能力**
:SystemCapability.Customization.EnterpriseDeviceManager
**系统API**
: 此接口为系统接口。
**示例:**
```
ts
...
...
zh-cn/application-dev/reference/apis/js-apis-enterprise-adminManager.md
浏览文件 @
cb8acbf4
...
...
@@ -39,9 +39,9 @@ enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, callba
| 错误码ID | 错误信息 |
| ------- | --------------------------------------------------------------- |
| 9200003 |
T
he administrator ability component is invalid. |
| 9200004 |
Failed to activate the administrator application of the device.
|
| 9200007 |
T
he system ability work abnormally. |
| 9200003 |
t
he administrator ability component is invalid. |
| 9200004 |
failed to enable the administrator application of the device.
|
| 9200007 |
t
he system ability work abnormally. |
**示例**
:
...
...
@@ -91,9 +91,9 @@ enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, userId
| 错误码ID | 错误信息 |
| ------- | --------------------------------------------------------------- |
| 9200003 |
T
he administrator ability component is invalid. |
| 9200004 |
Failed to activate the administrator application of the device.
|
| 9200007 |
T
he system ability work abnormally. |
| 9200003 |
t
he administrator ability component is invalid. |
| 9200004 |
failed to enable the administrator application of the device.
|
| 9200007 |
t
he system ability work abnormally. |
**示例**
:
...
...
@@ -148,9 +148,9 @@ enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, userId
| 错误码ID | 错误信息 |
| ------- | --------------------------------------------------------------- |
| 9200003 |
T
he administrator ability component is invalid. |
| 9200004 |
Failed to activate the administrator application of the device.
|
| 9200007 |
T
he system ability work abnormally. |
| 9200003 |
t
he administrator ability component is invalid. |
| 9200004 |
failed to enable the administrator application of the device.
|
| 9200007 |
t
he system ability work abnormally. |
**示例**
:
...
...
@@ -194,7 +194,7 @@ disableAdmin(admin: Want, callback: AsyncCallback\<void>): void
| 错误码ID | 错误信息 |
| ------- | ----------------------------------------------------------------- |
| 9200005 |
Failed to deactivate the administrator application of the device.
|
| 9200005 |
failed to disable the administrator application of the device.
|
**示例**
:
...
...
@@ -238,7 +238,7 @@ disableAdmin(admin: Want, userId: number, callback: AsyncCallback\<void>): void
| 错误码ID | 错误信息 |
| ------- | ----------------------------------------------------------------- |
| 9200005 |
Failed to deactivate the administrator application of the device.
|
| 9200005 |
failed to disable the administrator application of the device.
|
**示例**
:
...
...
@@ -287,7 +287,7 @@ disableAdmin(admin: Want, userId?: number): Promise\<void>
| 错误码ID | 错误信息 |
| ------- | ----------------------------------------------------------------- |
| 9200005 |
Failed to deactivate the administrator application of the device.
|
| 9200005 |
failed to disable the administrator application of the device.
|
**示例**
:
...
...
@@ -326,7 +326,7 @@ disableSuperAdmin(bundleName: String, callback: AsyncCallback\<void>): void
| 错误码ID | 错误信息 |
| ------- | ----------------------------------------------------------------- |
| 9200005 |
Failed to deactivate the administrator application of the device.
|
| 9200005 |
failed to disable the administrator application of the device.
|
**示例**
:
...
...
@@ -371,7 +371,7 @@ disableSuperAdmin(bundleName: String): Promise\<void>
| 错误码ID | 错误信息 |
| ------- | ----------------------------------------------------------------- |
| 9200005 |
Failed to deactivate the administrator application of the device.
|
| 9200005 |
failed to disable the administrator application of the device.
|
**示例**
:
...
...
@@ -399,14 +399,6 @@ isAdminEnabled(admin: Want, callback: AsyncCallback\<boolean>): void
| admin |
[
Want
](
js-apis-application-Want.md
)
| 是 | 设备管理员应用 |
| callback | AsyncCallback
\<
boolean> | 是 | callback方式返回是否处于激活状态 |
**错误码**
:
以下的错误码的详细介绍请参见
[
企业设备管理错误码
](
../errorcodes/errorcode-enterpriseDeviceManager.md
)
| 错误码ID | 错误信息 |
| ------- | ----------------------------------------------------------------- |
| 9200005 | Failed to deactivate the administrator application of the device. |
**示例**
:
```
js
...
...
@@ -583,7 +575,7 @@ setEnterpriseInfo(admin: Want, enterpriseInfo: EnterpriseInfo, callback: AsyncCa
| 错误码ID | 错误信息 |
| ------- | ----------------------------------------------------- |
| 9200001 |
The application is not a
administrator of the device. |
| 9200001 |
the application is not an
administrator of the device. |
**示例:**
...
...
@@ -636,7 +628,7 @@ setEnterpriseInfo(admin: Want, enterpriseInfo: EnterpriseInfo): Promise\<void>;
| 错误码ID | 错误信息 |
| ------- | ----------------------------------------------------- |
| 9200001 |
The application is not a
administrator of the device. |
| 9200001 |
the application is not an
administrator of the device. |
**示例:**
...
...
@@ -677,7 +669,7 @@ getEnterpriseInfo(admin: Want, callback: AsyncCallback<EnterpriseInfo>): v
| 错误码ID | 错误信息 |
| ------- | ----------------------------------------------------- |
| 9200001 |
The application is not a
administrator of the device. |
| 9200001 |
the application is not an
administrator of the device. |
**示例:**
...
...
@@ -724,7 +716,7 @@ getEnterpriseInfo(admin: Want): Promise<EnterpriseInfo>
| 错误码ID | 错误信息 |
| ------- | ----------------------------------------------------- |
| 9200001 |
The application is not a
administrator of the device. |
| 9200001 |
the application is not an
administrator of the device. |
**示例:**
...
...
@@ -764,9 +756,10 @@ subscribeManagedEvent(admin: Want, managedEvents: Array\<ManagedEvent>, callback
**错误码**
:
以下的错误码的详细介绍请参见
[
企业设备管理错误码
](
../errorcodes/errorcode-enterpriseDeviceManager.md
)
|错误码ID | 错误信息 |
| ------- | ----------------------------------------------------- |
| 9200001 |
The application is not a
administrator of the device. |
| 9200001 |
the application is not an
administrator of the device. |
| 9200008 | the specified system events enum is invalid. |
**示例:**
...
...
@@ -812,9 +805,10 @@ subscribeManagedEvent(admin: Want, managedEvents: Array\<ManagedEvent>): Promise
**错误码**
:
以下的错误码的详细介绍请参见
[
企业设备管理错误码
](
../errorcodes/errorcode-enterpriseDeviceManager.md
)
| 错误码ID | 错误信息 |
| ------- | ----------------------------------------------------- |
| 9200001 |
The application is not a
administrator of the device. |
| 9200001 |
the application is not an
administrator of the device. |
| 9200008 | the specified system events enum is invalid. |
**示例:**
...
...
@@ -854,9 +848,10 @@ unsubscribeManagedEvent(admin: Want, managedEvents: Array\<ManagedEvent>, callba
**错误码**
:
以下的错误码的详细介绍请参见
[
企业设备管理错误码
](
../errorcodes/errorcode-enterpriseDeviceManager.md
)
| 错误码ID | 错误信息 |
| ------- | ----------------------------------------------------- |
| 9200001 |
The application is not a
administrator of the device. |
| 9200001 |
the application is not an
administrator of the device. |
| 9200008 | the specified system events enum is invalid. |
**示例:**
...
...
@@ -902,9 +897,10 @@ unsubscribeManagedEvent(admin: Want, managedEvents: Array\<ManagedEvent>): Promi
**错误码**
:
以下的错误码的详细介绍请参见
[
企业设备管理错误码
](
../errorcodes/errorcode-enterpriseDeviceManager.md
)
| 错误码ID | 错误信息 |
| ------- | ----------------------------------------------------- |
| 9200001 |
The application is not a
administrator of the device. |
| 9200001 |
the application is not an
administrator of the device. |
| 9200008 | the specified system events enum is invalid. |
**示例:**
...
...
@@ -930,7 +926,7 @@ adminManager.unsubscribeManagedEvent(wantTemp, events).then(() => {
**系统API**
: 此接口为系统接口。
| 名称 | 类型 | 可读 | 可写 | 说明 |
| ----------- | ----
----| ---- | ----- | ------------------------------- |
| ----------- | --------| ---- | ----- | ------------------------------- |
| name | string | 是 | 否 | 表示设备管理员应用所属企业的名称。 |
| description | string | 是 | 否 | 表示设备管理员应用所属企业的描述。 |
...
...
zh-cn/application-dev/reference/apis/js-apis-enterprise-dateTimeManager.md
浏览文件 @
cb8acbf4
...
...
@@ -38,8 +38,8 @@ setDateTime(admin: Want, time: number, callback: AsyncCallback\<void>): void
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------------------------------- |
| 9200001 |
The application is not a administrator of the device.
|
| 9200002 |
T
he administrator application does not have permission to manage the device. |
| 9200001 |
the application is not an administrator of the device.
|
| 9200002 |
t
he administrator application does not have permission to manage the device. |
**示例:**
...
...
@@ -86,8 +86,8 @@ setDateTime(admin: Want, time: number): Promise\<void>
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------------------------------- |
| 9200001 |
The application is not a
administrator of the device. |
| 9200002 |
T
he administrator application does not have permission to manage the device. |
| 9200001 |
the application is not an
administrator of the device. |
| 9200002 |
t
he administrator application does not have permission to manage the device. |
**示例:**
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录