小组应用还原用户权限中获取应用权限列表的方法
This commit is contained in:
parent
051c082e09
commit
47f1e3dd87
Binary file not shown.
@ -1059,27 +1059,13 @@ public class CooperationWeb extends ActionWeb {
|
|||||||
List<String> appPerm = new ArrayList<>();// 应用权限
|
List<String> appPerm = new ArrayList<>();// 应用权限
|
||||||
List<String> actionPerm = new ArrayList<>();// 操作权限
|
List<String> actionPerm = new ArrayList<>();// 操作权限
|
||||||
// 获取应用权限选项范围
|
// 获取应用权限选项范围
|
||||||
// aslp服务地址
|
List<CooperationAppProfile> appList = CooperationAppManager.getList();
|
||||||
String aslp = "aslp://com.actionsoft.apps.coe.pal.cooperation/listApps";
|
for (CooperationAppProfile profile : appList) {
|
||||||
//列出已注册的流程团队扩展App
|
JSONObject appObj = new JSONObject();
|
||||||
ResponseObject res = SDK.getAppAPI().callASLP(SDK.getAppAPI().getAppContext(CoEConstant.APP_ID), aslp, new HashMap<String, Object>());
|
appObj.put("value", profile.getTitle());
|
||||||
if (res.isOk()) {
|
appObj.put("label", profile.getId());
|
||||||
JSONArray appArr = (JSONArray)((Map)res.getData()).get("apps");
|
appPermOpts.add(appObj);
|
||||||
for (int i = 0; i < appArr.size(); i++) {
|
|
||||||
;
|
|
||||||
JSONObject appObj = new JSONObject();
|
|
||||||
appObj.put("value", appArr.getJSONObject(i).getString("title"));
|
|
||||||
appObj.put("label", appArr.getJSONObject(i).getString("id"));
|
|
||||||
appPermOpts.add(appObj);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
// List<CooperationAppProfile> appList = CooperationAppManager.getList();
|
|
||||||
// for (CooperationAppProfile profile : appList) {
|
|
||||||
// JSONObject appObj = new JSONObject();
|
|
||||||
// appObj.put("value", profile.getTitle());
|
|
||||||
// appObj.put("label", profile.getId());
|
|
||||||
// appPermOpts.add(appObj);
|
|
||||||
// }
|
|
||||||
//权限操作权限options
|
//权限操作权限options
|
||||||
JSONObject actionObj1 = new JSONObject();
|
JSONObject actionObj1 = new JSONObject();
|
||||||
actionObj1.put("value", "新建流程");
|
actionObj1.put("value", "新建流程");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user