其他主题集只有 reader角色 酷屏所在主题集 判断 owner manager 删除的有无
DWSubjectSet dwSubjectSet = DWMgr.getInstance()
.getDWSubjectSetByCaption(ztj);
if (dwSubjectSet != null&&coolZtj.equals(ztj)) {
String ztj_id = “EBI$7$” + dwSubjectSet.getServerId();
Boolean view = pChecker.check(ztj_id, ResOper.VIEW.getOperId());
// 完全控制权限
Boolean mana = pChecker.check(ztj_id,
ResOper.MANAGE.getOperId());
Boolean edit = pChecker.check(dwSubjectSet,
ResOper.EDIT.getOperId());
JsonObject zjLimit = new JsonObject();
zjLimit.addProperty("id", ztj_id);
zjLimit.addProperty("name", ztj);
zjLimit.addProperty("view", view);
zjLimit.addProperty("mana", mana);
zjLimit.addProperty("edit", edit);
// 根据zjLimit 获取权限
JsonObject role = new JsonObject();
// 存入主题集名称(即id) 和对应角色
// System.out.println(zjLimit.toString());
role.addProperty("itemId", ztj);
role.addProperty("role", getRole(zjLimit));
ztjLimitObjects.add(role);
}else{
//不是酷屏控件所在主题集只有只读权限
JsonObject role = new JsonObject();
role.addProperty("itemId", ztj);
role.addProperty("role", "reader");
}