class OrientPyPiHostedFacetImpl extends FacetSupport implements OrientPyPiHostedFacet {

  @Transactional
  protected List<PyPiLink> findAllLinks() {
    StorageTx tx = UnitOfWork.currentTx();
    Map<String, PyPiLink> links = new TreeMap<>();
    Iterable<Component> components = tx.browseComponents(tx.findBucket(getRepository()));
    components.forEach(c -> links.put(c.name(), new PyPiLink(c.name(), c.name() + "/")));
    return new ArrayList<>(links.values());
  }

  @Inject public  OrientPyPiHostedFacetImpl(final TemplateHelper templateHelper);

}