Description:Enterprise account

Match-id-04b1fa01e96686c078f392f82e3c617947c78e89
This commit is contained in:
li-li-wang 2023-06-08 16:55:45 +08:00 committed by baoyang
parent 8c8dd821a6
commit 527828c9da
2 changed files with 10 additions and 0 deletions

View File

@ -549,6 +549,14 @@ declare namespace dlpPermission {
*/
ownerAccount: string;
/**
* Dlp file owner accountId
*
* @syscap SystemCapability.Security.DlpPermissionService
* @since 9
*/
ownerAccountId: string;
/**
* Dlp file authorized user list
*

View File

@ -16,6 +16,7 @@ var TAG = "[DLPManager_index]"
var defaultDlpProperty: dlpPermission.DlpProperty = {
ownerAccount: '',
ownerAccountId: '',
ownerAccountType: 1,
authUsers: [],
contractAccount: '',
@ -66,6 +67,7 @@ struct DlpDialog {
async checkAndOpenDlpFile(filename: string, fd: number, linkFileName: string): Promise<void> {
console.info(TAG + "checkAndOpenDlpFile")
this.dlpFile.dlpProperty.ownerAccount = globalThis.accountInfo.distributedInfo.name
this.dlpFile.dlpProperty.ownerAccountId = globalThis.accountInfo.distributedInfo.id
this.dlpFile.dlpProperty.contractAccount = globalThis.accountInfo.distributedInfo.name
var isDlpSuffix: boolean = filename.endsWith(".dlp")
if (this.requestIsFromSandBox) {