Example #1
0
 public List getRightsNodeByCode(int roleRightsRoleId) {
   List list = rightsDao.getRightsNodeByCode(roleRightsRoleId);
   if (list != null && list.size() > 0) {
     return list;
   } else {
     return null;
   }
 }
Example #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);
 }
Example #3
0
 public List selectAllChildNodes() {
   // TODO Auto-generated method stub
   return rightsDao.selectAllChildNodes();
 }
Example #4
0
 public List getRightsByRightsCode(int roleRightsRoleId) {
   List list = rightsDao.getRightsByRightsCode(roleRightsRoleId);
   return list;
 }
Example #5
0
 public int delete(int rightsCode) {
   // TODO Auto-generated method stub
   return rightsDao.delete(rightsCode);
 }