mirror of https://github.com/apache/archiva.git
throw an exception from unimplemented methods instead of silently returning empty results
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@885330 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9aabebcdf5
commit
00fb9a045e
|
@ -45,19 +45,6 @@ import org.apache.maven.archiva.model.ArchivaProjectModel;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
/**
|
|
||||||
* SearchServiceImpl
|
|
||||||
*
|
|
||||||
* quick/general text search which returns a list of artifacts
|
|
||||||
* query for an artifact based on a checksum
|
|
||||||
* query for all available versions of an artifact, sorted in version significance order
|
|
||||||
* query for all available versions of an artifact since a given date
|
|
||||||
* query for an artifact's direct dependencies
|
|
||||||
* query for an artifact's dependency tree (as with mvn dependency:tree - no duplicates should be included)
|
|
||||||
* query for all artifacts that depend on a given artifact
|
|
||||||
*
|
|
||||||
* @version $Id: SearchServiceImpl.java
|
|
||||||
*/
|
|
||||||
public class SearchServiceImpl
|
public class SearchServiceImpl
|
||||||
implements SearchService
|
implements SearchService
|
||||||
{
|
{
|
||||||
|
@ -213,7 +200,9 @@ public class SearchServiceImpl
|
||||||
// 1. get observable repositories
|
// 1. get observable repositories
|
||||||
// 2. use RepositoryBrowsing method to query uniqueVersions? (but with date)
|
// 2. use RepositoryBrowsing method to query uniqueVersions? (but with date)
|
||||||
|
|
||||||
return artifacts;
|
throw new UnsupportedOperationException( "getArtifactVersionsByDate not yet implemented" );
|
||||||
|
|
||||||
|
// return artifacts;
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<Dependency> getDependencies( String groupId, String artifactId, String version )
|
public List<Dependency> getDependencies( String groupId, String artifactId, String version )
|
||||||
|
@ -246,7 +235,8 @@ public class SearchServiceImpl
|
||||||
{
|
{
|
||||||
List<Artifact> a = new ArrayList<Artifact>();
|
List<Artifact> a = new ArrayList<Artifact>();
|
||||||
|
|
||||||
return a;
|
throw new UnsupportedOperationException( "getDependencyTree not yet implemented" );
|
||||||
|
// return a;
|
||||||
}
|
}
|
||||||
|
|
||||||
//get artifacts that depend on a given artifact
|
//get artifacts that depend on a given artifact
|
||||||
|
|
Loading…
Reference in New Issue