Stub out missing parameters / variables needed by tabs in showArtifact.jsp

git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@542629 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Joakim Erdfelt 2007-05-29 19:24:26 +00:00
parent acd4e4c59c
commit fee31978aa
1 changed files with 18 additions and 2 deletions

View File

@ -29,6 +29,7 @@ import org.apache.maven.archiva.model.ArchivaProjectModel;
import org.apache.maven.archiva.model.ProjectRepository;
import org.codehaus.plexus.xwork.action.PlexusActionSupport;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Iterator;
@ -70,6 +71,11 @@ public class ShowArtifactAction
*/
private List dependees;
/**
* The list of dependencies in tree format
*/
private List dependencyTree;
/**
* The reports associated with this versioned project.
*/
@ -100,8 +106,6 @@ public class ShowArtifactAction
{
this.model = repoBrowsing.selectVersion( groupId, artifactId, version );
// TODO: should this be the whole set of artifacts, and be more like the maven dependencies report?
// this.dependencies = VersionMerger.wrap( project.getModel().getDependencies() );
this.dependencies = model.getDependencies();
return SUCCESS;
@ -154,6 +158,8 @@ public class ShowArtifactAction
{
this.model = repoBrowsing.selectVersion( groupId, artifactId, version );
this.dependencyTree = new ArrayList();
return SUCCESS;
}
@ -224,4 +230,14 @@ public class ShowArtifactAction
{
return dependencies;
}
public List getDependees()
{
return dependees;
}
public List getDependencyTree()
{
return dependencyTree;
}
}