@@ -16319,6 +16319,33 @@ class iPortalResource_IPortalResource extends iPortalServiceBase_IPortalServiceB
16319
16319
SuperMap.iPortalResource = iPortalResource_IPortalResource;
16320
16320
16321
16321
16322
+ // CONCATENATED MODULE: ./src/common/iPortal/iPortalShareParam.js
16323
+ /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
16324
+ * This program are made available under the terms of the Apache License, Version 2.0
16325
+ * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
16326
+
16327
+
16328
+
16329
+ /**
16330
+ * @class SuperMap.iPortalShareParam
16331
+ * @classdesc iPortal 资源查询参数。
16332
+ * @category iPortal/Online
16333
+ * @param {Object} params - iPortal 资源查询具体参数。
16334
+ *
16335
+ */
16336
+ class iPortalShareParam_IPortalShareParam {
16337
+
16338
+ constructor(params) {
16339
+ params = params || {};
16340
+ this.ids = [];
16341
+ this.entities = [];
16342
+ this.resourceType = ""; // MAP SERVICE SCENE DATA INSIGHTS_WORKSPACE MAP_DASHBOARD
16343
+ Util.extend(this, params);
16344
+ }
16345
+ }
16346
+ SuperMap.iPortalShareParam = iPortalShareParam_IPortalShareParam;
16347
+
16348
+
16322
16349
// CONCATENATED MODULE: ./src/common/iPortal/iPortal.js
16323
16350
/* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
16324
16351
* This program are made available under the terms of the Apache License, Version 2.0
@@ -16340,6 +16367,7 @@ SuperMap.iPortalResource = iPortalResource_IPortalResource;
16340
16367
16341
16368
16342
16369
16370
+
16343
16371
/**
16344
16372
* @class SuperMap.iPortal
16345
16373
* @classdesc 对接 SuperMap iPortal 基础服务。
@@ -16372,7 +16400,11 @@ class iPortal_IPortal extends iPortalServiceBase_IPortalServiceBase {
16372
16400
*/
16373
16401
queryResources(queryParams) {
16374
16402
if (!(queryParams instanceof iPortalQueryParam_IPortalQueryParam)) {
16375
- return null;
16403
+ return new Promise( function(resolve){
16404
+ resolve(
16405
+ "queryParams is not instanceof iPortalQueryParam !"
16406
+ );
16407
+ });
16376
16408
}
16377
16409
var me = this;
16378
16410
var resourceUrl = this.iportalUrl + "/gateway/catalog/resource/search.json";
@@ -16393,6 +16425,33 @@ class iPortal_IPortal extends iPortalServiceBase_IPortalServiceBase {
16393
16425
}
16394
16426
16395
16427
16428
+ /**
16429
+ * @function SuperMap.iPortal.prototype.updateResourcesShareSetting
16430
+ * @description 查询资源。
16431
+ * @param {SuperMap.updateResourcesShareSetting} shareParams - 查询参数。
16432
+ * @returns {Promise} 返回包含所有资源结果的 Promise 对象。
16433
+ */
16434
+ updateResourcesShareSetting(shareParams) {
16435
+ if (!(shareParams instanceof iPortalShareParam_IPortalShareParam)) {
16436
+ return new Promise( function(resolve){
16437
+ resolve(
16438
+ "shareParams is not instanceof iPortalShareParam !"
16439
+ );
16440
+ });
16441
+ }
16442
+ var resourceUrlName = shareParams.resourceType.replace("_","").toLowerCase()+"s";
16443
+ if(resourceUrlName === "datas"){
16444
+ resourceUrlName = "mycontent/"+resourceUrlName;
16445
+ }
16446
+ var cloneShareParams = {
16447
+ ids: shareParams.ids,
16448
+ entities: shareParams.entities
16449
+ }
16450
+ var shareUrl = this.iportalUrl + "/web/"+resourceUrlName+"/sharesetting.json";
16451
+ return this.request("PUT", shareUrl, JSON.stringify(cloneShareParams)).then(function(result) {
16452
+ return result;
16453
+ });
16454
+ }
16396
16455
/**
16397
16456
* @function SuperMap.iPortal.prototype.queryServices
16398
16457
* @description 查询服务。
@@ -16675,6 +16734,34 @@ class iPortal_IPortal extends iPortalServiceBase_IPortalServiceBase {
16675
16734
16676
16735
SuperMap.iPortal = iPortal_IPortal;
16677
16736
16737
+ // CONCATENATED MODULE: ./src/common/iPortal/iPortalShareEntity.js
16738
+ /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
16739
+ * This program are made available under the terms of the Apache License, Version 2.0
16740
+ * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
16741
+
16742
+
16743
+
16744
+ /**
16745
+ * @class SuperMap.iPortalShareEntity
16746
+ * @classdesc iPortal 资源查询参数。
16747
+ * @category iPortal/Online
16748
+ * @param {Object} params - iPortal 资源查询具体参数。
16749
+ *
16750
+ */
16751
+ class iPortalShareEntity_IPortalShareEntity {
16752
+
16753
+ constructor(params) {
16754
+ params = params || {};
16755
+ this.permissionType = ""; // SEARCH READ READWRITE DOWNLOAD
16756
+ this.entityType = ""; // USER DEPARTMENT IPORTALGROUP
16757
+ this.entityName = "GUEST"; // GUEST or 具体用户 name
16758
+ this.entityId = null;
16759
+ Util.extend(this, params);
16760
+ }
16761
+ }
16762
+ SuperMap.iPortalShareEntity = iPortalShareEntity_IPortalShareEntity;
16763
+
16764
+
16678
16765
// CONCATENATED MODULE: ./src/common/iPortal/index.js
16679
16766
/* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
16680
16767
* This program are made available under the terms of the Apache License, Version 2.0
@@ -16705,6 +16792,10 @@ SuperMap.iPortal = iPortal_IPortal;
16705
16792
16706
16793
16707
16794
16795
+
16796
+
16797
+
16798
+
16708
16799
16709
16800
16710
16801
@@ -97160,6 +97251,8 @@ external_L_default.a.supermap.components.dataServiceQuery = dataServiceQueryView
97160
97251
/* concated harmony reexport IPortalQueryParam */__webpack_require__.d(__webpack_exports__, "IPortalQueryParam", function() { return iPortalQueryParam_IPortalQueryParam; });
97161
97252
/* concated harmony reexport IPortalResource */__webpack_require__.d(__webpack_exports__, "IPortalResource", function() { return iPortalResource_IPortalResource; });
97162
97253
/* concated harmony reexport IPortalQueryResult */__webpack_require__.d(__webpack_exports__, "IPortalQueryResult", function() { return iPortalQueryResult_IPortalQueryResult; });
97254
+ /* concated harmony reexport IPortalShareParam */__webpack_require__.d(__webpack_exports__, "IPortalShareParam", function() { return iPortalShareParam_IPortalShareParam; });
97255
+ /* concated harmony reexport IPortalShareEntity */__webpack_require__.d(__webpack_exports__, "IPortalShareEntity", function() { return iPortalShareEntity_IPortalShareEntity; });
97163
97256
/* concated harmony reexport IPortalMap */__webpack_require__.d(__webpack_exports__, "IPortalMap", function() { return iPortalMap_IPortalMap; });
97164
97257
/* concated harmony reexport IPortalMapsQueryParam */__webpack_require__.d(__webpack_exports__, "IPortalMapsQueryParam", function() { return iPortalMapsQueryParam_IPortalMapsQueryParam; });
97165
97258
/* concated harmony reexport IPortalInsight */__webpack_require__.d(__webpack_exports__, "IPortalInsight", function() { return iPortalInsight_IPortalInsight; });
0 commit comments