neil
6 years ago
4 changed files with 27 additions and 308 deletions
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
package com.fr.design.roleAuthority;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import com.fr.design.file.HistoryTemplateListPane;
import com.fr.design.gui.itree.refreshabletree.ExpandMutableTreeNode;
java.util.ArrayList;
java.util.ArrayList;
java.util.ArrayList;
java.util.ArrayList;
import java.util.Arrays;
java.util.ArrayList;
import java.util.Collections;
java.util.ArrayList;
import java.util.Iterator;
java.util.ArrayList;
import java.util.List;
java.util.ArrayList;
import java.util.Map;
java.util.ArrayList;
java.util.ArrayList;
import com.fr.design.file.HistoryTemplateListPane;
/**
* 获取报表平台的角色
*/
protected void addReportRoles(Map<String, RoleDataWrapper> report_roles) {
RoleDataWrapper tdw = new RoleDataWrapper(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_M_Server_Platform_Manager"));
report_roles.put(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_M_Server_Platform_Manager"), tdw);
}
/**
* 获取数据决策系统的角色
*/
protected void addFSRoles(Map<String, RoleDataWrapper> FS_roles) {
import java.util.Arrays;
import com.fr.design.file.HistoryTemplateListPane;
FS_roles.put(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_FS_Name_Duplicate"), tdw);
}
java.util.ArrayList;
import com.fr.design.gui.itree.refreshabletree.ExpandMutableTreeNode;
import java.util.Collections;
import java.util.Collections;
java.util.ArrayList;
import java.util.Collections;
import java.util.Arrays;
import java.util.Arrays;
java.util.ArrayList;
import java.util.Collections;
import java.util.Collections;
import java.util.Collections;
import java.util.Iterator;
import java.util.Collections;
import java.util.List;
import java.util.Collections;
import java.util.Map;
import java.util.Collections;
import java.util.Collections;
import com.fr.design.file.HistoryTemplateListPane;
report_roles = this.init().get(0);
// FS_roles = this.init().get(1);
} else {
report_roles = Collections.emptyMap();
// FS_roles = Collections.emptyMap();
}
List<ExpandMutableTreeNode> list = new ArrayList<ExpandMutableTreeNode>(); //所有的角色
List<ExpandMutableTreeNode> reportlist = new ArrayList<ExpandMutableTreeNode>(); //报表平台橘色
// List<ExpandMutableTreeNode> FSlist = new ArrayList<ExpandMutableTreeNode>(); //数据决策系统角色
import java.util.Iterator;
import com.fr.design.file.HistoryTemplateListPane;
addNodeToList(report_roles, reportlist);
// list.add(initFSRolseNode(FS_roles));
// addNodeToList(FS_roles, FSlist);
return list.toArray(new ExpandMutableTreeNode[list.size()]);
}
protected ExpandMutableTreeNode initReportRolseNode(Map<String, RoleDataWrapper> report_roles) {
ExpandMutableTreeNode templateNode = new ExpandMutableTreeNode(new NameObject(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Roles_Already_Authority_Edited"), 0), true);
templateNode.addChildTreeNodes(getNodeArrayFromMap(report_roles));
return templateNode;
}
import java.util.List;
import com.fr.design.file.HistoryTemplateListPane;
import java.util.List;
import com.fr.design.gui.itree.refreshabletree.ExpandMutableTreeNode;
import java.util.Map;
while (entryIt.hasNext()) {
Map.Entry<String, RoleDataWrapper> entry = entryIt.next();
String name = entry.getKey();
RoleDataWrapper t = entry.getValue();
JTemplate jt = HistoryTemplateListPane.getInstance().getCurrentEditingTemplate();
PrivilegeEditedRoleProvider pe = (PrivilegeEditedRoleProvider) jt.getTarget();
ExpandMutableTreeNode[] expand = t.load(Arrays.asList(pe.getAllEditedRoleSet()));
for (ExpandMutableTreeNode expandMutableTreeNode : expand) {
roleList.add(expandMutableTreeNode);
}
}
return roleList.toArray(new ExpandMutableTreeNode[roleList.size()]);
}
} |
||||
package com.fr.design.roleAuthority;
import import java.util.Map;
import java.util.Map;
import com.fr.design.file.HistoryTemplateListPane;
import java.util.Map;
import com.fr.design.gui.itree.refreshabletree.ExpandMutableTreeNode;
java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
java.util.ArrayList;
import com.fr.design.file.HistoryTemplateListPane;
import com.fr.design.gui.itree.refreshabletree.ExpandMutableTreeNode;
import com.fr.design.file.HistoryTemplateListPane;
import com.fr.design.file.HistoryTemplateListPane;
java.util.ArrayList;
import com.fr.design.file.HistoryTemplateListPane;
import java.util.Arrays;
java.util.ArrayList;
import com.fr.design.file.HistoryTemplateListPane;
import java.util.Collections;
import com.fr.design.file.HistoryTemplateListPane;
import java.util.Iterator;
import com.fr.design.file.HistoryTemplateListPane;
import java.util.List;
import com.fr.design.file.HistoryTemplateListPane;
import java.util.Map;
import com.fr.design.file.HistoryTemplateListPane;
import com.fr.design.file.HistoryTemplateListPane;
import com.fr.design.file.HistoryTemplateListPane;
import com.fr.design.file.HistoryTemplateListPane;
import com.fr.design.gui.itree.refreshabletree.ExpandMutableTreeNode;
import com.fr.design.gui.itree.refreshabletree.ExpandMutableTreeNode;
e.getInstance().getCurrentEditingTemplate();
PrivilegeEditedRoleProvider pe = (PrivilegeEditedRoleProvider) jt.getTarget();
ExpandMutableTreeNode[] expand = t.load(Arrays.asList(pe.getAllEditedRoleSet()));
for (ExpandMutableTreeNode expandMutableTreeNode : expand) {
roleList.add(expandMutableTreeNode);
}
}
return roleList.toArray(new ExpandMutableTreeNode[roleList.size()]);
}
} |
Loading…
Reference in new issue