@Override public Set<String> getRootGroups() throws IOException { lock.lock(); try { return !isClosed() ? context.getRootGroups() : Collections.<String>emptySet(); } finally { lock.unlock(); } }
public Set<String> getRootGroups() throws IOException { HashSet<String> result = new HashSet<String>(); for ( IndexingContext ctx : getMembers() ) { result.addAll( ctx.getRootGroups() ); } return result; }
public Set<String> getRootGroups() throws IOException { HashSet<String> result = new HashSet<String>(); for ( IndexingContext ctx : getMembers() ) { result.addAll( ctx.getRootGroups() ); } return result; }
public Set<String> getRootGroups() throws IOException { HashSet<String> result = new HashSet<String>(); for ( IndexingContext ctx : getMembers() ) { result.addAll( ctx.getRootGroups() ); } return result; }
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> rootGroups = request.getIndexingContext().getRootGroups();
Set<String> rootGroups = request.getIndexingContext().getRootGroups();
Set<String> rootGroups = request.getIndexingContext().getRootGroups();