Skip to content

Commit 216e76e

Browse files
author
xujiaming
committed
提交portal.js获取添加资源共享设置接口类 打包后的文件 review huangqh
1 parent 2835aa4 commit 216e76e

15 files changed

+4381
-4835
lines changed

dist/classic/iclient-classic.min.js

Lines changed: 55 additions & 99 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/leaflet/iclient-leaflet-es6.js

Lines changed: 94 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16319,6 +16319,33 @@ class iPortalResource_IPortalResource extends iPortalServiceBase_IPortalServiceB
1631916319
SuperMap.iPortalResource = iPortalResource_IPortalResource;
1632016320

1632116321

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+
1632216349
// CONCATENATED MODULE: ./src/common/iPortal/iPortal.js
1632316350
/* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
1632416351
* This program are made available under the terms of the Apache License, Version 2.0
@@ -16340,6 +16367,7 @@ SuperMap.iPortalResource = iPortalResource_IPortalResource;
1634016367

1634116368

1634216369

16370+
1634316371
/**
1634416372
* @class SuperMap.iPortal
1634516373
* @classdesc 对接 SuperMap iPortal 基础服务。
@@ -16372,7 +16400,11 @@ class iPortal_IPortal extends iPortalServiceBase_IPortalServiceBase {
1637216400
*/
1637316401
queryResources(queryParams) {
1637416402
if (!(queryParams instanceof iPortalQueryParam_IPortalQueryParam)) {
16375-
return null;
16403+
return new Promise( function(resolve){
16404+
resolve(
16405+
"queryParams is not instanceof iPortalQueryParam !"
16406+
);
16407+
});
1637616408
}
1637716409
var me = this;
1637816410
var resourceUrl = this.iportalUrl + "/gateway/catalog/resource/search.json";
@@ -16393,6 +16425,33 @@ class iPortal_IPortal extends iPortalServiceBase_IPortalServiceBase {
1639316425
}
1639416426

1639516427

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+
}
1639616455
/**
1639716456
* @function SuperMap.iPortal.prototype.queryServices
1639816457
* @description 查询服务。
@@ -16675,6 +16734,34 @@ class iPortal_IPortal extends iPortalServiceBase_IPortalServiceBase {
1667516734

1667616735
SuperMap.iPortal = iPortal_IPortal;
1667716736

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+
1667816765
// CONCATENATED MODULE: ./src/common/iPortal/index.js
1667916766
/* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
1668016767
* This program are made available under the terms of the Apache License, Version 2.0
@@ -16705,6 +16792,10 @@ SuperMap.iPortal = iPortal_IPortal;
1670516792

1670616793

1670716794

16795+
16796+
16797+
16798+
1670816799

1670916800

1671016801

@@ -97160,6 +97251,8 @@ external_L_default.a.supermap.components.dataServiceQuery = dataServiceQueryView
9716097251
/* concated harmony reexport IPortalQueryParam */__webpack_require__.d(__webpack_exports__, "IPortalQueryParam", function() { return iPortalQueryParam_IPortalQueryParam; });
9716197252
/* concated harmony reexport IPortalResource */__webpack_require__.d(__webpack_exports__, "IPortalResource", function() { return iPortalResource_IPortalResource; });
9716297253
/* 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; });
9716397256
/* concated harmony reexport IPortalMap */__webpack_require__.d(__webpack_exports__, "IPortalMap", function() { return iPortalMap_IPortalMap; });
9716497257
/* concated harmony reexport IPortalMapsQueryParam */__webpack_require__.d(__webpack_exports__, "IPortalMapsQueryParam", function() { return iPortalMapsQueryParam_IPortalMapsQueryParam; });
9716597258
/* concated harmony reexport IPortalInsight */__webpack_require__.d(__webpack_exports__, "IPortalInsight", function() { return iPortalInsight_IPortalInsight; });

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy