forked from SuperMap/iClient-JavaScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathiPortalShareEntity.js
More file actions
31 lines (27 loc) · 1.38 KB
/
Copy pathiPortalShareEntity.js
File metadata and controls
31 lines (27 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/* Copyright© 2000 - 2021 SuperMap Software Co.Ltd. All rights reserved.
* This program are made available under the terms of the Apache License, Version 2.0
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
import {SuperMap} from '../SuperMap';
import {Util} from '../commontypes/Util';
/**
* @class SuperMap.iPortalShareEntity
* @classdesc iPortal 资源共享实体参数。
* @version 10.0.1
* @category iPortal/Online
* @param {Object} shareEntity - iPortal 资源共享实体具体参数。
* @param {SuperMap.PermissionType} [shareEntity.permissionType] - 权限类型。
* @param {SuperMap.EntityType} [shareEntity.entityType] - 实体类型
* @param {string} [shareEntity.entityName] - 实体 Name。对应的 USER(用户)、 ROLE(角色)、GROUP(用户组)、IPORTALGROUP(群组)的名称。
* @param {number} [shareEntity.entityId] - 实体的 id。用于群组的授权。
*/
export class IPortalShareEntity {
constructor(shareEntity) {
shareEntity = shareEntity || {};
this.permissionType = ""; // SEARCH READ READWRITE DOWNLOAD
this.entityType = ""; // USER DEPARTMENT IPORTALGROUP
this.entityName = "GUEST"; // GUEST or 具体用户 name
this.entityId = null;
Util.extend(this, shareEntity);
}
}
SuperMap.iPortalShareEntity = IPortalShareEntity;