public void removeRepository(String repoId) throws RepositoryException { Repository repo = getRepository(repoId); if (repo!=null) { removeRepository(repo); } }
private IndexingContext getIndexingContext(String id) { String repoId; if (StringUtils.startsWith(id, "remote-")) { repoId = StringUtils.substringAfter(id, "remote-"); } else { repoId = id; } Repository repo = repositoryRegistry.getRepository(repoId); if (repo==null) { return null; } else { if (repo.getIndexingContext()!=null) { try { return repo.getIndexingContext().getBaseContext(IndexingContext.class); } catch (UnsupportedBaseContextException e) { return null; } } else { return null; } } }
Repository rRepo = repositoryRegistry.getRepository(repo);
repositoryRegistry.getRepository( id ) ).filter( repo -> repo.getType().equals( RepositoryType.MAVEN ) ) .map( repo -> { try