From d171d754b42334b6125c6ad0c1e4ba87b5a9915d Mon Sep 17 00:00:00 2001 From: xuqian Date: Fri, 26 Apr 2024 09:58:30 +0800 Subject: [PATCH] fixed 4ab7faf from https://gitee.com/xuqian0131/docs/pulls/43108 fix 401 Signed-off-by: xuqian --- .../js-apis-dlppermission-sys.md | 43 ++++++++++--------- .../js-apis-dlppermission.md | 34 +++++++-------- 2 files changed, 39 insertions(+), 38 deletions(-) diff --git a/zh-cn/application-dev/reference/apis-data-loss-prevention-kit/js-apis-dlppermission-sys.md b/zh-cn/application-dev/reference/apis-data-loss-prevention-kit/js-apis-dlppermission-sys.md index fe48f6e539e..46e4a47edb1 100644 --- a/zh-cn/application-dev/reference/apis-data-loss-prevention-kit/js-apis-dlppermission-sys.md +++ b/zh-cn/application-dev/reference/apis-data-loss-prevention-kit/js-apis-dlppermission-sys.md @@ -82,7 +82,7 @@ getDLPGatheringPolicy(callback: AsyncCallback<GatheringPolicyType>): void | -------- | -------- | | 201 | Permission denied. | | 202 | Non-system applications use system APIs. | -| 401 | Parameter error. | +| 401 | Parameter error. Possible causes: 1. Incorrect parameter types. | | 19100001 | Invalid parameter value. | | 19100011 | System service exception. | @@ -140,7 +140,7 @@ installDLPSandbox(bundleName: string, access: DLPFileAccess, userId: number, uri | -------- | -------- | | 201 | Permission denied. | | 202 | Non-system applications use system APIs. | -| 401 | Parameter error. | +| 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types. | | 19100001 | Invalid parameter value. | | 19100011 | System service exception. | @@ -189,7 +189,7 @@ installDLPSandbox(bundleName: string, access: DLPFileAccess, userId: number, uri | -------- | -------- | | 201 | Permission denied. | | 202 | Non-system applications use system APIs. | -| 401 | Parameter error. | +| 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types. | | 19100001 | Invalid parameter value. | | 19100011 | System service exception. | @@ -247,7 +247,7 @@ uninstallDLPSandbox(bundleName: string, userId: number, appIndex: number): Promi | -------- | -------- | | 201 | Permission denied. | | 202 | Non-system applications use system APIs. | -| 401 | Parameter error. | +| 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types. | | 19100001 | Invalid parameter value. | | 19100011 | System service exception. | @@ -297,7 +297,7 @@ uninstallDLPSandbox(bundleName: string, userId: number, appIndex: number, callba | -------- | -------- | | 201 | Permission denied. | | 202 | Non-system applications use system APIs. | -| 401 | Parameter error. | +| 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types. | | 19100001 | Invalid parameter value. | | 19100011 | System service exception. | @@ -350,7 +350,7 @@ on(type: 'uninstallDLPSandbox', listener: Callback<DLPSandboxState>): void | -------- | -------- | | 201 | Permission denied. | | 202 | Non-system applications use system APIs. | -| 401 | Parameter error. | +| 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types. 3. Parameter verification failed. | | 19100001 | Invalid parameter value. | | 19100011 | System service exception. | @@ -395,7 +395,7 @@ off(type: 'uninstallDLPSandbox', listener?: Callback<DLPSandboxState>): vo | -------- | -------- | | 201 | Permission denied. | | 202 | Non-system applications use system APIs. | -| 401 | Parameter error. | +| 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types. 3. Parameter verification failed. | | 19100001 | Invalid parameter value. | | 19100011 | System service exception. | @@ -460,7 +460,7 @@ addDLPLinkFile(linkFileName: string): Promise<void> | -------- | -------- | | 201 | Permission denied. | | 202 | Non-system applications use system APIs. | -| 401 | Parameter error. | +| 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types. | | 19100001 | Invalid parameter value. | | 19100009 | Failed to operate the DLP file. | | 19100011 | System service exception. | @@ -530,7 +530,7 @@ addDLPLinkFile(linkFileName: string, callback: AsyncCallback<void>): void | -------- | -------- | | 201 | Permission denied. | | 202 | Non-system applications use system APIs. | -| 401 | Parameter error. | +| 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types. | | 19100001 | Invalid parameter value. | | 19100009 | Failed to operate the DLP file. | | 19100011 | System service exception. | @@ -673,7 +673,7 @@ stopFuseLink(callback: AsyncCallback<void>): void | -------- | -------- | | 201 | Permission denied. | | 202 | Non-system applications use system APIs. | -| 401 | Parameter error. | +| 401 | Parameter error. Possible causes: 1. Incorrect parameter types. | | 19100001 | Invalid parameter value. | | 19100009 | Failed to operate the DLP file. | | 19100011 | System service exception. | @@ -818,7 +818,7 @@ resumeFuseLink(callback: AsyncCallback<void>): void | -------- | -------- | | 201 | Permission denied. | | 202 | Non-system applications use system APIs. | -| 401 | Parameter error. | +| 401 | Parameter error. Possible causes: 1. Incorrect parameter types. | | 19100001 | Invalid parameter value. | | 19100009 | Failed to operate the DLP file. | | 19100011 | System service exception. | @@ -900,7 +900,7 @@ replaceDLPLinkFile(linkFileName: string): Promise<void> | -------- | -------- | | 201 | Permission denied. | | 202 | Non-system applications use system APIs. | -| 401 | Parameter error. | +| 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types. | | 19100001 | Invalid parameter value. | | 19100009 | Failed to operate the DLP file. | | 19100011 | System service exception. | @@ -973,7 +973,7 @@ replaceDLPLinkFile(linkFileName: string, callback: AsyncCallback<void>): v | -------- | -------- | | 201 | Permission denied. | | 202 | Non-system applications use system APIs. | -| 401 | Parameter error. | +| 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types. | | 19100001 | Invalid parameter value. | | 19100009 | Failed to operate the DLP file. | | 19100011 | System service exception. | @@ -1056,7 +1056,7 @@ deleteDLPLinkFile(linkFileName: string): Promise<void> | -------- | -------- | | 201 | Permission denied. | | 202 | Non-system applications use system APIs. | -| 401 | Parameter error. | +| 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types. | | 19100001 | Invalid parameter value. | | 19100009 | Failed to operate the DLP file. | | 19100011 | System service exception. | @@ -1127,7 +1127,7 @@ deleteDLPLinkFile(linkFileName: string, callback: AsyncCallback<void>): vo | -------- | -------- | | 201 | Permission denied. | | 202 | Non-system applications use system APIs. | -| 401 | Parameter error. | +| 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types. | | 19100001 | Invalid parameter value. | | 19100009 | Failed to operate the DLP file. | | 19100011 | System service exception. | @@ -1208,7 +1208,7 @@ recoverDLPFile(plaintextFd: number): Promise<void> | -------- | -------- | | 201 | Permission denied. | | 202 | Non-system applications use system APIs. | -| 401 | Parameter error. | +| 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types. | | 19100001 | Invalid parameter value. | | 19100002 | Credential task error. | | 19100003 | Credential task time out. | @@ -1286,7 +1286,7 @@ recoverDLPFile(plaintextFd: number, callback: AsyncCallback<void>): void | -------- | -------- | | 201 | Permission denied. | | 202 | Non-system applications use system APIs. | -| 401 | Parameter error. | +| 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types. | | 19100001 | Invalid parameter value. | | 19100002 | Credential task error. | | 19100003 | Credential task time out. | @@ -1442,6 +1442,7 @@ closeDLPFile(callback: AsyncCallback<void>): void | -------- | -------- | | 201 | Permission denied. | | 202 | Non-system applications use system APIs. | +| 401 | Parameter error. Possible causes: 1. Incorrect parameter types. | | 19100001 | Invalid parameter value. | | 19100009 | Failed to operate the DLP file. | | 19100011 | System service exception. | @@ -1524,7 +1525,7 @@ generateDLPFile(plaintextFd: number, ciphertextFd: number, property: DLPProperty | -------- | -------- | | 201 | Permission denied. | | 202 | Non-system applications use system APIs. | -| 401 | Parameter error. | +| 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types. | | 19100001 | Invalid parameter value. | | 19100002 | Credential task error. | | 19100003 | Credential task time out. | @@ -1593,7 +1594,7 @@ DLP管理应用调用该接口,将明文文件加密生成权限受控文件 | -------- | -------- | | 201 | Permission denied. | | 202 | Non-system applications use system APIs. | -| 401 | Parameter error. | +| 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types. | | 19100001 | Invalid parameter value. | | 19100002 | Credential task error. | | 19100003 | Credential task time out. | @@ -1669,7 +1670,7 @@ openDLPFile(ciphertextFd: number, appId: string): Promise<DLPFile> | -------- | -------- | | 201 | Permission denied. | | 202 | Non-system applications use system APIs. | -| 401 | Parameter error. | +| 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types. | | 19100001 | Invalid parameter value. | | 19100002 | Credential task error. | | 19100003 | Credential task time out. | @@ -1747,7 +1748,7 @@ DLP管理应用调用该接口,打开DLP文件。获取DLPFile管理对象, | -------- | -------- | | 201 | Permission denied. | | 202 | Non-system applications use system APIs. | -| 401 | Parameter error. | +| 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types. | | 19100001 | Invalid parameter value. | | 19100002 | Credential task error. | | 19100003 | Credential task time out. | diff --git a/zh-cn/application-dev/reference/apis-data-loss-prevention-kit/js-apis-dlppermission.md b/zh-cn/application-dev/reference/apis-data-loss-prevention-kit/js-apis-dlppermission.md index ee980966846..c5a9257e24a 100644 --- a/zh-cn/application-dev/reference/apis-data-loss-prevention-kit/js-apis-dlppermission.md +++ b/zh-cn/application-dev/reference/apis-data-loss-prevention-kit/js-apis-dlppermission.md @@ -37,7 +37,7 @@ isDLPFile(fd: number): Promise<boolean> | 错误码ID | 错误信息 | | -------- | -------- | -| 401 | Parameter error. | +| 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types. | | 19100001 | Invalid parameter value. | | 19100011 | System service exception. | @@ -81,7 +81,7 @@ isDLPFile(fd: number, callback: AsyncCallback<boolean>): void | 错误码ID | 错误信息 | | -------- | -------- | -| 401 | Parameter error. | +| 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types. | | 19100001 | Invalid parameter value. | | 19100011 | System service exception. | @@ -172,7 +172,7 @@ getDLPPermissionInfo(callback: AsyncCallback<DLPPermissionInfo>): void | 错误码ID | 错误信息 | | -------- | -------- | -| 401 | Parameter error. | +| 401 | Parameter error. Possible causes: 1. Incorrect parameter types. | | 19100001 | Invalid parameter value. | | 19100006 | This API can only be called by DLP sandbox applications. | | 19100011 | System service exception. | @@ -301,7 +301,7 @@ on(type: 'openDLPFile', listener: Callback<AccessedDLPFileInfo>): void | 错误码ID | 错误信息 | | -------- | -------- | -| 401 | Parameter error. | +| 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types. 3. Parameter verification failed. | | 19100001 | Invalid parameter value. | | 19100007 | This API cannot be called by DLP sandbox applications. | | 19100011 | System service exception. | @@ -341,7 +341,7 @@ off(type: 'openDLPFile', listener?: Callback<AccessedDLPFileInfo>): void | 错误码ID | 错误信息 | | -------- | -------- | -| 401 | Parameter error. | +| 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types. 3. Parameter verification failed. | | 19100001 | Invalid parameter value. | | 19100007 | This API cannot be called by DLP sandbox applications. | | 19100011 | System service exception. | @@ -418,7 +418,7 @@ isInSandbox(callback: AsyncCallback<boolean>): void | 错误码ID | 错误信息 | | -------- | -------- | -| 401 | Parameter error. | +| 401 | Parameter error. Possible causes: 1. Incorrect parameter types. | | 19100001 | Invalid parameter value. | | 19100011 | System service exception. | @@ -498,7 +498,7 @@ getDLPSupportedFileTypes(callback: AsyncCallback<Array<string>>): vo | 错误码ID | 错误信息 | | -------- | -------- | -| 401 | Parameter error. | +| 401 | Parameter error. Possible causes: 1. Incorrect parameter types. | | 19100001 | Invalid parameter value. | | 19100011 | System service exception. | @@ -547,7 +547,7 @@ setRetentionState(docUris: Array<string>): Promise<void> | 错误码ID | 错误信息 | | -------- | -------- | -| 401 | Parameter error. | +| 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types. | | 19100001 | Invalid parameter value. | | 19100006 | This API can only be called by DLP sandbox applications. | | 19100011 | System service exception. | @@ -591,7 +591,7 @@ setRetentionState(docUris: Array<string>, callback: AsyncCallback<void& | 错误码ID | 错误信息 | | -------- | -------- | -| 401 | Parameter error. | +| 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types. | | 19100001 | Invalid parameter value. | | 19100006 | This API can only be called by DLP sandbox applications. | | 19100011 | System service exception. | @@ -643,7 +643,7 @@ cancelRetentionState(docUris: Array<string>): Promise<void> | 错误码ID | 错误信息 | | -------- | -------- | -| 401 | Parameter error. | +| 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types. | | 19100001 | Invalid parameter value. | | 19100011 | System service exception. | @@ -682,7 +682,7 @@ cancelRetentionState(docUris: Array<string>, callback: AsyncCallback<vo | 错误码ID | 错误信息 | | -------- | -------- | -| 401 | Parameter error. | +| 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types. | | 19100001 | Invalid parameter value. | | 19100011 | System service exception. | @@ -732,7 +732,7 @@ getRetentionSandboxList(bundleName?: string): Promise<Array<RetentionSandb | 错误码ID | 错误信息 | | -------- | -------- | -| 401 | Parameter error. | +| 401 | Parameter error. Possible causes: 1. Incorrect parameter types. | | 19100001 | Invalid parameter value. | | 19100007 | This API cannot be called by DLP sandbox applications. | | 19100011 | System service exception. | @@ -772,7 +772,7 @@ getRetentionSandboxList(bundleName: string, callback: AsyncCallback<Array< | 错误码ID | 错误信息 | | -------- | -------- | -| 401 | Parameter error. | +| 401 | Parameter error. Possible causes: 1. Incorrect parameter types. | | 19100001 | Invalid parameter value. | | 19100007 | This API cannot be called by DLP sandbox applications. | | 19100011 | System service exception. | @@ -816,7 +816,7 @@ getRetentionSandboxList(callback: AsyncCallback<Array<RetentionSandboxInfo | 错误码ID | 错误信息 | | -------- | -------- | -| 401 | Parameter error. | +| 401 | Parameter error. Possible causes: 1. Incorrect parameter types. | | 19100001 | Invalid parameter value. | | 19100007 | This API cannot be called by DLP sandbox applications. | | 19100011 | System service exception. | @@ -898,7 +898,7 @@ getDLPFileAccessRecords(callback: AsyncCallback<Array<AccessedDLPFileInfo& | 错误码ID | 错误信息 | | -------- | -------- | -| 401 | Parameter error. | +| 401 | Parameter error. Possible causes: 1. Incorrect parameter types. | | 19100001 | Invalid parameter value. | | 19100007 | This API cannot be called by DLP sandbox applications. | | 19100011 | System service exception. | @@ -951,7 +951,7 @@ startDLPManagerForResult(context: common.UIAbilityContext, want: Want): Promise& | 错误码ID | 错误信息 | | -------- | -------- | -| 401 | Parameter error. | +| 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types. | | 19100001 | Invalid parameter value. | | 19100011 | System service exception. | | 19100016 | Uri does not exist in want. | @@ -1009,7 +1009,7 @@ setSandboxAppConfig(configInfo: string): Promise<void> | 错误码ID | 错误信息 | | -------- | -------- | -| 401 | Parameter error. | +| 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types. | | 19100001 | Invalid parameter value. | | 19100007 | This API cannot be called by DLP sandbox applications. | | 19100011 | System service exception. | -- Gitee