Package org.apache.maven.index.treeview
Class DefaultIndexTreeView
java.lang.Object
org.apache.maven.index.treeview.DefaultIndexTreeView
- All Implemented Interfaces:
IndexTreeView
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected IteratorSearchResponse
getArtifacts
(TreeNode root, TreeViewRequest request) protected IteratorSearchResponse
getArtifactsByG
(String g, TreeViewRequest request) protected IteratorSearchResponse
getArtifactsByGA
(String g, String a, TreeViewRequest request) protected IteratorSearchResponse
getArtifactsByGAV
(String g, String a, String v, TreeViewRequest request) protected IteratorSearchResponse
getArtifactsByGAVField
(String g, String a, String v, TreeViewRequest request) protected IteratorSearchResponse
getHintedArtifacts
(TreeNode root, TreeViewRequest request) protected Indexer
protected String
getPathForAi
(ArtifactInfo ai, Field field) Builds a path out from ArtifactInfo.protected void
listChildren
(TreeNode root, TreeViewRequest request, Set<String> allGroups) listNodes
(TreeViewRequest request) Returns the TreeNode, as calculated by passed in request, using index data.
-
Constructor Details
-
DefaultIndexTreeView
-
-
Method Details
-
getIndexer
-
listNodes
Description copied from interface:IndexTreeView
Returns the TreeNode, as calculated by passed in request, using index data.- Specified by:
listNodes
in interfaceIndexTreeView
- Parameters:
request
-- Returns:
- Throws:
IOException
-
listChildren
protected void listChildren(TreeNode root, TreeViewRequest request, Set<String> allGroups) throws IOException - Parameters:
root
-request
-allGroups
-- Throws:
IOException
-
getPathForAi
Builds a path out from ArtifactInfo. The field parameter controls "how deep" the path goes. Possible values are MAVEN.GROUP_ID (builds a path from groupId only), MAVEN.ARTIFACT_ID (builds a path from groupId + artifactId), MAVEN.VERSION (builds a path up to version) or anything else (including null) will build "full" artifact path.- Parameters:
ai
-field
-- Returns:
- path
-
getGroups
-
getArtifacts
protected IteratorSearchResponse getArtifacts(TreeNode root, TreeViewRequest request) throws IOException - Throws:
IOException
-
getHintedArtifacts
protected IteratorSearchResponse getHintedArtifacts(TreeNode root, TreeViewRequest request) throws IOException - Throws:
IOException
-
getArtifactsByG
protected IteratorSearchResponse getArtifactsByG(String g, TreeViewRequest request) throws IOException - Throws:
IOException
-
getArtifactsByGA
protected IteratorSearchResponse getArtifactsByGA(String g, String a, TreeViewRequest request) throws IOException - Throws:
IOException
-
getArtifactsByGAV
protected IteratorSearchResponse getArtifactsByGAV(String g, String a, String v, TreeViewRequest request) throws IOException - Throws:
IOException
-
getArtifactsByGAVField
protected IteratorSearchResponse getArtifactsByGAVField(String g, String a, String v, TreeViewRequest request) throws IOException - Throws:
IOException
-