diff options
author | Brett Porter <brett@apache.org> | 2009-11-30 04:01:47 +0000 |
---|---|---|
committer | Brett Porter <brett@apache.org> | 2009-11-30 04:01:47 +0000 |
commit | 00fb9a045ec6c98f1d10b01d3598a9c12ac53363 (patch) | |
tree | 89e41f31c07d7203cfc4efd32ec0195b08afc869 | |
parent | 9aabebcdf529baa4322142a5ab87696c0485e451 (diff) | |
download | archiva-00fb9a045ec6c98f1d10b01d3598a9c12ac53363.tar.gz archiva-00fb9a045ec6c98f1d10b01d3598a9c12ac53363.zip |
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
-rw-r--r-- | archiva-modules/archiva-web/archiva-xmlrpc/archiva-xmlrpc-services/src/main/java/org/apache/archiva/web/xmlrpc/services/SearchServiceImpl.java | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/archiva-modules/archiva-web/archiva-xmlrpc/archiva-xmlrpc-services/src/main/java/org/apache/archiva/web/xmlrpc/services/SearchServiceImpl.java b/archiva-modules/archiva-web/archiva-xmlrpc/archiva-xmlrpc-services/src/main/java/org/apache/archiva/web/xmlrpc/services/SearchServiceImpl.java index 24cbb57a0..9734674d7 100644 --- a/archiva-modules/archiva-web/archiva-xmlrpc/archiva-xmlrpc-services/src/main/java/org/apache/archiva/web/xmlrpc/services/SearchServiceImpl.java +++ b/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 |