@Override public Set<String> getGroups() throws IOException { return delegate.getAllGroups(); }
@Override public void run(final IndexingContext context) throws IOException { groupIds.addAll(context.getAllGroups()); } });
public Set<String> getAllGroups() throws IOException { HashSet<String> result = new HashSet<String>(); for ( IndexingContext ctx : getMembers() ) { result.addAll( ctx.getAllGroups() ); } return result; }
@Override public Set<String> getAllGroups() throws IOException { lock.lock(); try { return !isClosed() ? context.getAllGroups() : Collections.<String>emptySet(); } finally { lock.unlock(); } }
public Set<String> getAllGroups() throws IOException { HashSet<String> result = new HashSet<String>(); for ( IndexingContext ctx : getMembers() ) { result.addAll( ctx.getAllGroups() ); } return result; }
public Set<String> getAllGroups() throws IOException { HashSet<String> result = new HashSet<String>(); for ( IndexingContext ctx : getMembers() ) { result.addAll( ctx.getAllGroups() ); } return result; }
@Override public Collection<String> getAllGroupIds( String principal, List<String> selectedRepos ) throws RepositorySearchException { List<IndexingContext> indexContexts = getIndexingContexts( selectedRepos ); if ( indexContexts == null || indexContexts.isEmpty() ) { return Collections.emptyList(); } try { Set<String> allGroupIds = new HashSet<>(); for ( IndexingContext indexingContext : indexContexts ) { allGroupIds.addAll( indexingContext.getAllGroups() ); } return allGroupIds; } catch ( IOException e ) { throw new RepositorySearchException( e.getMessage(), e ); } }
@Override public Collection<String> getAllGroupIds( String principal, List<String> selectedRepos ) throws RepositorySearchException { List<IndexingContext> indexContexts = getIndexingContexts( selectedRepos ); if ( indexContexts == null || indexContexts.isEmpty() ) { return Collections.emptyList(); } try { Set<String> allGroupIds = new HashSet<>(); for ( IndexingContext indexingContext : indexContexts ) { allGroupIds.addAll( indexingContext.getAllGroups() ); } return allGroupIds; } catch ( IOException e ) { throw new RepositorySearchException( e.getMessage(), e ); } }
private void updateGroups( IndexingContext context, ArtifactContext ac ) throws IOException { String rootGroup = ac.getArtifactInfo().getRootGroup(); Set<String> rootGroups = context.getRootGroups(); if ( !rootGroups.contains( rootGroup ) ) { rootGroups.add( rootGroup ); context.setRootGroups( rootGroups ); } Set<String> allGroups = context.getAllGroups(); if ( !allGroups.contains( ac.getArtifactInfo().getGroupId() ) ) { allGroups.add( ac.getArtifactInfo().getGroupId() ); context.setAllGroups( allGroups ); } } }
private void updateGroups( IndexingContext context, ArtifactContext ac ) throws IOException { String rootGroup = ac.getArtifactInfo().getRootGroup(); Set<String> rootGroups = context.getRootGroups(); if ( !rootGroups.contains( rootGroup ) ) { rootGroups.add( rootGroup ); context.setRootGroups( rootGroups ); } Set<String> allGroups = context.getAllGroups(); if ( !allGroups.contains( ac.getArtifactInfo().getGroupId() ) ) { allGroups.add( ac.getArtifactInfo().getGroupId() ); context.setAllGroups( allGroups ); } } }
private void updateGroups( IndexingContext context, ArtifactContext ac ) throws IOException { String rootGroup = ac.getArtifactInfo().getRootGroup(); Set<String> rootGroups = context.getRootGroups(); if ( !rootGroups.contains( rootGroup ) ) { rootGroups.add( rootGroup ); context.setRootGroups( rootGroups ); } Set<String> allGroups = context.getAllGroups(); if ( !allGroups.contains( ac.getArtifactInfo().getGroupId() ) ) { allGroups.add( ac.getArtifactInfo().getGroupId() ); context.setAllGroups( allGroups ); } } }
Set<String> allGroups = request.getIndexingContext().getAllGroups();
Set<String> allGroups = request.getIndexingContext().getAllGroups();
Set<String> allGroups = request.getIndexingContext().getAllGroups();