private Map<String, Link> getLinks(Set<Resource> resources) {
    QuickLinks quickLinks = (QuickLinks)
        resources.iterator().next().getPropertiesMap().get("QuickLinkInfo/quicklink_data").values().iterator().next();
    Map<String, Link> linksMap = new HashMap<>();
    for (Link link: quickLinks.getQuickLinksConfiguration().getLinks()) {
      linksMap.put(link.getName(), link);
    }
    return linksMap;
  }
Test to prove the all links are visible if invalid profile is set
ambari-server/src/test/java/org/apache/ambari/server/controller/internal/QuickLinkArtifactResourceProviderTest.java