RoleManager.java 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. package com.zhcs.dt.service.system.role;
  2. import java.util.List;
  3. import com.zhcs.dt.entity.Page;
  4. import com.zhcs.dt.entity.system.Role;
  5. import com.zhcs.dt.util.PageData;
  6. /** 角色接口类
  7. * @author FHadmin QQ313596790
  8. * 修改日期:2015.11.6
  9. */
  10. public interface RoleManager {
  11. /**列出此组下级角色
  12. * @param pd
  13. * @return
  14. * @throws Exception
  15. */
  16. public List<Role> listAllRolesByPId(PageData pd) throws Exception;
  17. /**通过id查找
  18. * @param pd
  19. * @return
  20. * @throws Exception
  21. */
  22. public PageData findObjectById(PageData pd) throws Exception;
  23. /**通过角色编码查找
  24. * @param pd
  25. * @return
  26. * @throws Exception
  27. */
  28. public PageData getRoleByRnumber(PageData pd) throws Exception;
  29. /**添加
  30. * @param pd
  31. * @throws Exception
  32. */
  33. public void add(PageData pd) throws Exception;
  34. /**保存修改
  35. * @param pd
  36. * @throws Exception
  37. */
  38. public void edit(PageData pd) throws Exception;
  39. /**删除角色
  40. * @param ROLE_ID
  41. * @throws Exception
  42. */
  43. public void deleteRoleById(String ROLE_ID) throws Exception;
  44. /**给当前角色附加菜单权限
  45. * @param role
  46. * @throws Exception
  47. */
  48. public void updateRoleRights(Role role) throws Exception;
  49. /**通过id查找
  50. * @param roleId
  51. * @return
  52. * @throws Exception
  53. */
  54. public Role getRoleById(String ROLE_ID) throws Exception;
  55. /**给全部子角色加菜单权限
  56. * @param pd
  57. * @throws Exception
  58. */
  59. public void setAllRights(PageData pd) throws Exception;
  60. /**权限(增删改查)
  61. * @param msg 区分增删改查
  62. * @param pd
  63. * @throws Exception
  64. */
  65. public void saveB4Button(String msg,PageData pd) throws Exception;
  66. /**通过角色ID数组获取角色列表
  67. * @param arryROLE_ID
  68. * @throws Exception
  69. */
  70. public List<Role> getRoleByArryROLE_ID(String[] arryROLE_ID)throws Exception;
  71. /**角色列表(弹窗选择用)
  72. * @param page
  73. * @return
  74. * @throws Exception
  75. */
  76. public List<PageData> roleListWindow(Page page)throws Exception;
  77. }