Example #1
0
 private List<ActionResource> findResources() {
   Employee employee = (Employee) getSession().get(LOGIN_USER);
   SystemSetting setting = (SystemSetting) getApplication().get(ConstValue.SYS_SETTING);
   Boolean opened = setting.getCompanyInfo().getOpened();
   List<ActionResource> resources = employeeService.findUserResources(employee.getId(), !opened);
   Collections.sort(resources, new LftRgtTreeNodeComparator()); // 按左值排序。
   return resources;
 }