Class MenuService

java.lang.Object
cn.sparrow.permission.service.MenuService
@Service public class MenuServiceextends Object
  • Constructor Details

    • MenuService

      public  MenuService()
  • Method Details

    • getTreeByParentId

      public  MyTree<Menu>  getTreeByParentId(String parentId)
    • buildTree

      public  void  buildTree(MyTree<Menu> menuTree)
    • getTreeByUsername

      public  MyTree<Menu>  getTreeByUsername(String username)
    • getTreeBySysroleId

      public  MyTree<Menu>  getTreeBySysroleId(String sysroleId)
    • buildSysroleTree

      public  void  buildSysroleTree(String sysroleId, MyTree<Menu> menuTree)
    • buildUserTree

      public  void  buildUserTree(String username, MyTree<Menu> menuTree)
    • isParent

      public  boolean  isParent()
    • isChildren

      public  boolean  isChildren()
    • getUserMenusWithParentAndChildren

      public  void  getUserMenusWithParentAndChildren(String username, Set<Menu> menus)
    • getSysroleMenusWithParentAndChildren

      public  void  getSysroleMenusWithParentAndChildren(String sysroleId, Set<Menu> menus)
    • buildParents

      public  void  buildParents(String parentId, Set<Menu> menus)
    • buildChildren

      public  void  buildChildren(String menuId, Set<Menu> menus)
    • addPermissions

      public  void  addPermissions(MenuPermission menuPermission)
    • delPermissions

      public  void  delPermissions(MenuPermission menuPermission)