Esempio n. 1
0
 public List getRightsNodeByCode(int roleRightsRoleId) {
   List list = rightsDao.getRightsNodeByCode(roleRightsRoleId);
   if (list != null && list.size() > 0) {
     return list;
   } else {
     return null;
   }
 }
Esempio n. 2
0
 public int upPass(RightsForm rightsForm) {
   Rights rights = new Rights();
   try {
     BeanUtils.copyProperties(rights, rightsForm);
   } catch (IllegalAccessException e) {
     // TODO Auto-generated catch block
     e.printStackTrace();
   } catch (InvocationTargetException e) {
     // TODO Auto-generated catch block
     e.printStackTrace();
   }
   return rightsDao.updateRights(rights);
 }
Esempio n. 3
0
 public List selectAllChildNodes() {
   // TODO Auto-generated method stub
   return rightsDao.selectAllChildNodes();
 }
Esempio n. 4
0
 public List getRightsByRightsCode(int roleRightsRoleId) {
   List list = rightsDao.getRightsByRightsCode(roleRightsRoleId);
   return list;
 }
Esempio n. 5
0
 public int delete(int rightsCode) {
   // TODO Auto-generated method stub
   return rightsDao.delete(rightsCode);
 }