protected TreeNode createNode( IndexTreeView tview, TreeViewRequest req, String path, boolean leaf, String nodeName, Type type ) { TreeNode result = instantiateNode( tview, req, path, leaf, nodeName ); result.setPath( path ); result.setType( type ); result.setLeaf( leaf ); result.setNodeName( nodeName ); result.setRepositoryId( getRepositoryId() ); return result; }
@Override public void run(IndexingContext context) throws IOException { TreeViewRequest request = new TreeViewRequest(factory, path, hints, artifactInfoFilter, context); // TODO igorf // TreeNode.listChildren lists children on demand using provided context // if context is closed asynchronously, the method will return empty list. // should through IllegalStateException instead. result[0] = indexTreeView.listNodes(request); } });
protected IteratorSearchResponse getArtifactsByG( String g, TreeViewRequest request ) throws IOException { return getArtifactsByGAVField( g, null, null, request ); }
public TreeNode createVNode( IndexTreeView tview, TreeViewRequest req, ArtifactInfo ai, String path ) { TreeNode result = createNode( tview, req, path, false, ai.getVersion(), Type.V ); result.setGroupId( ai.getGroupId() ); result.setArtifactId( ai.getArtifactId() ); result.setVersion( ai.getVersion() ); return decorateVNode( tview, req, ai, path, result ); }
public TreeNode createANode( IndexTreeView tview, TreeViewRequest req, ArtifactInfo ai, String path ) { TreeNode result = createNode( tview, req, path, false, ai.getArtifactId(), Type.A ); result.setGroupId( ai.getGroupId() ); result.setArtifactId( ai.getArtifactId() ); return decorateANode( tview, req, ai, path, result ); }
public TreeNode createGNode( IndexTreeView tview, TreeViewRequest req, String path, String groupName ) { TreeNode result = createNode( tview, req, path, false, groupName, Type.G ); return decorateGNode( tview, req, path, groupName, result ); }
/** * Set the type of node. * * @param Type */ public void setType( Type type ) { this.type = type.name(); }
/** * Get the type of node. * * @return Type */ public Type getType() { return Type.valueOf( type ); }
protected TreeNode createNode( IndexTreeView tview, TreeViewRequest req, String path, boolean leaf, String nodeName, Type type ) { TreeNode result = instantiateNode( tview, req, path, leaf, nodeName ); result.setPath( path ); result.setType( type ); result.setLeaf( leaf ); result.setNodeName( nodeName ); result.setRepositoryId( getRepositoryId() ); return result; }
public TreeNode createGNode( IndexTreeView tview, TreeViewRequest req, String path, String groupName ) { TreeNode result = createNode( tview, req, path, false, groupName, Type.G ); return decorateGNode( tview, req, path, groupName, result ); }
protected IteratorSearchResponse getArtifactsByGAV( String g, String a, String v, TreeViewRequest request ) throws IOException { return getArtifactsByGAVField( g, a, v, request ); }
/** * Set the type of node. * * @param Type */ public void setType( Type type ) { this.type = type.name(); }
/** * Get the type of node. * * @return Type */ public Type getType() { return Type.valueOf( type ); }
protected TreeNode createNode( IndexTreeView tview, TreeViewRequest req, String path, boolean leaf, String nodeName, Type type ) { TreeNode result = instantiateNode( tview, req, path, leaf, nodeName ); result.setPath( path ); result.setType( type ); result.setLeaf( leaf ); result.setNodeName( nodeName ); result.setRepositoryId( getRepositoryId() ); return result; }
protected IteratorSearchResponse getArtifactsByG( String g, TreeViewRequest request ) throws IOException { return getArtifactsByGAVField( g, null, null, request ); }
/** * Set the type of node. * * @param Type */ public void setType( Type type ) { this.type = type.name(); }
protected IteratorSearchResponse getArtifactsByGA( String g, String a, TreeViewRequest request ) throws IOException { return getArtifactsByGAVField( g, a, null, request ); }
protected IteratorSearchResponse getArtifactsByGAV( String g, String a, String v, TreeViewRequest request ) throws IOException { return getArtifactsByGAVField( g, a, v, request ); }
protected IteratorSearchResponse getArtifactsByGAV( String g, String a, String v, TreeViewRequest request ) throws IOException { return getArtifactsByGAVField( g, a, v, request ); }
protected IteratorSearchResponse getArtifactsByG( String g, TreeViewRequest request ) throws IOException { return getArtifactsByGAVField( g, null, null, request ); }