⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ldaptest.java

📁 VC++
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
		new LdapTest()
				.createPermission(
						"OA_MeetingroomManage_Statistics_ManageQuery",
						"管理查询",
						"cn=OA_MeetingroomManage_Statistics,cn=OA_MeetingroomManage,cn=OA,cn=Module,cn=Application,dc=taikanglife,dc=com");
		new LdapTest()
				.createPermission(
						"OA_MeetingroomManage_Statistics_HistoryQuery",
						"历史查询",
						"cn=OA_MeetingroomManage_Statistics,cn=OA_MeetingroomManage,cn=OA,cn=Module,cn=Application,dc=taikanglife,dc=com");

		new LdapTest()
				.createPermission(
						"OA_UserExperience_WebInvestigate_CreateInvestigate",
						"新建调查",
						"cn=OA_UserExperience_WebInvestigate,cn=OA_UserExperience,cn=OA,cn=Module,cn=Application,dc=taikanglife,dc=com");
		new LdapTest()
				.createPermission(
						"OA_UserExperience_WebInvestigate_ManageInvestigate",
						"管理调查",
						"cn=OA_UserExperience_WebInvestigate,cn=OA_UserExperience,cn=OA,cn=Module,cn=Application,dc=taikanglife,dc=com");
		new LdapTest()
				.createPermission(
						"OA_UserExperience_WebQuestionnaire_CreateQuestionnaire",
						"新建问卷",
						"cn=OA_UserExperience_WebQuestionnaire,cn=OA_UserExperience,cn=OA,cn=Module,cn=Application,dc=taikanglife,dc=com");
		new LdapTest()
				.createPermission(
						"OA_UserExperience_WebQuestionnaire_ManageQuestionnaire",
						"管理问卷",
						"cn=OA_UserExperience_WebQuestionnaire,cn=OA_UserExperience,cn=OA,cn=Module,cn=Application,dc=taikanglife,dc=com");

		new LdapTest()
				.createPermission("OA_UserExperience_ManageFeedBack", "反馈管理",
						"cn=OA_UserExperience,cn=OA,cn=Module,cn=Application,dc=taikanglife,dc=com");
		new LdapTest()
				.createPermission("OA_UserExperience_ManageRecord", "点击记录",
						"cn=OA_UserExperience,cn=OA,cn=Module,cn=Application,dc=taikanglife,dc=com");

		/* 工作流 */
		new LdapTest()
				.createPermission("OA_WorkFlowManage", "工作流管理",
						"cn=OA_WorkFlowManage,cn=OA,cn=Module,cn=Application,dc=taikanglife,dc=com");

	}

	public void impRoleClass() throws Exception {
		new LdapTest().createRoleClass("OA_WRITER", "拟稿人");
		new LdapTest().createRoleClass("OA_DEPHEADER", "部门负责人");
		new LdapTest().createRoleClass("OA_DEPDOCADMIN", "部门文书");
		new LdapTest().createRoleClass("OA_RELEASEADMIN", "发文流转岗");
		new LdapTest().createRoleClass("OA_DOCDEALER", "文字岗");
		new LdapTest().createRoleClass("OA_DOCCHEAKER", "总核稿");
		new LdapTest().createRoleClass("OA_RECEIVEADMIN", "收文流转岗");
		new LdapTest().createRoleClass("OA_RECEIVETRANSACTER", "收文拟办");
		new LdapTest().createRoleClass("OA_RECEIVESUPERVISER", "收文督办员");
		new LdapTest().createRoleClass("OA_RELEASESUPERVISER", "发文督办员");
		new LdapTest().createRoleClass("OA_RELEASEMANAGER", "发文管理员");
		new LdapTest().createRoleClass("OA_RECEIVEMANAGER", "收文管理员");
		new LdapTest().createRoleClass("OA_RELEASEBAKER", "发文归档管理员");
		new LdapTest().createRoleClass("OA_RECEIVEBAKER", "收文归档管理员");
		new LdapTest().createRoleClass("OA_DOCSYSCONFIGER", "公文系统设置员");
		new LdapTest().createRoleClass("OA_MEETINGROOMQUERYADMIN", "会议室查询管理员");
		new LdapTest().createRoleClass("OA_WORKFLOWMANAGER", "OA工作流管理员");
		new LdapTest().createRoleClass("OA_MYPADCAPACITYMANAGER", "便笺容量管理员");
		new LdapTest().createRoleClass("OA_INFOBASEMANAGER", "信息窗口管理员");
		new LdapTest().createRoleClass("OA_DOCMODELCONFIGER", "公文模板设置员");
		new LdapTest().createRoleClass("OA_WORKFLOWMANAGER", "工作流管理员");
		new LdapTest().createRoleClass("OA_WEBQUESTIONNAIREMANAGER", "问卷调查管理员");
		new LdapTest().createRoleClass("OA_WEBINVESTIGATEWRITER", "调查起草人");
		new LdapTest().createRoleClass("OA_WEBQUESTIONNAIREWRITER", "问卷起草人");
		new LdapTest().createRoleClass("OA_EXPERIENCEMANAGER", "用户体验管理员");
		new LdapTest().createRoleClass("OA_PADCAPCONFIGER", "便笺容量设置员");
		// try{
		// RoleManager rolemrg = (RoleManager) SecurityFactory.getBean(
		// "RoleManager");
		// RoleClassManager rolecmrg = (RoleClassManager)
		// SecurityFactory.getBean(
		// "RoleClassManager");
		// RoleClass[] killrolec = rolecmrg.getAllRoleClass();
		// for (int i = 0; i < killrolec.length; i++) {
		// Role[] roles = rolemrg.getRolesByRoleClass(killrolec[i]);
		// for(int j=0;j<roles.length;j++){
		// roles[i].delete();
		// }
		// killrolec[i].delete();
		// }
		// }catch(Exception e){
		// e.printStackTrace();
		// }
	}

	public void impRole() throws Exception {

		new LdapTest()
				.createRole(
						"HO_WORKFLOWMANAGER",
						"总公司工作流管理员",
						"cn=OA_WORKFLOWMANAGER,cn=RoleClass,cn=Application,dc=taikanglife,dc=com",
						"ou=HO,OU=TAIKANGLIFE,cn=Organization,dc=taikanglife,dc=com");
		new LdapTest()
				.createRole(
						"TJ_WORKFLOWMANAGER",
						"天津工作流管理员",
						"cn=OA_WORKFLOWMANAGER,cn=RoleClass,cn=Application,dc=taikanglife,dc=com",
						"ou=TJ,OU=TAIKANGLIFE,cn=Organization,dc=taikanglife,dc=com");

		new LdapTest()
				.createRole(
						"HO_WRITER",
						"总公司拟稿人",
						"cn=OA_WRITER,cn=RoleClass,cn=Application,dc=taikanglife,dc=com",
						"ou=HO,OU=TAIKANGLIFE,cn=Organization,dc=taikanglife,dc=com");
		new LdapTest()
				.createRole(
						"TJ_WRITER",
						"天津分公司拟稿人",
						"cn=OA_WRITER,cn=RoleClass,cn=Application,dc=taikanglife,dc=com",
						"ou=TJ,OU=TAIKANGLIFE,cn=Organization,dc=taikanglife,dc=com");

		new LdapTest()
				.createRole(
						"TJ_RECEIVEADMIN",
						"天津分公司收文流转岗",
						"cn=OA_RECEIVEADMIN,cn=RoleClass,cn=Application,dc=taikanglife,dc=com",
						"ou=TJ,OU=TAIKANGLIFE,cn=Organization,dc=taikanglife,dc=com");
		new LdapTest()
				.createRole(
						"HO_RECEIVEADMIN",
						"总公司收文流转岗",
						"cn=OA_RECEIVEADMIN,cn=RoleClass,cn=Application,dc=taikanglife,dc=com",
						"ou=HO,OU=TAIKANGLIFE,cn=Organization,dc=taikanglife,dc=com");

		new LdapTest()
				.createRole(
						"HO_OFFICE_DEPHEADER",
						"总公司办公室部门负责人",
						"cn=OA_DEPHEADER,cn=RoleClass,cn=Application,dc=taikanglife,dc=com",
						"ou=03,ou=HO,OU=TAIKANGLIFE,cn=Organization,dc=taikanglife,dc=com");
		new LdapTest()
				.createRole(
						"HO_INFO_DEPHEADER",
						"总公司信息部部门负责人",
						"cn=OA_DEPHEADER,cn=RoleClass,cn=Application,dc=taikanglife,dc=com",
						"ou=INFO,ou=HO,OU=TAIKANGLIFE,cn=Organization,dc=taikanglife,dc=com");
		new LdapTest()
				.createRole(
						"TJ_OFFICE_DEPHEADER",
						"天分办公室部门负责人",
						"cn=OA_DEPHEADER,cn=RoleClass,cn=Application,dc=taikanglife,dc=com",
						"ou=TJ10,ou=TJ,OU=TAIKANGLIFE,cn=Organization,dc=taikanglife,dc=com");

		new LdapTest()
				.createRole(
						"HO_OFFICE_DEPDOCADMIN",
						"总公司办公室文书",
						"cn=OA_DEPDOCADMIN,cn=RoleClass,cn=Application,dc=taikanglife,dc=com",
						"ou=03,ou=HO,OU=TAIKANGLIFE,cn=Organization,dc=taikanglife,dc=com");
		new LdapTest()
				.createRole(
						"HO_INFO_DEPDOCADMIN",
						"总公司信息技术部文书",
						"cn=OA_DEPDOCADMIN,cn=RoleClass,cn=Application,dc=taikanglife,dc=com",
						"ou=INFO,ou=HO,OU=TAIKANGLIFE,cn=Organization,dc=taikanglife,dc=com");

		new LdapTest()
				.createRole(
						"HO_RELEASEADMIN",
						"总公司发文流转岗",
						"cn=OA_RELEASEADMIN,cn=RoleClass,cn=Application,dc=taikanglife,dc=com",
						"ou=TJ,OU=TAIKANGLIFE,cn=Organization,dc=taikanglife,dc=com");
		new LdapTest()
				.createRole(
						"TJ_RELEASEADMIN",
						"天分发文流转岗",
						"cn=OA_RELEASEADMIN,cn=RoleClass,cn=Application,dc=taikanglife,dc=com",
						"ou=TJ,OU=TAIKANGLIFE,cn=Organization,dc=taikanglife,dc=com");
		new LdapTest()
				.createRole(
						"HO_DOCDEALER",
						"总公司文字岗",
						"cn=OA_DOCDEALER,cn=RoleClass,cn=Application,dc=taikanglife,dc=com",
						"ou=HO,OU=TAIKANGLIFE,cn=Organization,dc=taikanglife,dc=com");
		new LdapTest()
				.createRole(
						"TJ_DOCDEALER",
						"天分文字岗",
						"cn=OA_DOCDEALER,cn=RoleClass,cn=Application,dc=taikanglife,dc=com",
						"ou=TJ,OU=TAIKANGLIFE,cn=Organization,dc=taikanglife,dc=com");

		new LdapTest()
				.createRole(
						"HO_DOCCHEAKER",
						"总公司总核稿",
						"cn=OA_DOCCHEAKER,cn=RoleClass,cn=Application,dc=taikanglife,dc=com",
						"ou=HO,OU=TAIKANGLIFE,cn=Organization,dc=taikanglife,dc=com");
		new LdapTest()
				.createRole(
						"TJ_DOCCHEAKER",
						"天分总核稿",
						"cn=OA_DOCCHEAKER,cn=RoleClass,cn=Application,dc=taikanglife,dc=com",
						"ou=TJ,OU=TAIKANGLIFE,cn=Organization,dc=taikanglife,dc=com");

		new LdapTest()
				.createRole(
						"TJ_RECEIVEADMIN",
						"天分收文流转岗",
						"cn=OA_RECEIVEADMIN,cn=RoleClass,cn=Application,dc=taikanglife,dc=com",
						"ou=TJ,OU=TAIKANGLIFE,cn=Organization,dc=taikanglife,dc=com");
		new LdapTest()
				.createRole(
						"HO_RECEIVEADMIN",
						"总公司收文流转岗",
						"cn=OA_RECEIVEADMIN,cn=RoleClass,cn=Application,dc=taikanglife,dc=com",
						"ou=HO,OU=TAIKANGLIFE,cn=Organization,dc=taikanglife,dc=com");

		new LdapTest()
				.createRole(
						"HO_RECEIVETRANSACTER",
						"总公司收文拟办",
						"cn=OA_RECEIVETRANSACTER,cn=RoleClass,cn=Application,dc=taikanglife,dc=com",
						"ou=HO,OU=TAIKANGLIFE,cn=Organization,dc=taikanglife,dc=com");
		new LdapTest()
				.createRole(
						"TJ_RECEIVETRANSACTER",
						"天分收文拟办",
						"cn=OA_RECEIVETRANSACTER,cn=RoleClass,cn=Application,dc=taikanglife,dc=com",
						"ou=TJ,OU=TAIKANGLIFE,cn=Organization,dc=taikanglife,dc=com");

		new LdapTest()
				.createRole(
						"TJ_RECEIVESUPERVISER",
						"天分收文督办员",
						"cn=OA_RECEIVESUPERVISER,cn=RoleClass,cn=Application,dc=taikanglife,dc=com",
						"ou=TJ,OU=TAIKANGLIFE,cn=Organization,dc=taikanglife,dc=com");
		new LdapTest()
				.createRole(
						"HO_RECEIVESUPERVISER",
						"总公司收文督办员",
						"cn=OA_RECEIVESUPERVISER,cn=RoleClass,cn=Application,dc=taikanglife,dc=com",
						"ou=HO,OU=TAIKANGLIFE,cn=Organization,dc=taikanglife,dc=com");
		new LdapTest()
				.createRole(
						"TJ_RELEASESUPERVISER",
						"天分发文督办员",
						"cn=OA_RELEASESUPERVISER,cn=RoleClass,cn=Application,dc=taikanglife,dc=com",
						"ou=TJ,OU=TAIKANGLIFE,cn=Organization,dc=taikanglife,dc=com");
		new LdapTest()
				.createRole(
						"HO_RELEASESUPERVISER",
						"总公司发文督办员",
						"cn=OA_RELEASESUPERVISER,cn=RoleClass,cn=Application,dc=taikanglife,dc=com",
						"ou=HO,OU=TAIKANGLIFE,cn=Organization,dc=taikanglife,dc=com");

		new LdapTest()
				.createRole(
						"HO_RELEASEMANAGER",
						"总公司发文管理员",
						"cn=OA_RELEASEMANAGER,cn=RoleClass,cn=Application,dc=taikanglife,dc=com",
						"ou=HO,OU=TAIKANGLIFE,cn=Organization,dc=taikanglife,dc=com");
		new LdapTest()
				.createRole(
						"TJ_RELEASEMANAGER",
						"天分发文管理员",
						"cn=OA_RELEASEMANAGER,cn=RoleClass,cn=Application,dc=taikanglife,dc=com",
						"ou=TJ,OU=TAIKANGLIFE,cn=Organization,dc=taikanglife,dc=com");

		new LdapTest()
				.createRole(
						"HO_RECEIVEMANAGER",
						"总公司收文管理员",
						"cn=OA_RECEIVEMANAGER,cn=RoleClass,cn=Application,dc=taikanglife,dc=com",
						"ou=HO,OU=TAIKANGLIFE,cn=Organization,dc=taikanglife,dc=com");

		new LdapTest()
				.createRole(
						"HO_RELEASEBAKER",
						"总公司发文归档管理员",
						"cn=OA_RELEASEBAKER,cn=RoleClass,cn=Application,dc=taikanglife,dc=com",
						"ou=HO,OU=TAIKANGLIFE,cn=Organization,dc=taikanglife,dc=com");

		new LdapTest()
				.createRole(
						"HO_RECEIVEBAKER",
						"总公司收文归档管理员",
						"cn=OA_RECEIVEBAKER,cn=RoleClass,cn=Application,dc=taikanglife,dc=com",
						"ou=HO,OU=TAIKANGLIFE,cn=Organization,dc=taikanglife,dc=com");

		new LdapTest()
				.createRole(
						"HO_DOCSYSCONFIGER",
						"总公司公文系统设置员",
						"cn=OA_DOCSYSCONFIGER,cn=RoleClass,cn=Application,dc=taikanglife,dc=com",
						"ou=HO,OU=TAIKANGLIFE,cn=Organization,dc=taikanglife,dc=com");
		new LdapTest()
				.createRole(
						"TJ_DOCSYSCONFIGER",
						"天分公文系统设置员",
						"cn=OA_DOCSYSCONFIGER,cn=RoleClass,cn=Application,dc=taikanglife,dc=com",
						"ou=TJ,OU=TAIKANGLIFE,cn=Organization,dc=taikanglife,dc=com");

		new LdapTest()
				.createRole(
						"HO_PADCAPCONFIGER",
						"总公司便签用量设置员",
						"cn=OA_PADCAPCONFIGER,cn=RoleClass,cn=Application,dc=taikanglife,dc=com",
						"ou=HO,OU=TAIKANGLIFE,cn=Organization,dc=taikanglife,dc=com");
		new LdapTest()
				.createRole(
						"HO_MEETINGROOMQUERYADMIN",
						"总公司会议室查询管理员",
						"cn=OA_MEETINGROOMQUERYADMIN,cn=RoleClass,cn=Application,dc=taikanglife,dc=com",
						"ou=HO,OU=TAIKANGLIFE,cn=Organization,dc=taikanglife,dc=com");
		new LdapTest()
				.createRole(
						"HO_MYPADCAPACITYMANAGER",
						"总公司便笺容量管理员",
						"cn=OA_MYPADCAPACITYMANAGER,cn=RoleClass,cn=Application,dc=taikanglife,dc=com",
						"ou=HO,OU=TAIKANGLIFE,

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -