浏览代码

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
tags/archiva-1.3
Brett Porter 14 年前
父节点
当前提交
00fb9a045e

+ 5
- 15
archiva-modules/archiva-web/archiva-xmlrpc/archiva-xmlrpc-services/src/main/java/org/apache/archiva/web/xmlrpc/services/SearchServiceImpl.java 查看文件

@@ -45,19 +45,6 @@ import org.apache.maven.archiva.model.ArchivaProjectModel;
import org.slf4j.Logger;
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
implements SearchService
{
@@ -213,7 +200,9 @@ public class SearchServiceImpl
// 1. get observable repositories
// 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 )
@@ -246,7 +235,8 @@ public class SearchServiceImpl
{
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

正在加载...
取消
保存