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