SYSUSER sysuser = new SYSUSER();

SYSUSER sysuser = new SYSUSER();

sysuser.setAccount(account);

sysuser.setUsername("超级管理员");

SessionUtil2.setSYSUSER(session, sysuser);// 设置用户


List<SYSROLE> SYSROLEList = new ArrayList<SYSROLE>();

SYSROLE sysrole = new SYSROLE();

sysrole.setRoletype("SuperUser");

sysrole.setRolename("超级管理员");

SYSROLEList.add(sysrole);

SessionUtil2.setSYSROLEList(session, SYSROLEList);// 设置角色


List<SYSPERMISSION> SYSPERMISSIONList = new ArrayList<SYSPERMISSION>();

SYSPERMISSION syspermission = new SYSPERMISSION();

syspermission.setUrl("/**");

SYSPERMISSIONList.add(syspermission);


SessionUtil2.setSYSPERMISSIONList(session, SYSPERMISSIONList);// 设置权限

SessionUtil2.setPermissionUrlSet(session, SYSPERMISSIONList);// 设置权限URL集合


你可能感兴趣的:(SYSUSER sysuser = new SYSUSER();)