robe-admin/src/main/java/io/robe/admin/resources/PermissionResource.java
@RobeService(group = "Permission", description = "Get hierarchical menu service for permission")
    @Path("menus")
    @GET
    @UnitOfWork(readOnly = true, cacheMode = GET, flushMode = FlushMode.MANUAL)
    public List<MenuItem> getHierarchicalMenu(@RobeAuth Credentials credentials) {
        return readMenuHierarchical(convertMenuToMenuItem(menuDao.findHierarchicalMenu()));
    }
@RobeService(group = "Permission", description = "Get hierarchical menu service for permission")
    @Path("menus")
    @GET
    @UnitOfWork(readOnly = true, cacheMode = GET, flushMode = FlushMode.MANUAL)
    public List<MenuItem> getHierarchicalMenu(@RobeAuth Credentials credentials) {
        return readMenuHierarchical(convertMenuToMenuItem(menuDao.findHierarchicalMenu()));
    }
@ RobeService ( group = "Permission" , description = "Get hierarchical menu service for permission" ) @ Path ( "menus" ) @ GET @ UnitOfWork ( readOnly = true , cacheMode = GET , flushMode = FlushMode . MANUAL ) public List < MenuItem > getHierarchicalMenu ( @ RobeAuth Credentials credentials ) { return readMenuHierarchical ( convertMenuToMenuItem ( menuDao . findHierarchicalMenu ( ) ) ) ; }
get hierarchical menu service for permission

@param credentials Injected by {@link RobeAuth} annotation for authentication.
@return collection of hierarchical {@link MenuItem}
get hierarchical menu service for permission