mirror of
https://gitee.com/openharmony/applications_dlp_manager
synced 2024-11-23 18:09:44 +00:00
Description:Enterprise account
Match-id-04b1fa01e96686c078f392f82e3c617947c78e89
This commit is contained in:
parent
8c8dd821a6
commit
527828c9da
8
@ohos.dlpPermission.d.ts
vendored
8
@ohos.dlpPermission.d.ts
vendored
@ -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
|
||||
*
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user